Encapsulates geometry. 更多 …
继承者: Qt3DExtras.QConeGeometry , Qt3DExtras.QCuboidGeometry , Qt3DExtras.QCylinderGeometry , Qt3DExtras.QExtrudedTextGeometry , Qt3DExtras.QPlaneGeometry , Qt3DExtras.QSphereGeometry , Qt3DExtras.QTorusGeometry
def
addAttribute
(attribute)
def
attributes
()
def
maxExtent
()
def
minExtent
()
def
removeAttribute
(attribute)
def
setBoundingVolumePositionAttribute
(boundingVolumePositionAttribute)
def
boundingVolumePositionAttributeChanged
(boundingVolumePositionAttribute)
def
maxExtentChanged
(maxExtent)
def
minExtentChanged
(minExtent)
A
QGeometryclass is used to group a list ofQAttributeobjects 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.
PySide2.Qt3DRender.Qt3DRender.
QGeometry
(
[
parent=None
]
)
¶
- param parent
QNode
构造新
QGeometry
with
parent
.
PySide2.Qt3DRender.Qt3DRender.QGeometry.
addAttribute
(
attribute
)
¶
attribute
–
QAttribute
添加
attribute
to this geometry.
PySide2.Qt3DRender.Qt3DRender.QGeometry.
attributes
(
)
¶
Returns the list of attributes in this geometry.
PySide2.Qt3DRender.Qt3DRender.QGeometry.
boundingVolumePositionAttribute
(
)
¶
QAttribute
PySide2.Qt3DRender.Qt3DRender.QGeometry.
boundingVolumePositionAttributeChanged
(
boundingVolumePositionAttribute
)
¶
boundingVolumePositionAttribute
–
QAttribute
PySide2.Qt3DRender.Qt3DRender.QGeometry.
maxExtent
(
)
¶
QVector3D
PySide2.Qt3DRender.Qt3DRender.QGeometry.
maxExtentChanged
(
maxExtent
)
¶
maxExtent
–
QVector3D
PySide2.Qt3DRender.Qt3DRender.QGeometry.
minExtent
(
)
¶
QVector3D
PySide2.Qt3DRender.Qt3DRender.QGeometry.
minExtentChanged
(
minExtent
)
¶
minExtent
–
QVector3D
PySide2.Qt3DRender.Qt3DRender.QGeometry.
removeAttribute
(
attribute
)
¶
attribute
–
QAttribute
移除给定
attribute
from this geometry.
PySide2.Qt3DRender.Qt3DRender.QGeometry.
setBoundingVolumePositionAttribute
(
boundingVolumePositionAttribute
)
¶
boundingVolumePositionAttribute
–
QAttribute