Qt3DRender.QGeometry¶
Encapsulates geometry. More…

Inherited by: Qt3DExtras.QConeGeometry, Qt3DExtras.QCuboidGeometry, Qt3DExtras.QCylinderGeometry, Qt3DExtras.QExtrudedTextGeometry, Qt3DExtras.QPlaneGeometry, Qt3DExtras.QSphereGeometry, Qt3DExtras.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
QNode
Constructs a new
QGeometry
withparent
.
-
PySide2.Qt3DRender.Qt3DRender.QGeometry.
addAttribute
(attribute)¶ - Parameters
attribute –
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
QAttribute
See also
setBoundingVolumePositionAttribute()
-
PySide2.Qt3DRender.Qt3DRender.QGeometry.
boundingVolumePositionAttributeChanged
(boundingVolumePositionAttribute)¶ - Parameters
boundingVolumePositionAttribute –
QAttribute
-
PySide2.Qt3DRender.Qt3DRender.QGeometry.
maxExtent
()¶ - Return type
QVector3D
-
PySide2.Qt3DRender.Qt3DRender.QGeometry.
maxExtentChanged
(maxExtent)¶ - Parameters
maxExtent –
QVector3D
-
PySide2.Qt3DRender.Qt3DRender.QGeometry.
minExtent
()¶ - Return type
QVector3D
-
PySide2.Qt3DRender.Qt3DRender.QGeometry.
minExtentChanged
(minExtent)¶ - Parameters
minExtent –
QVector3D
-
PySide2.Qt3DRender.Qt3DRender.QGeometry.
removeAttribute
(attribute)¶ - Parameters
attribute –
QAttribute
Removes the given
attribute
from this geometry.
-
PySide2.Qt3DRender.Qt3DRender.QGeometry.
setBoundingVolumePositionAttribute
(boundingVolumePositionAttribute)¶ - Parameters
boundingVolumePositionAttribute –
QAttribute
See also
boundingVolumePositionAttribute()