Qt3DRender::QProximityFilter Class
class Qt3DRender::QProximityFilterSelecciona las entidades que se encuentren dentro de un umbral de distancia respecto a una entidad objetivo. Más...
| Encabezado: | #include <qproximityfilter.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| En QML: | ProximityFilter |
| Heredado de: | Qt3DRender::QFrameGraphNode |
| Estado: | Obsoleta |
Esta clase está obsoleta. Recomendamos encarecidamente no utilizarla en código nuevo.
Propiedades
- distanceThreshold : float
- entity : Qt3DCore::QEntity*
Funciones públicas
| float | distanceThreshold() const |
| Qt3DCore::QEntity * | entity() const |
Ranuras públicas
| void | setDistanceThreshold(float distanceThreshold) |
| void | setEntity(Qt3DCore::QEntity *entity) |
Señales
| void | distanceThresholdChanged(float distanceThreshold) |
| void | entityChanged(Qt3DCore::QEntity *entity) |
Descripción detallada
Se puede utilizar un « Qt3DRender::QProximityFilter » para seleccionar entidades que se vayan a renderizar cuando se sitúen dentro de un umbral de distancia determinado respecto a otra entidad.
Documentación de propiedades
distanceThreshold : float
Almacena la distancia a la entidad objetivo a partir de la cual se descartan las entidades.
Funciones de acceso:
| float | distanceThreshold() const |
| void | setDistanceThreshold(float distanceThreshold) |
Señal de notificación:
| void | distanceThresholdChanged(float distanceThreshold) |
entity : Qt3DCore::QEntity*
Almacena la entidad con la que debemos comparar la distancia.
Funciones de acceso:
| Qt3DCore::QEntity * | entity() const |
| void | setEntity(Qt3DCore::QEntity *entity) |
Señal de notificación:
| 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.