QGeometry Class

(Qt3DRender::QGeometry)
Header: #include <QGeometry>
qmake: QT += 3drender
Instantiated By: Geometry
Inherits: Qt3DCore::QNode
Inherited By:

Qt3DRender::QCuboidGeometry, Qt3DRender::QCylinderGeometry, Qt3DRender::QPlaneGeometry, Qt3DRender::QSphereGeometry, and Qt3DRender::QTorusGeometry

Properties

Public Functions

QGeometry(Qt3DCore::QNode *parent = Q_NULLPTR)
~QGeometry()
void addAttribute(QAbstractAttribute *attribute)
QAttributeList attributes() const
QBoundingVolumeSpecifier *boundingVolumeSpecifier()
void removeAttribute(QAbstractAttribute *attribute)
int verticesPerPatch() const

Public Slots

void setVerticesPerPatch(int verticesPerPatch)

Signals

void verticesPerPatchChanged(int verticesPerPatch)

Protected Functions

QGeometry(QGeometryPrivate &dd, Qt3DCore::QNode *parent = Q_NULLPTR)
void copy(const Qt3DCore::QNode *ref)
typedef QAttributeList

Additional Inherited Members

Detailed Description

Property Documentation

boundingVolumeSpecifier : Qt3DRender::QBoundingVolumeSpecifier * const

Holds bounding volume specifier.

Access functions:

QBoundingVolumeSpecifier *boundingVolumeSpecifier()

verticesPerPatch : int

Holds vertices per patch.

Access functions:

int verticesPerPatch() const
void setVerticesPerPatch(int verticesPerPatch)

Notifier signal:

void verticesPerPatchChanged(int verticesPerPatch)

Member Function Documentation

QGeometry::QGeometry(Qt3DCore::QNode *parent = Q_NULLPTR)

Default constructs an instance of QGeometry.

[protected] QGeometry::QGeometry(QGeometryPrivate &dd, Qt3DCore::QNode *parent = Q_NULLPTR)

Copy constructor.

QGeometry::~QGeometry()

Destroys this geometry.

void QGeometry::addAttribute(QAbstractAttribute *attribute)

Adds an attribute to this geometry.

QAttributeList QGeometry::attributes() const

Returns the list of attributes in this geometry.

[protected] void QGeometry::copy(const Qt3DCore::QNode *ref)

void QGeometry::removeAttribute(QAbstractAttribute *attribute)

Removes the given attribute from this geometry.

Related Non-Members

typedef Qt3DRender::QAttributeList

A vector of {QAbstractAttribute}s.

© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.