QCylinderGeometry#
The QCylinderGeometry
class allows creation of a cylinder in 3D space. More…
Synopsis#
Properties#
Functions#
def
indexAttribute
()def
length
()def
normalAttribute
()def
positionAttribute
()def
radius
()def
rings
()def
slices
()def
texCoordAttribute
()def
updateIndices
()def
updateVertices
()
Slots#
Signals#
def
lengthChanged
(length)def
radiusChanged
(radius)def
ringsChanged
(rings)def
slicesChanged
(slices)
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 QCylinderGeometry
class is most commonly used internally by the QCylinderMesh
but can also be used in custom QGeometryRenderer
subclasses.
- class PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QCylinderMesh
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.QCylinderGeometry.indexAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry index attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.length: float#
Holds the length of the cylinder.
- Access functions:
length
()setLength
(length)Signal
lengthChanged
(length)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.normalAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry normal attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.positionAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry position attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.radius: float#
Holds the radius of the cylinder.
- Access functions:
radius
()setRadius
(radius)Signal
radiusChanged
(radius)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.rings: int#
Holds the number of rings in the cylinder.
- Access functions:
rings
()setRings
(rings)Signal
ringsChanged
(rings)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.slices: int#
Holds the number of slices in the cylinder.
- Access functions:
slices
()setSlices
(slices)Signal
slicesChanged
(slices)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.texCoordAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry texture coordinate attribute.
- Access functions:
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.indexAttribute()#
- Return type:
Getter of property indexAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.length()#
- Return type:
float
See also
Getter of property length
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.lengthChanged(length)#
- Parameters:
length – float
Notification signal of property length
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.normalAttribute()#
- Return type:
Getter of property normalAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.positionAttribute()#
- Return type:
Getter of property positionAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.radius()#
- Return type:
float
See also
Getter of property radius
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.radiusChanged(radius)#
- Parameters:
radius – float
Notification signal of property radius
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.rings()#
- Return type:
int
See also
Getter of property rings
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.ringsChanged(rings)#
- Parameters:
rings – int
Notification signal of property rings
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.setLength(length)#
- Parameters:
length – float
See also
Setter of property length
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.setRadius(radius)#
- Parameters:
radius – float
See also
Setter of property radius
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.setRings(rings)#
- Parameters:
rings – int
See also
Setter of property rings
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.setSlices(slices)#
- Parameters:
slices – int
See also
Setter of property slices
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.slices()#
- Return type:
int
See also
Getter of property slices
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.slicesChanged(slices)#
- Parameters:
slices – int
Notification signal of property slices
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.texCoordAttribute()#
- Return type:
Getter of property texCoordAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.updateIndices()#
Updates the indices based on rings, slices, and length properties.
- PySide6.Qt3DExtras.Qt3DExtras.QCylinderGeometry.updateVertices()#
Updates the vertices based on rings, slices, and length properties.