Select entities which are within a distance threshold of a target entity. 更多...
| 头: | #include <QProximityFilter> |
| CMake: |
find_package(Qt6 COMPONENTS 3drender REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| Since: | Qt 5.10 |
| 实例化: | ProximityFilter |
| 继承: | Qt3DRender::QFrameGraphNode |
| float | distanceThreshold () const |
| Qt3DCore::QEntity * | entity () const |
| void | setDistanceThreshold (float distanceThreshold ) |
| void | setEntity (Qt3DCore::QEntity * entity ) |
| void | distanceThresholdChanged (float distanceThreshold ) |
| void | entityChanged (Qt3DCore::QEntity * entity ) |
A Qt3DRender::QProximityFilter can be used to select entities to render when they are placed within a given distance threshold of another entity.
Holds the distance to the target entity above which entities are filtered out.
访问函数:
| float | distanceThreshold () const |
| void | setDistanceThreshold (float distanceThreshold ) |
通知程序信号:
| void | distanceThresholdChanged (float distanceThreshold ) |
Holds the entity against which we should compare the distance to.
访问函数:
| Qt3DCore::QEntity * | entity () const |
| void | setEntity (Qt3DCore::QEntity * entity ) |
通知程序信号:
| void | entityChanged (Qt3DCore::QEntity * entity ) |