The QCuboidGeometry class allows creation of a cuboid in 3D space. * * * * * The QCuboidGeometry class is most commonly used internally by the QCuboidMesh * but can also be used in custom Qt3DRender::QGeometryRenderer 子类。 更多...
| 头: | #include <Qt3DExtras/QCuboidGeometry> |
| qmake: | QT += 3dextras |
| Since: | Qt 5.7 |
| 实例化: | CuboidGeometry |
| 继承: | Qt3DRender::QGeometry |
|
|
| QCuboidGeometry (Qt3DCore::QNode * parent = nullptr) | |
| Qt3DRender::QAttribute * | indexAttribute () const |
| Qt3DRender::QAttribute * | normalAttribute () const |
| Qt3DRender::QAttribute * | positionAttribute () const |
| Qt3DRender::QAttribute * | tangentAttribute () const |
| Qt3DRender::QAttribute * | texCoordAttribute () const |
| void | updateIndices () |
| void | updateVertices () |
| float | xExtent () const |
| QSize | xyMeshResolution () const |
| QSize | xzMeshResolution () const |
| float | yExtent () const |
| QSize | yzMeshResolution () const |
| float | zExtent () const |
| void | setXExtent (float xExtent ) |
| void | setXYMeshResolution (const QSize & resolution ) |
| void | setXZMeshResolution (const QSize & resolution ) |
| void | setYExtent (float yExtent ) |
| void | setYZMeshResolution (const QSize & resolution ) |
| void | setZExtent (float zExtent ) |
| void | xExtentChanged (float xExtent ) |
| void | xyMeshResolutionChanged (const QSize & xyMeshResolution ) |
| void | xzMeshResolutionChanged (const QSize & xzMeshResolution ) |
| void | yExtentChanged (float yExtent ) |
| void | yzMeshResolutionChanged (const QSize & yzMeshResolution ) |
| void | zExtentChanged (float zExtent ) |
| const QMetaObject | staticMetaObject |
* * * *
The QCuboidGeometry class allows creation of a cuboid in 3D space. * * * * * The QCuboidGeometry class is most commonly used internally by the QCuboidMesh * but can also be used in custom Qt3DRender::QGeometryRenderer 子类。
Holds the geometry index attribute.
访问函数:
| Qt3DRender::QAttribute * | indexAttribute () const |
Holds the geometry normal attribute.
访问函数:
| Qt3DRender::QAttribute * | normalAttribute () const |
Holds the geometry position attribute.
访问函数:
| Qt3DRender::QAttribute * | positionAttribute () const |
Holds the geometry tangent attribute.
访问函数:
| Qt3DRender::QAttribute * | tangentAttribute () const |
Holds the geometry texture coordinate attribute.
访问函数:
| Qt3DRender::QAttribute * | texCoordAttribute () const |
Holds the x extent of the geometry.
访问函数:
| float | xExtent () const |
| void | setXExtent (float xExtent ) |
通知程序信号:
| void | xExtentChanged (float xExtent ) |
Holds the x-y resolution. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.
访问函数:
| QSize | xyMeshResolution () const |
| void | setXYMeshResolution (const QSize & resolution ) |
通知程序信号:
| void | xyMeshResolutionChanged (const QSize & xyMeshResolution ) |
Holds the x-z resolution. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.
访问函数:
| QSize | xzMeshResolution () const |
| void | setXZMeshResolution (const QSize & resolution ) |
通知程序信号:
| void | xzMeshResolutionChanged (const QSize & xzMeshResolution ) |
Holds the y extent of the geometry.
访问函数:
| float | yExtent () const |
| void | setYExtent (float yExtent ) |
通知程序信号:
| void | yExtentChanged (float yExtent ) |
Holds the y-z resolution. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.
访问函数:
| QSize | yzMeshResolution () const |
| void | setYZMeshResolution (const QSize & resolution ) |
通知程序信号:
| void | yzMeshResolutionChanged (const QSize & yzMeshResolution ) |
Holds the z extent of the geometry.
访问函数:
| float | zExtent () const |
| void | setZExtent (float zExtent ) |
通知程序信号:
| void | zExtentChanged (float zExtent ) |
构造新的 QCuboidGeometry with parent .
Updates indices based on mesh resolutions.
Updates vertices based on mesh resolutions.