QPlaneMesh Class

class Qt3DExtras ::QPlaneMesh

A square planar mesh. 更多...

頭: #include <Qt3DExtras/QPlaneMesh>
qmake: QT += 3dextras
實例化: PlaneMesh
繼承: Qt3DRender::QGeometryRenderer

特性

公共函數

QPlaneMesh (Qt3DCore::QNode * parent = nullptr)
float height () const
QSize meshResolution () const
bool mirrored () const
float width () const

公共槽

void setHeight (float height )
void setMeshResolution (const QSize & resolution )
void setMirrored (bool mirrored )
void setWidth (float width )

信號

void heightChanged (float height )
void meshResolutionChanged (const QSize & meshResolution )
void mirroredChanged (bool mirrored )
void widthChanged (float width )

詳細描述

特性文檔編製

height : float

Holds the plane height.

訪問函數:

float height () const
void setHeight (float height )

通知程序信號:

void heightChanged (float height )

meshResolution : QSize

Holds the plane resolution. The width and height values of this property specify the number of vertices generated for the mesh in the respective dimensions.

訪問函數:

QSize meshResolution () const
void setMeshResolution (const QSize & resolution )

通知程序信號:

void meshResolutionChanged (const QSize & meshResolution )

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 )

width : float

Holds the plane width.

訪問函數:

float width () const
void setWidth (float width )

通知程序信號:

void widthChanged (float width )

成員函數文檔編製

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

Constructs a new QPlaneMesh with parent .