ProximityFilter QML Type
Selecciona las entidades que se encuentren dentro de un umbral de distancia respecto a una entidad objetivo. Más información...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QProximityFilter |
| Inherits: | |
| Status: | Deprecated |
Este tipo está obsoleto. Recomendamos encarecidamente no utilizarlo en código nuevo.
Propiedades
- distanceThreshold : real
- entity : Entity
Descripción detallada
Se puede utilizar un « ProximityFilter » para seleccionar las entidades que se van a renderizar cuando se sitúan dentro de un umbral de distancia determinado respecto a otra entidad.
import Qt3DRender 2.10
...
RenderSetting {
Viewport {
CameraSelector {
camera: mainCamera
ProximityFilter {
entity: mainCamera
distanceThreshold: 50 // select entities within 50m metre radius of mainCamera
}
}
}
}Documentación de la propiedad
distanceThreshold : real
Indica la distancia a la entidad objetivo a partir de la cual se excluyen las entidades.
entity : Entity
Almacena la entidad con la que debemos comparar la distancia.
© 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.