QTorusGeometry¶
The
QTorusGeometry
class allows creation of a torus in 3D space. * * * * * TheQTorusGeometry
class is most commonly used internally by theQTorusMesh
* but can also be used in customQGeometryRenderer
subclasses. More…
Synopsis¶
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)
Detailed Description¶
* * * *
- class PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry([parent=None])¶
- param parent:
Constructs a new
QTorusGeometry
withparent
.
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.indexAttribute()¶
- Return type:
Holds the geometry index attribute.
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.minorRadius()¶
- Return type:
float
Holds the inner radius of the torus.
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.minorRadiusChanged(minorRadius)¶
- Parameters:
minorRadius – float
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.normalAttribute()¶
- Return type:
Holds the geometry normal attribute.
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.positionAttribute()¶
- Return type:
Holds the geometry position attribute.
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.radius()¶
- Return type:
float
Holds the outer radius of the torus.
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.radiusChanged(radius)¶
- Parameters:
radius – float
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.rings()¶
- Return type:
int
Holds the number of rings in the torus.
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.ringsChanged(rings)¶
- Parameters:
rings – int
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.setMinorRadius(minorRadius)¶
- Parameters:
minorRadius – float
Holds the inner radius of the torus.
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.setRadius(radius)¶
- Parameters:
radius – float
Holds the outer radius of the torus.
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.setRings(rings)¶
- Parameters:
rings – int
Holds the number of rings in the torus.
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.setSlices(slices)¶
- Parameters:
slices – int
Holds the number of slices in the torus.
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.slices()¶
- Return type:
int
Holds the number of slices in the torus.
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.slicesChanged(slices)¶
- Parameters:
slices – int
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.texCoordAttribute()¶
- Return type:
Holds the geometry texture coordinate attribute.
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.updateIndices()¶
Updates indices based on rings and slices properties.
- PySide2.Qt3DExtras.Qt3DExtras.QTorusGeometry.updateVertices()¶
Updates vertices based on rings, slices, and radius properties.
© 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.