QPlaneGeometry¶
The
QPlaneGeometry
class allows creation of a plane in 3D space. * * * * TheQPlaneGeometry
class is most commonly used internally by theQPlaneMesh
* but can also be used in customQGeometryRenderer
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 PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry([parent=None])¶
- param parent:
Constructs a new
QPlaneGeometry
withparent
.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.height()¶
- Return type:
float
Holds the plane height.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.heightChanged(height)¶
- Parameters:
height – float
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.indexAttribute()¶
- Return type:
Holds the geometry index attribute.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.mirrored()¶
- Return type:
bool
Controls if the UV coordinates of the plane should be flipped vertically.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.mirroredChanged(mirrored)¶
- Parameters:
mirrored – bool
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.normalAttribute()¶
- Return type:
Holds the geometry normal attribute.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.positionAttribute()¶
- Return type:
Holds the geometry position attribute.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.resolution()¶
- Return type:
Holds the plane resolution.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.resolutionChanged(resolution)¶
- Parameters:
resolution –
PySide2.QtCore.QSize
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.setHeight(height)¶
- Parameters:
height – float
Holds the plane height.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.setMirrored(mirrored)¶
- Parameters:
mirrored – bool
Controls if the UV coordinates of the plane should be flipped vertically.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.setResolution(resolution)¶
- Parameters:
resolution –
PySide2.QtCore.QSize
Holds the plane resolution.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.setWidth(width)¶
- Parameters:
width – float
Holds the plane width.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.tangentAttribute()¶
- Return type:
Holds the geometry tangent attribute.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.texCoordAttribute()¶
- Return type:
Holds the geometry texture coordinate attribute.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.updateIndices()¶
Updates indices based on mesh resolution.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.updateVertices()¶
Updates vertices based on mesh resolution, width, and height properties.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.width()¶
- Return type:
float
Holds the plane width.
- PySide2.Qt3DExtras.Qt3DExtras.QPlaneGeometry.widthChanged(width)¶
- Parameters:
width – float
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.