QPlaneGeometry¶
The QPlaneGeometry
class allows creation of a plane in 3D space. * * * * The QPlaneGeometry
class is most commonly used internally by the QPlaneMesh
* but can also be used in custom QGeometryRenderer
subclasses. More…
Synopsis¶
Functions¶
def
height
()def
indexAttribute
()def
mirrored
()def
normalAttribute
()def
positionAttribute
()def
resolution
()def
tangentAttribute
()def
texCoordAttribute
()def
updateIndices
()def
updateVertices
()def
width
()
Slots¶
def
setHeight
(height)def
setMirrored
(mirrored)def
setResolution
(resolution)def
setWidth
(width)
Signals¶
def
heightChanged
(height)def
mirroredChanged
(mirrored)def
resolutionChanged
(resolution)def
widthChanged
(width)
Detailed Description¶
* * * *
- class PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry([parent=None])¶
- Parameters
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QPlaneGeometry
with parent
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.height()¶
- Return type
float
Holds the plane height.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.heightChanged(height)¶
- Parameters
height – float
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.indexAttribute()¶
- Return type
Holds the geometry index attribute.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.mirrored()¶
- Return type
bool
Controls if the UV coordinates of the plane should be flipped vertically.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.mirroredChanged(mirrored)¶
- Parameters
mirrored – bool
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.normalAttribute()¶
- Return type
Holds the geometry normal attribute.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.positionAttribute()¶
- Return type
Holds the geometry position attribute.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.resolution()¶
- Return type
Holds the plane resolution.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.resolutionChanged(resolution)¶
- Parameters
resolution –
PySide6.QtCore.QSize
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.setHeight(height)¶
- Parameters
height – float
Holds the plane height.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.setMirrored(mirrored)¶
- Parameters
mirrored – bool
Controls if the UV coordinates of the plane should be flipped vertically.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.setResolution(resolution)¶
- Parameters
resolution –
PySide6.QtCore.QSize
Holds the plane resolution.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.setWidth(width)¶
- Parameters
width – float
Holds the plane width.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.tangentAttribute()¶
- Return type
Holds the geometry tangent attribute.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.texCoordAttribute()¶
- Return type
Holds the geometry texture coordinate attribute.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.updateIndices()¶
Updates indices based on mesh resolution.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.updateVertices()¶
Updates vertices based on mesh resolution, width, and height properties.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.width()¶
- Return type
float
Holds the plane width.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.widthChanged(width)¶
- Parameters
width – float