En esta página

Qt3DRender::QProximityFilter Class

class Qt3DRender::QProximityFilter

Selecciona las entidades que están dentro de un umbral de distancia de una entidad objetivo. Más...

Cabecera: #include <QProximityFilter>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
En QML: ProximityFilter
Hereda: Qt3DRender::QFrameGraphNode
Status: Obsoleto

Propiedades

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

A Qt3DRender::QProximityFilter se puede utilizar para seleccionar entidades para renderizar cuando se colocan dentro de un umbral de distancia dado de otra entidad.

Documentación de propiedades

distanceThreshold : float

Mantiene la distancia a la entidad objetivo por encima de la cual se filtran las entidades.

Funciones de acceso:

float distanceThreshold() const
void setDistanceThreshold(float distanceThreshold)

Señal del notificador:

void distanceThresholdChanged(float distanceThreshold)

entity : Qt3DCore::QEntity*

Contiene la entidad con la que debemos comparar la distancia.

Funciones de acceso:

Qt3DCore::QEntity *entity() const
void setEntity(Qt3DCore::QEntity *entity)

Señal del notificador:

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.