- class QPlaneGeometry¶
The
QPlaneGeometry
class allows creation of a plane in 3D space. More…Synopsis¶
Properties¶
Methods¶
def
__init__()
def
height()
def
indexAttribute()
def
mirrored()
def
resolution()
def
updateIndices()
def
updateVertices()
def
width()
Slots¶
def
setHeight()
def
setMirrored()
def
setResolution()
def
setWidth()
Signals¶
def
heightChanged()
def
widthChanged()
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
QPlaneGeometry
class is most commonly used internally by theQPlaneMesh
but can also be used in customQGeometryRenderer
subclasses.Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property heightᅟ: float¶
Holds the plane height.
- Access functions:
Signal
heightChanged()
- property indexAttributeᅟ: QAttribute¶
Holds the geometry index attribute.
- Access functions:
- property mirroredᅟ: bool¶
Controls if the UV coordinates of the plane should be flipped vertically.
- Access functions:
- property normalAttributeᅟ: QAttribute¶
Holds the geometry normal attribute.
- Access functions:
- property positionAttributeᅟ: QAttribute¶
Holds the geometry position attribute.
- Access functions:
Holds the plane resolution.
- Access functions:
- property tangentAttributeᅟ: QAttribute¶
Holds the geometry tangent attribute.
- Access functions:
- property texCoordAttributeᅟ: QAttribute¶
Holds the geometry texture coordinate attribute.
- Access functions:
- property widthᅟ: float¶
Holds the plane width.
- Access functions:
Signal
widthChanged()
- __init__([parent=None])¶
- Parameters:
parent –
QNode
Constructs a new
QPlaneGeometry
withparent
.- height()¶
- Return type:
float
See also
setHeight()
Getter of property
heightᅟ
.- heightChanged(height)¶
- Parameters:
height – float
Notification signal of property
heightᅟ
.- indexAttribute()¶
- Return type:
QAttribute
Getter of property
indexAttributeᅟ
.- mirrored()¶
- Return type:
bool
See also
setMirrored()
Getter of property
mirroredᅟ
.- mirroredChanged(mirrored)¶
- Parameters:
mirrored – bool
Notification signal of property
mirroredᅟ
.- normalAttribute()¶
- Return type:
QAttribute
Getter of property
normalAttributeᅟ
.- positionAttribute()¶
- Return type:
QAttribute
Getter of property
positionAttributeᅟ
.Getter of property
resolutionᅟ
.Notification signal of property
resolutionᅟ
.- setHeight(height)¶
- Parameters:
height – float
See also
height()
Setter of property
heightᅟ
.- setMirrored(mirrored)¶
- Parameters:
mirrored – bool
See also
mirrored()
Setter of property
mirroredᅟ
.Setter of property
resolutionᅟ
.- setWidth(width)¶
- Parameters:
width – float
See also
width()
Setter of property
widthᅟ
.- tangentAttribute()¶
- Return type:
QAttribute
Getter of property
tangentAttributeᅟ
.- texCoordAttribute()¶
- Return type:
QAttribute
Getter of property
texCoordAttributeᅟ
.- updateIndices()¶
Updates indices based on mesh resolution.
- updateVertices()¶
Updates vertices based on mesh resolution, width, and height properties.
- width()¶
- Return type:
float
See also
setWidth()
Getter of property
widthᅟ
.- widthChanged(width)¶
- Parameters:
width – float
Notification signal of property
widthᅟ
.