QConeGeometry露

The QConeGeometry class allows creation of a cone in 3D space. * * * * * The QConeGeometry class is most commonly used internally by the QConeMesh * but can also be used in custom QGeometryRenderer subclasses. The class * allows for creation of both a cone and a truncated cone. More鈥�

Inheritance diagram of PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry

Synopsis露

Functions露

Slots露

Signals露

Detailed Description露

* * * *

class PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry([parent=None])露
Parameters:

parent 鈥� PySide2.Qt3DCore.Qt3DCore.QNode

PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry.bottomRadius()露
Return type:

float

Holds the bottom radius of the cone.

PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry.bottomRadiusChanged(bottomRadius)露
Parameters:

bottomRadius 鈥� float

PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry.hasBottomEndcap()露
Return type:

bool

Determines if the cone bottom is capped or open.

PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry.hasBottomEndcapChanged(hasBottomEndcap)露
Parameters:

hasBottomEndcap 鈥� bool

PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry.hasTopEndcap()露
Return type:

bool

Determines if the cone top is capped or open.

PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry.hasTopEndcapChanged(hasTopEndcap)露
Parameters:

hasTopEndcap 鈥� bool

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

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry index attribute.

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

float

Holds the length of the cone.

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

length 鈥� float

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

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry normal attribute.

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

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry position attribute.

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

int

Holds the number of rings in the geometry.

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

rings 鈥� int

PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry.setBottomRadius(bottomRadius)露
Parameters:

bottomRadius 鈥� float

Holds the bottom radius of the cone.

PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry.setHasBottomEndcap(hasBottomEndcap)露
Parameters:

hasBottomEndcap 鈥� bool

Determines if the cone bottom is capped or open.

PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry.setHasTopEndcap(hasTopEndcap)露
Parameters:

hasTopEndcap 鈥� bool

Determines if the cone top is capped or open.

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

length 鈥� float

Holds the length of the cone.

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

rings 鈥� int

Holds the number of rings in the geometry.

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

slices 鈥� int

Holds the number of slices in the geometry.

PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry.setTopRadius(topRadius)露
Parameters:

topRadius 鈥� float

Holds the top radius of the cone.

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

int

Holds the number of slices in the geometry.

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

slices 鈥� int

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

PySide2.Qt3DRender.Qt3DRender.QAttribute

Holds the geometry texture coordinate attribute.

PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry.topRadius()露
Return type:

float

Holds the top radius of the cone.

PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry.topRadiusChanged(topRadius)露
Parameters:

topRadius 鈥� float

PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry.updateIndices()露

Updates indices based on geometry properties.

PySide2.Qt3DExtras.Qt3DExtras.QConeGeometry.updateVertices()露

Updates vertices based on geometry properties.