Qt3DExtras.QCylinderGeometry¶
The
QCylinderGeometry
class allows creation of a cylinder in 3D space. * * * * * TheQCylinderGeometry
class is most commonly used internally by theQCylinderMesh
* but can also be used in customQGeometryRenderer
subclasses. More…
Synopsis¶
Functions¶
def
indexAttribute
()def
length
()def
normalAttribute
()def
positionAttribute
()def
radius
()def
rings
()def
slices
()def
texCoordAttribute
()def
updateIndices
()def
updateVertices
()
Signals¶
def
lengthChanged
(length)def
radiusChanged
(radius)def
ringsChanged
(rings)def
slicesChanged
(slices)
Detailed Description¶
* * * *
-
class
PySide2.Qt3DExtras.Qt3DExtras.
QCylinderGeometry
([parent=None])¶ - param parent
QNode
Constructs a new
QCylinderMesh
withparent
.
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
indexAttribute
()¶ - Return type
QAttribute
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
length
()¶ - Return type
float
See also
setLength()
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
lengthChanged
(length)¶ - Parameters
length –
float
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
normalAttribute
()¶ - Return type
QAttribute
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
positionAttribute
()¶ - Return type
QAttribute
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
radius
()¶ - Return type
float
See also
setRadius()
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
radiusChanged
(radius)¶ - Parameters
radius –
float
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
rings
()¶ - Return type
int
See also
setRings()
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
ringsChanged
(rings)¶ - Parameters
rings –
int
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
setLength
(length)¶ - Parameters
length –
float
See also
length()
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
setRadius
(radius)¶ - Parameters
radius –
float
See also
radius()
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
setRings
(rings)¶ - Parameters
rings –
int
See also
rings()
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
setSlices
(slices)¶ - Parameters
slices –
int
See also
slices()
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
slices
()¶ - Return type
int
See also
setSlices()
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
slicesChanged
(slices)¶ - Parameters
slices –
int
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
texCoordAttribute
()¶ - Return type
QAttribute
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
updateIndices
()¶ Updates the indices based on rings, slices, and length properties.
-
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
updateVertices
()¶ Updates the vertices based on rings, slices, and length properties.
© 2018 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.