QGeometry Class
(Qt3DRender::QGeometry)Encapsulates geometry 更多...
头文件: | #include <QGeometry> |
qmake: | QT += 3drender |
开始支持版本: | Qt 5.7 |
Instantiated By: | Geometry |
基类: | Qt3DCore::QNode |
派生类: | Qt3DExtras::QConeGeometry, Qt3DExtras::QCuboidGeometry, Qt3DExtras::QCylinderGeometry, Qt3DExtras::QExtrudedTextGeometry, Qt3DExtras::QPlaneGeometry, Qt3DExtras::QSphereGeometry, and Qt3DExtras::QTorusGeometry |
属性
- boundingVolumePositionAttribute : Qt3DRender::QAttribute *
- 3 个属性继承自 Qt3DCore::QNode
- 1 个属性继承自 QObject
公有函数
QGeometry(Qt3DCore::QNode *parent = nullptr) | |
void | addAttribute(Qt3DRender::QAttribute *attribute) |
QVector<QAttribute *> | attributes() const |
QAttribute * | boundingVolumePositionAttribute() const |
void | removeAttribute(Qt3DRender::QAttribute *attribute) |
- 11 个公有函数继承自 Qt3DCore::QNode
- 32 个公有函数继承自 QObject
公有槽函数
void | setBoundingVolumePositionAttribute(QAttribute *boundingVolumePositionAttribute) |
- 3 个公有槽函数继承自 Qt3DCore::QNode
- 1 个公有槽函数继承自 QObject
信号
void | boundingVolumePositionAttributeChanged(QAttribute *boundingVolumePositionAttribute) |
- 4 个信号继承自 Qt3DCore::QNode
- 2 个信号继承自 QObject
受保护的函数
QGeometry(QGeometryPrivate &dd, Qt3DCore::QNode *parent = nullptr) |
- 2 个受保护的函数继承自 Qt3DCore::QNode
- 9 个受保护的函数继承自 QObject
其他继承的成员
详细描述
Encapsulates geometry
A Qt3DRender::QGeometry class is used to group a list of Qt3DRender::QAttribute objects together to form a geometric shape Qt3D is able to render using Qt3DRender::QGeometryRenderer. Special attribute can be set in order to calculate bounding volume of the shape.
属性
boundingVolumePositionAttribute : Qt3DRender::QAttribute *
Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.
If unspecified, the system will look for the attribute using the name returned by QAttribute::defaultPositionAttributeName.
访问函数:
QAttribute * | boundingVolumePositionAttribute() const |
void | setBoundingVolumePositionAttribute(QAttribute *boundingVolumePositionAttribute) |
Notifier signal:
void | boundingVolumePositionAttributeChanged(QAttribute *boundingVolumePositionAttribute) |
成员函数
QGeometry::QGeometry(Qt3DCore::QNode *parent = nullptr)
Default constructs an instance of QGeometry.
[protected]
QGeometry::QGeometry(QGeometryPrivate &dd, Qt3DCore::QNode *parent = nullptr)
Copy constructor.
void QGeometry::addAttribute(Qt3DRender::QAttribute *attribute)
QVector<QAttribute *> QGeometry::attributes() const
Returns the list of attributes in this geometry.