Qt3DRender::QProximityFilter Class
class Qt3DRender::QProximityFilter选择位于目标实体距离阈值范围内的实体。更多...
| 标题: | #include <qproximityfilter.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| 在 QML 中: | ProximityFilter |
| 继承自: | Qt3DRender::QFrameGraphNode |
| 状态: | 已弃用 |
该类已弃用。我们强烈建议不要在新代码中使用它。
属性
- distanceThreshold : float
- entity : Qt3DCore::QEntity*
公共函数
| 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) |
详细说明
Qt3DRender::QProximityFilter 可用于选择位于另一个实体指定距离阈值范围内的实体进行渲染。
属性文档
distanceThreshold : float
存储目标实体的距离阈值,超过该阈值的实体将被过滤掉。
访问函数:
| float | distanceThreshold() const |
| void | setDistanceThreshold(float distanceThreshold) |
通知信号:
| void | distanceThresholdChanged(float distanceThreshold) |
entity : Qt3DCore::QEntity*
存储用于比较距离的基准实体。
访问函数:
| Qt3DCore::QEntity * | entity() const |
| void | setEntity(Qt3DCore::QEntity *entity) |
通知信号:
| 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.