QGeometry Class | Qt 3D 5.15.19 (original) (raw)
class Qt3DRender::QGeometry
Encapsulates geometry. More...
This class was introduced in Qt 5.7.
Properties
- boundingVolumePositionAttribute : Qt3DRender::QAttribute*
- maxExtent : const QVector3D
- minExtent : const QVector3D
Public Functions
Public Slots
Signals
Property Documentation
boundingVolumePositionAttribute : Qt3DRender::QAttribute*
Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.
If unspecified, the system will look for the attribute using the name returned by QAttribute::defaultPositionAttributeName.
Access functions:
Qt3DRender::QAttribute * | boundingVolumePositionAttribute() const |
---|---|
void | setBoundingVolumePositionAttribute(Qt3DRender::QAttribute *boundingVolumePositionAttribute) |
Notifier signal:
void | boundingVolumePositionAttributeChanged(Qt3DRender::QAttribute *boundingVolumePositionAttribute) |
---|
See also Qt3DRender::QAttribute.
maxExtent : const QVector3D
Holds the vertex with the highest x, y, z position values.
Access functions:
QVector3D | maxExtent() const |
---|
Notifier signal:
void | maxExtentChanged(const QVector3D &maxExtent) |
---|
minExtent : const QVector3D
Holds the vertex with the lowest x, y, z position values.
Access functions:
QVector3D | minExtent() const |
---|
Notifier signal:
void | minExtentChanged(const QVector3D &minExtent) |
---|
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.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
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.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
© 2025 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.