QGeometry¶
Encapsulates geometry. More…
Inherited by: QConeGeometry, QCuboidGeometry, QCylinderGeometry, QExtrudedTextGeometry, QPlaneGeometry, QSphereGeometry, QTorusGeometry
Synopsis¶
Functions¶
def
addAttribute
(attribute)def
attributes
()def
maxExtent
()def
minExtent
()def
removeAttribute
(attribute)
Slots¶
def
setBoundingVolumePositionAttribute
(boundingVolumePositionAttribute)
Signals¶
def
boundingVolumePositionAttributeChanged
(boundingVolumePositionAttribute)def
maxExtentChanged
(maxExtent)def
minExtentChanged
(minExtent)
Detailed Description¶
A
QGeometry
class is used to group a list ofQAttribute
objects together to form a geometric shape Qt3D is able to render usingQGeometryRenderer
. Special attribute can be set in order to calculate bounding volume of the shape.
- class PySide2.Qt3DRender.Qt3DRender.QGeometry([parent=None])¶
- param parent:
Constructs a new
QGeometry
withparent
.
- PySide2.Qt3DRender.Qt3DRender.QGeometry.addAttribute(attribute)¶
- Parameters:
attribute –
PySide2.Qt3DRender.Qt3DRender.QAttribute
Adds an
attribute
to this geometry.
- PySide2.Qt3DRender.Qt3DRender.QGeometry.attributes()¶
- Return type:
Returns the list of attributes in this geometry.
- PySide2.Qt3DRender.Qt3DRender.QGeometry.boundingVolumePositionAttribute()¶
- Return type:
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
defaultPositionAttributeName
.See also
QAttribute
- PySide2.Qt3DRender.Qt3DRender.QGeometry.boundingVolumePositionAttributeChanged(boundingVolumePositionAttribute)¶
- Parameters:
boundingVolumePositionAttribute –
PySide2.Qt3DRender.Qt3DRender.QAttribute
- PySide2.Qt3DRender.Qt3DRender.QGeometry.maxExtent()¶
- Return type:
Holds the vertex with the highest x, y, z position values.
- PySide2.Qt3DRender.Qt3DRender.QGeometry.maxExtentChanged(maxExtent)¶
- Parameters:
maxExtent –
PySide2.QtGui.QVector3D
- PySide2.Qt3DRender.Qt3DRender.QGeometry.minExtent()¶
- Return type:
Holds the vertex with the lowest x, y, z position values.
- PySide2.Qt3DRender.Qt3DRender.QGeometry.minExtentChanged(minExtent)¶
- Parameters:
minExtent –
PySide2.QtGui.QVector3D
- PySide2.Qt3DRender.Qt3DRender.QGeometry.removeAttribute(attribute)¶
- Parameters:
attribute –
PySide2.Qt3DRender.Qt3DRender.QAttribute
Removes the given
attribute
from this geometry.
- PySide2.Qt3DRender.Qt3DRender.QGeometry.setBoundingVolumePositionAttribute(boundingVolumePositionAttribute)¶
- Parameters:
boundingVolumePositionAttribute –
PySide2.Qt3DRender.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
defaultPositionAttributeName
.See also
QAttribute
© 2022 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.