- class QGeometry¶
Encapsulates geometry. More…
Inherited by:
QTorusGeometry
,QSphereGeometry
,QPlaneGeometry
,QExtrudedTextGeometry
,QCylinderGeometry
,QCuboidGeometry
,QConeGeometry
Synopsis¶
Properties¶
Methods¶
def
__init__()
def
addAttribute()
def
attributes()
def
maxExtent()
def
minExtent()
Slots¶
Signals¶
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
A
QGeometry
class is used to group a list ofQAttribute
objects together to form a geometric shape Qt3D is able to render using Qt3DCore::QGeometryRenderer. Special attribute can be set in order to calculate bounding volume of the shape.Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property boundingVolumePositionAttributeᅟ: 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
- Access functions:
Holds the vertex with the highest x, y, z position values.
- Access functions:
Signal
maxExtentChanged()
Holds the vertex with the lowest x, y, z position values.
- Access functions:
Signal
minExtentChanged()
- __init__([parent=None])¶
- Parameters:
parent –
QNode
Constructs a new
QGeometry
withparent
.- addAttribute(attribute)¶
- Parameters:
attribute –
QAttribute
Adds an
attribute
to this geometry.- attributes()¶
- Return type:
.list of Qt3DCore.QAttribute
Returns the list of attributes in this geometry.
- boundingVolumePositionAttribute()¶
- Return type:
QAttribute
See also
setBoundingVolumePositionAttribute()
Getter of property
boundingVolumePositionAttributeᅟ
.- boundingVolumePositionAttributeChanged(boundingVolumePositionAttribute)¶
- Parameters:
boundingVolumePositionAttribute –
QAttribute
Notification signal of property
boundingVolumePositionAttributeᅟ
.Getter of property
maxExtentᅟ
.Notification signal of property
maxExtentᅟ
.Getter of property
minExtentᅟ
.Notification signal of property
minExtentᅟ
.- removeAttribute(attribute)¶
- Parameters:
attribute –
QAttribute
Removes the given
attribute
from this geometry.- setBoundingVolumePositionAttribute(boundingVolumePositionAttribute)¶
- Parameters:
boundingVolumePositionAttribute –
QAttribute
See also
boundingVolumePositionAttribute()
Setter of property
boundingVolumePositionAttributeᅟ
.