ProximityFilter QML Type

Sélectionne les entités qui se situent dans un certain seuil de distance par rapport à une entité cible. Plus d'informations...

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

FrameGraphNode

Status: Deprecated

Propriétés

Description détaillée

Un site ProximityFilter peut être utilisé pour sélectionner les entités à rendre lorsqu'elles sont placées à une distance donnée d'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
            }
        }
    }
}

Propriété Documentation

distanceThreshold : real

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


entity : Entity

Détient l'entité par rapport à laquelle la distance doit être comparée.


© 2025 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.