QGeometry Class
class Qt3DRender::QGeometryEncapsulates geometry. More...
Header: | #include <QGeometry> |
qmake: | QT += 3drender |
Since: | Qt 5.7 |
Instantiated By: | Geometry |
Inherits: | Qt3DCore::QNode |
Inherited By: | Qt3DExtras::QConeGeometry, Qt3DExtras::QCuboidGeometry, Qt3DExtras::QCylinderGeometry, Qt3DExtras::QExtrudedTextGeometry, Qt3DExtras::QPlaneGeometry, Qt3DExtras::QSphereGeometry, and Qt3DExtras::QTorusGeometry |
This class was introduced in Qt 5.7.
Public Functions
QGeometry(Qt3DCore::QNode *parent = nullptr) | |
void | addAttribute(Qt3DRender::QAttribute *attribute) |
QVector<Qt3DRender::QAttribute *> | attributes() const |
void | removeAttribute(Qt3DRender::QAttribute *attribute) |
Detailed Description
A Qt3DRender::QGeometry class is used to group a list of Qt3DRender::QAttribute objects together to form a geometric shape Qt3D is able to render using Qt3DRender::QGeometryRenderer. Special attribute can be set in order to calculate bounding volume of the shape.
Member Function Documentation
QGeometry::QGeometry(Qt3DCore::QNode *parent = nullptr)
Constructs a new QGeometry with parent.
void QGeometry::addAttribute(Qt3DRender::QAttribute *attribute)
Adds an attribute to this geometry.
QVector<Qt3DRender::QAttribute *> QGeometry::attributes() const
Returns the list of attributes in this geometry.
void QGeometry::removeAttribute(Qt3DRender::QAttribute *attribute)
Removes the given attribute from this geometry.