Qt3DRender::QProximityFilter Class
class Qt3DRender::QProximityFilterSélectionne les entités qui se situent dans un certain seuil de distance par rapport à une entité cible. Plus d'informations...
| En-tête : | #include <QProximityFilter> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3drender)target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake : | QT += 3drender |
| En QML : | ProximityFilter |
| Hérite : | Qt3DRender::QFrameGraphNode |
| Statut : | Déclassé |
Propriétés
- distanceThreshold : float
- entity : Qt3DCore::QEntity*
Fonctions publiques
| float | distanceThreshold() const |
| Qt3DCore::QEntity * | entity() const |
Emplacements publics
| void | setDistanceThreshold(float distanceThreshold) |
| void | setEntity(Qt3DCore::QEntity *entity) |
Signaux
| void | distanceThresholdChanged(float distanceThreshold) |
| void | entityChanged(Qt3DCore::QEntity *entity) |
Description détaillée
Un Qt3DRender::QProximityFilter peut être utilisé pour sélectionner les entités à rendre lorsqu'elles sont placées à une distance donnée d'une autre entité.
Documentation sur les propriétés
distanceThreshold : float
Indique la distance par rapport à l'entité cible au-delà de laquelle les entités sont filtrées.
Fonctions d'accès :
| float | distanceThreshold() const |
| void | setDistanceThreshold(float distanceThreshold) |
Signal de notification :
| void | distanceThresholdChanged(float distanceThreshold) |
entity : Qt3DCore::QEntity*
Détient l'entité à laquelle nous devons comparer la distance.
Fonctions d'accès :
| Qt3DCore::QEntity * | entity() const |
| void | setEntity(Qt3DCore::QEntity *entity) |
Signal de notification :
| void | entityChanged(Qt3DCore::QEntity *entity) |
© 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.