QPlaneGeometry Class

(Qt3DExtras::QPlaneGeometry)

The QPlaneGeometry class allows creation of a plane in 3D space. More...

Header: #include <QPlaneGeometry>
qmake: QT += 3dextras
Since: Qt 5.7
Instantiated By: PlaneGeometry
Inherits: Qt3DRender::QGeometry

Properties

Public Functions

QPlaneGeometry(QNode *parent = nullptr)
float height() const
Qt3DRender::QAttribute *indexAttribute() 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

Public Slots

void setHeight(float height)
void setResolution(const QSize &resolution)
void setWidth(float width)

Signals

void heightChanged(float height)
void resolutionChanged(const QSize &resolution)
void widthChanged(float width)

Additional Inherited Members

  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 2 protected functions inherited from Qt3DCore::QNode
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

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 subclasses.

Property Documentation

height : float

Holds the plane height.

Access functions:

float height() const
void setHeight(float height)

Notifier signal:

void heightChanged(float height)

indexAttribute : Qt3DRender::QAttribute * const

Holds the geometry index attribute.

Access functions:

Qt3DRender::QAttribute *indexAttribute() const

normalAttribute : Qt3DRender::QAttribute * const

Holds the geometry normal attribute.

Access functions:

Qt3DRender::QAttribute *normalAttribute() const

positionAttribute : Qt3DRender::QAttribute * const

Holds the geometry position attribute.

Access functions:

Qt3DRender::QAttribute *positionAttribute() const

resolution : QSize

Holds the plane resolution.

Access functions:

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

Notifier signal:

void resolutionChanged(const QSize &resolution)

tangentAttribute : Qt3DRender::QAttribute * const

Holds the geometry tangent attribute.

Access functions:

Qt3DRender::QAttribute *tangentAttribute() const

texCoordAttribute : Qt3DRender::QAttribute * const

Holds the geometry texture coordinate attribute.

Access functions:

Qt3DRender::QAttribute *texCoordAttribute() const

width : float

Holds the plane width.

Access functions:

float width() const
void setWidth(float width)

Notifier signal:

void widthChanged(float width)

Member Function Documentation

QPlaneGeometry::QPlaneGeometry(QNode *parent = nullptr)

Constructs a new 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.