Qt3DRender::QProximityFilter Class
class Qt3DRender::QProximityFilterSelecione as entidades que estejam dentro de um limite de distância em relação a uma entidade-alvo. Mais...
| Cabeçalho: | #include <qproximityfilter.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| No QML: | ProximityFilter |
| Herdado de: | Qt3DRender::QFrameGraphNode |
| Status: | Obsoleta |
Esta classe está obsoleta. Recomendamos enfaticamente que não seja utilizada em código novo.
Propriedades
- distanceThreshold : float
- entity : Qt3DCore::QEntity*
Funções públicas
| float | distanceThreshold() const |
| Qt3DCore::QEntity * | entity() const |
Slots públicos
| void | setDistanceThreshold(float distanceThreshold) |
| void | setEntity(Qt3DCore::QEntity *entity) |
Sinais
| void | distanceThresholdChanged(float distanceThreshold) |
| void | entityChanged(Qt3DCore::QEntity *entity) |
Descrição detalhada
Um ` Qt3DRender::QProximityFilter ` pode ser usado para selecionar entidades a serem renderizadas quando elas estiverem localizadas dentro de um determinado limite de distância de outra entidade.
Documentação da propriedade
distanceThreshold : float
Armazena a distância até a entidade-alvo, acima da qual as entidades são filtradas.
Funções de acesso:
| float | distanceThreshold() const |
| void | setDistanceThreshold(float distanceThreshold) |
Sinal do notificador:
| void | distanceThresholdChanged(float distanceThreshold) |
entity : Qt3DCore::QEntity*
Armazena a entidade com a qual devemos comparar a distância.
Funções de acesso:
| Qt3DCore::QEntity * | entity() const |
| void | setEntity(Qt3DCore::QEntity *entity) |
Sinal do 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.