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#
Properties#
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)
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#
* * * *
- class PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QPlaneGeometry
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.QPlaneGeometry.height: float#
Holds the plane height.
- Access functions:
height
()setHeight
(height)Signal
heightChanged
(height)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.indexAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry index attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.mirrored: bool#
Controls if the UV coordinates of the plane should be flipped vertically.
- Access functions:
mirrored
()setMirrored
(mirrored)Signal
mirroredChanged
(mirrored)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.normalAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry normal attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.positionAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry position attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.resolution: PySide6.QtCore.QSize#
Holds the plane resolution.
- Access functions:
resolution
()setResolution
(resolution)Signal
resolutionChanged
(resolution)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.tangentAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry tangent attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.texCoordAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry texture coordinate attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.width: float#
Holds the plane width.
- Access functions:
width
()setWidth
(width)Signal
widthChanged
(width)
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.height()#
- Return type:
float
See also
Getter of property height
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.heightChanged(height)#
- Parameters:
height – float
Notification signal of property height
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.indexAttribute()#
- Return type:
Getter of property indexAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.mirrored()#
- Return type:
bool
See also
Getter of property mirrored
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.mirroredChanged(mirrored)#
- Parameters:
mirrored – bool
Notification signal of property mirrored
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.normalAttribute()#
- Return type:
Getter of property normalAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.positionAttribute()#
- Return type:
Getter of property positionAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.resolution()#
- Return type:
See also
Getter of property resolution
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.resolutionChanged(resolution)#
- Parameters:
resolution –
PySide6.QtCore.QSize
Notification signal of property resolution
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.setHeight(height)#
- Parameters:
height – float
See also
Setter of property height
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.setMirrored(mirrored)#
- Parameters:
mirrored – bool
See also
Setter of property mirrored
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.setResolution(resolution)#
- Parameters:
resolution –
PySide6.QtCore.QSize
See also
Setter of property resolution
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.setWidth(width)#
- Parameters:
width – float
See also
Setter of property width
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.tangentAttribute()#
- Return type:
Getter of property tangentAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.texCoordAttribute()#
- Return type:
Getter of property texCoordAttribute
.
- 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
See also
Getter of property width
.
- PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry.widthChanged(width)#
- Parameters:
width – float
Notification signal of property width
.