QCylinderGeometry露

The QCylinderGeometry class allows creation of a cylinder in 3D space. * * * * * The QCylinderGeometry class is most commonly used internally by the QCylinderMesh * but can also be used in custom QGeometryRenderer subclasses. More鈥�

Inheritance diagram of PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry

Synopsis露

Functions露

Slots露

Signals露

Detailed Description露

* * * *

class PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry([parent=None])露

Constructs a new QCylinderMesh with parent .

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.indexAttribute()露
Return type:

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry index attribute.

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.length()露
Return type:

float

Holds the length of the cylinder.

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.lengthChanged(length)露
Parameters:

length 鈥� float

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.normalAttribute()露
Return type:

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry normal attribute.

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.positionAttribute()露
Return type:

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry position attribute.

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.radius()露
Return type:

float

Holds the radius of the cylinder.

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.radiusChanged(radius)露
Parameters:

radius 鈥� float

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.rings()露
Return type:

int

Holds the number of rings in the cylinder.

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.ringsChanged(rings)露
Parameters:

rings 鈥� int

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.setLength(length)露
Parameters:

length 鈥� float

Holds the length of the cylinder.

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.setRadius(radius)露
Parameters:

radius 鈥� float

Holds the radius of the cylinder.

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.setRings(rings)露
Parameters:

rings 鈥� int

Holds the number of rings in the cylinder.

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.setSlices(slices)露
Parameters:

slices 鈥� int

Holds the number of slices in the cylinder.

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.slices()露
Return type:

int

Holds the number of slices in the cylinder.

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.slicesChanged(slices)露
Parameters:

slices 鈥� int

PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.texCoordAttribute()露
Return type:

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry texture coordinate attribute.

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.