QPlaneGeometry Class

( Qt3DExtras::QPlaneGeometry )

The QPlaneGeometry class allows creation of a plane in 3D space. * * * * The QPlaneGeometry class is most commonly used internally by the QPlaneMesh * but can also be used in custom Qt3DRender::QGeometryRenderer 子類。 更多...

頭: #include <Qt3DExtras/QPlaneGeometry>
qmake: QT += 3dextras
Since: Qt 5.7
實例化: PlaneGeometry
繼承: Qt3DRender::QGeometry

特性

公共函數

QPlaneGeometry (Qt3DCore::QNode * parent = nullptr)
float height () const
Qt3DRender::QAttribute * indexAttribute () const
bool mirrored () const
Qt3DRender::QAttribute * normalAttribute () const
Qt3DRender::QAttribute * positionAttribute () const
QSize resolution () const
Qt3DRender::QAttribute * tangentAttribute () const
Qt3DRender::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 )

靜態公共成員

const QMetaObject staticMetaObject

額外繼承成員

詳細描述

* * * *

The QPlaneGeometry class allows creation of a plane in 3D space. * * * * The QPlaneGeometry class is most commonly used internally by the QPlaneMesh * but can also be used in custom Qt3DRender::QGeometryRenderer 子類。

特性文檔編製

height : float

Holds the plane height.

訪問函數:

float height () const
void setHeight (float height )

通知程序信號:

void heightChanged (float height )

indexAttribute : Qt3DRender::QAttribute * const

Holds the geometry index attribute.

訪問函數:

Qt3DRender::QAttribute * indexAttribute () const

mirrored : bool

Controls if the UV coordinates of the plane should be flipped vertically.

該特性在 Qt 5.9 引入。

訪問函數:

bool mirrored () const
void setMirrored (bool mirrored )

通知程序信號:

void mirroredChanged (bool mirrored )

normalAttribute : Qt3DRender::QAttribute * const

Holds the geometry normal attribute.

訪問函數:

Qt3DRender::QAttribute * normalAttribute () const

positionAttribute : Qt3DRender::QAttribute * const

Holds the geometry position attribute.

訪問函數:

Qt3DRender::QAttribute * positionAttribute () const

resolution : QSize

Holds the plane resolution.

訪問函數:

QSize resolution () const
void setResolution (const QSize & resolution )

通知程序信號:

void resolutionChanged (const QSize & resolution )

tangentAttribute : Qt3DRender::QAttribute * const

Holds the geometry tangent attribute.

訪問函數:

Qt3DRender::QAttribute * tangentAttribute () const

texCoordAttribute : Qt3DRender::QAttribute * const

Holds the geometry texture coordinate attribute.

訪問函數:

Qt3DRender::QAttribute * texCoordAttribute () const

width : float

Holds the plane width.

訪問函數:

float width () const
void setWidth (float width )

通知程序信號:

void widthChanged (float width )

成員函數文檔編製

QPlaneGeometry:: QPlaneGeometry ( Qt3DCore::QNode * parent = nullptr)

構造新的 QPlaneGeometry with parent .

void QPlaneGeometry:: updateIndices ()

Updates indices based on mesh resolution.

void QPlaneGeometry:: updateVertices ()

Updates vertices based on mesh resolution, width, and height properties.