Encapsulates geometry. 更多...
头: | #include <QGeometry> |
qmake: | QT += 3drender |
Since: | Qt 5.7 |
实例化: | 几何体 |
继承: | Qt3DCore::QNode |
继承者: |
Qt3DExtras::QConeGeometry , Qt3DExtras::QCuboidGeometry , Qt3DExtras::QCylinderGeometry , Qt3DExtras::QExtrudedTextGeometry , Qt3DExtras::QPlaneGeometry , Qt3DExtras::QSphereGeometry ,和 Qt3DExtras::QTorusGeometry |
该类在 Qt 5.7 引入。
QGeometry (Qt3DCore::QNode * parent = nullptr) | |
void | addAttribute (Qt3DRender::QAttribute * 属性 ) |
QVector<Qt3DRender::QAttribute *> | 属性 () const |
Qt3DRender::QAttribute * | boundingVolumePositionAttribute () const |
QVector3D | maxExtent () const |
QVector3D | minExtent () const |
void | removeAttribute (Qt3DRender::QAttribute * 属性 ) |
void | setBoundingVolumePositionAttribute (Qt3DRender::QAttribute * boundingVolumePositionAttribute ) |
void | boundingVolumePositionAttributeChanged (Qt3DRender::QAttribute * boundingVolumePositionAttribute ) |
void | maxExtentChanged (const QVector3D & maxExtent ) |
void | minExtentChanged (const QVector3D & minExtent ) |
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.
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 .
访问函数:
Qt3DRender::QAttribute * | boundingVolumePositionAttribute () const |
void | setBoundingVolumePositionAttribute (Qt3DRender::QAttribute * boundingVolumePositionAttribute ) |
通知程序信号:
void | boundingVolumePositionAttributeChanged (Qt3DRender::QAttribute * boundingVolumePositionAttribute ) |
另请参阅 Qt3DRender::QAttribute .
Holds the vertex with the highest x, y, z position values.
访问函数:
QVector3D | maxExtent () const |
通知程序信号:
void | maxExtentChanged (const QVector3D & maxExtent ) |
Holds the vertex with the lowest x, y, z position values.
访问函数:
QVector3D | minExtent () const |
通知程序信号:
void | minExtentChanged (const QVector3D & minExtent ) |
Constructs a new QGeometry with parent .
添加 属性 to this geometry.
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
Returns the list of attributes in this geometry.
移除给定 属性 from this geometry.
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .