Qt3DRender::QPickingProxy Class
class Qt3DRender::QPickingProxy可用于提供仅用于拾取的替代 QGeometryView。更多
Header: | #include <QPickingProxy> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
自 | Qt 6.0 |
在 QML 中: | PickingProxy |
继承于 | Qt3DCore::QBoundingVolume |
状态: | 已废弃 |
公共函数
QPickingProxy(Qt3DCore::QNode *parent = nullptr) |
详细说明
拾取是一项昂贵的操作,尤其是在网格有大量顶点的情况下。QPickProxy 可用于提供一个替代几何体,通常具有较少的基元,将用于拾取,而GeometryRenderer 实例将用于渲染。
注: 如果应用程序要求拾取坐标与渲染的网格相匹配,请勿使用 QPickProxy。
注: 拾取算法使用边界卷积层次结构来优化边界卷积与拾取射线不相交的实体。对于该层次结构,将使用渲染实体的边界体积(或使用 QBoundingVolume 组件显式设置的边界体积),而不是代理的边界体积。
成员函数文档
[explicit]
QPickingProxy::QPickingProxy(Qt3DCore::QNode *parent = nullptr)
使用parent 构建一个新的 QPickingProxy。
© 2025 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.