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