The QPlaneGeometry class allows creation of a plane in 3D space. 更多...
头: | #include <Qt3DExtras/QPlaneGeometry> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
qmake: | QT += 3dextras |
实例化: | PlaneGeometry |
继承: | Qt3DCore::QGeometry |
|
|
QPlaneGeometry (Qt3DCore::QNode * parent = nullptr) | |
float | height () const |
Qt3DCore::QAttribute * | indexAttribute () const |
bool | mirrored () const |
Qt3DCore::QAttribute * | normalAttribute () const |
Qt3DCore::QAttribute * | positionAttribute () const |
QSize | resolution () const |
Qt3DCore::QAttribute * | tangentAttribute () const |
Qt3DCore::QAttribute * | texCoordAttribute () const |
void | updateIndices () |
void | updateVertices () |
float | width () const |
void | setHeight (float height ) |
void | setMirrored (bool mirrored ) |
void | setResolution (const QSize & resolution ) |
void | setWidth (float width ) |
void | heightChanged (float height ) |
void | mirroredChanged (bool mirrored ) |
void | resolutionChanged (const QSize & resolution ) |
void | widthChanged (float width ) |
The QPlaneGeometry class is most commonly used internally by the QPlaneMesh but can also be used in custom Qt3DRender::QGeometryRenderer 子类。
Holds the plane height.
访问函数:
float | height () const |
void | setHeight (float height ) |
通知程序信号:
void | heightChanged (float height ) |
[read-only]
indexAttribute
:
Qt3DCore::QAttribute
* const
Holds the geometry index attribute.
访问函数:
Qt3DCore::QAttribute * | indexAttribute () const |
Controls if the UV coordinates of the plane should be flipped vertically.
访问函数:
bool | mirrored () const |
void | setMirrored (bool mirrored ) |
通知程序信号:
void | mirroredChanged (bool mirrored ) |
[read-only]
normalAttribute
:
Qt3DCore::QAttribute
* const
Holds the geometry normal attribute.
访问函数:
Qt3DCore::QAttribute * | normalAttribute () const |
[read-only]
positionAttribute
:
Qt3DCore::QAttribute
* const
Holds the geometry position attribute.
访问函数:
Qt3DCore::QAttribute * | positionAttribute () const |
Holds the plane resolution.
访问函数:
QSize | resolution () const |
void | setResolution (const QSize & resolution ) |
通知程序信号:
void | resolutionChanged (const QSize & resolution ) |
[read-only]
tangentAttribute
:
Qt3DCore::QAttribute
* const
Holds the geometry tangent attribute.
访问函数:
Qt3DCore::QAttribute * | tangentAttribute () const |
[read-only]
texCoordAttribute
:
Qt3DCore::QAttribute
* const
Holds the geometry texture coordinate attribute.
访问函数:
Qt3DCore::QAttribute * | texCoordAttribute () const |
Holds the plane width.
访问函数:
float | width () const |
void | setWidth (float width ) |
通知程序信号:
void | widthChanged (float width ) |
[explicit]
QPlaneGeometry::
QPlaneGeometry
(
Qt3DCore::QNode
*
parent
= nullptr)
Constructs a new QPlaneGeometry with parent .
Updates indices based on mesh resolution.
Updates vertices based on mesh resolution, width, and height properties.