QCuboidGeometry#
The QCuboidGeometry
class allows creation of a cuboid in 3D space. More…
Synopsis#
Properties#
Functions#
def
indexAttribute
()def
normalAttribute
()def
positionAttribute
()def
tangentAttribute
()def
texCoordAttribute
()def
updateIndices
()def
updateVertices
()def
xExtent
()def
xyMeshResolution
()def
xzMeshResolution
()def
yExtent
()def
yzMeshResolution
()def
zExtent
()
Slots#
def
setXExtent
(xExtent)def
setXYMeshResolution
(resolution)def
setXZMeshResolution
(resolution)def
setYExtent
(yExtent)def
setYZMeshResolution
(resolution)def
setZExtent
(zExtent)
Signals#
def
xExtentChanged
(xExtent)def
xyMeshResolutionChanged
(xyMeshResolution)def
xzMeshResolutionChanged
(xzMeshResolution)def
yExtentChanged
(yExtent)def
yzMeshResolutionChanged
(yzMeshResolution)def
zExtentChanged
(zExtent)
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#
The QCuboidGeometry
class is most commonly used internally by the QCuboidMesh
but can also be used in custom QGeometryRenderer
subclasses.
- class PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QCuboidGeometry
with parent
.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.indexAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry index attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.normalAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry normal attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.positionAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry position attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.tangentAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry tangent attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.texCoordAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry texture coordinate attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xExtent: float#
Holds the x extent of the geometry.
- Access functions:
xExtent
()setXExtent
(xExtent)Signal
xExtentChanged
(xExtent)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xyMeshResolution: PySide6.QtCore.QSize#
Holds the x-y resolution. The width and height values of this property specify the number of vertices generated for the x-y faces of the mesh.
- Access functions:
setXYMeshResolution
(resolution)Signal
xyMeshResolutionChanged
(xyMeshResolution)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xzMeshResolution: PySide6.QtCore.QSize#
Holds the x-z resolution. The width and height values of this property specify the number of vertices generated for the x-z faces of the mesh.
- Access functions:
setXZMeshResolution
(resolution)Signal
xzMeshResolutionChanged
(xzMeshResolution)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yExtent: float#
Holds the y extent of the geometry.
- Access functions:
yExtent
()setYExtent
(yExtent)Signal
yExtentChanged
(yExtent)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yzMeshResolution: PySide6.QtCore.QSize#
Holds the y-z resolution. The width and height values of this property specify the number of vertices generated for the y-z faces of the mesh.
- Access functions:
setYZMeshResolution
(resolution)Signal
yzMeshResolutionChanged
(yzMeshResolution)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.zExtent: float#
Holds the z extent of the geometry.
- Access functions:
zExtent
()setZExtent
(zExtent)Signal
zExtentChanged
(zExtent)
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.indexAttribute()#
- Return type:
Getter of property indexAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.normalAttribute()#
- Return type:
Getter of property normalAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.positionAttribute()#
- Return type:
Getter of property positionAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setXExtent(xExtent)#
- Parameters:
xExtent – float
See also
Setter of property xExtent
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setXYMeshResolution(resolution)#
- Parameters:
resolution –
PySide6.QtCore.QSize
Setter of property xyMeshResolution
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setXZMeshResolution(resolution)#
- Parameters:
resolution –
PySide6.QtCore.QSize
Setter of property xzMeshResolution
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setYExtent(yExtent)#
- Parameters:
yExtent – float
See also
Setter of property yExtent
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setYZMeshResolution(resolution)#
- Parameters:
resolution –
PySide6.QtCore.QSize
Setter of property yzMeshResolution
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.setZExtent(zExtent)#
- Parameters:
zExtent – float
See also
Setter of property zExtent
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.tangentAttribute()#
- Return type:
Getter of property tangentAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.texCoordAttribute()#
- Return type:
Getter of property texCoordAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.updateIndices()#
Updates indices based on mesh resolutions.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.updateVertices()#
Updates vertices based on mesh resolutions.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xExtent()#
- Return type:
float
See also
Getter of property xExtent
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xExtentChanged(xExtent)#
- Parameters:
xExtent – float
Notification signal of property xExtent
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xyMeshResolution()#
- Return type:
Getter of property xyMeshResolution
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xyMeshResolutionChanged(xyMeshResolution)#
- Parameters:
xyMeshResolution –
PySide6.QtCore.QSize
Notification signal of property xyMeshResolution
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xzMeshResolution()#
- Return type:
Getter of property xzMeshResolution
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.xzMeshResolutionChanged(xzMeshResolution)#
- Parameters:
xzMeshResolution –
PySide6.QtCore.QSize
Notification signal of property xzMeshResolution
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yExtent()#
- Return type:
float
See also
Getter of property yExtent
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yExtentChanged(yExtent)#
- Parameters:
yExtent – float
Notification signal of property yExtent
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yzMeshResolution()#
- Return type:
Getter of property yzMeshResolution
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.yzMeshResolutionChanged(yzMeshResolution)#
- Parameters:
yzMeshResolution –
PySide6.QtCore.QSize
Notification signal of property yzMeshResolution
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.zExtent()#
- Return type:
float
See also
Getter of property zExtent
.
- PySide6.Qt3DExtras.Qt3DExtras.QCuboidGeometry.zExtentChanged(zExtent)#
- Parameters:
zExtent – float
Notification signal of property zExtent
.