Sur cette page

ProximityFilter QML Type

Sélectionner les entités situées à une distance inférieure à un seuil donné par rapport à une entité cible. En savoir plus...

Import Statement: import Qt3D.Render 2.12
In C++: QProximityFilter
Inherits:

FrameGraphNode

Status: Deprecated

Ce type est obsolète. Nous vous déconseillons fortement de l'utiliser dans du nouveau code.

Propriétés

Description détaillée

Une « ProximityFilter » permet de sélectionner les entités à afficher lorsqu’elles se trouvent à une distance inférieure à un seuil donné par rapport à une autre entité.

import Qt3DRender 2.10
...
RenderSetting {
    Viewport {
        CameraSelector {
            camera: mainCamera
            ProximityFilter {
                entity: mainCamera
                distanceThreshold: 50 // select entities within 50m metre radius of mainCamera
            }
        }
    }
}

Documentation sur les propriétés

distanceThreshold : real

Indique la distance par rapport à l'entité cible au-delà de laquelle les entités sont filtrées.

entity : Entity

Contient l'entité par rapport à laquelle nous devons comparer la distance.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.