QConeGeometry#

The QConeGeometry class allows creation of a cone in 3D space. More

Inheritance diagram of PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry

Synopsis#

Properties#

Functions#

Slots#

Signals#

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#

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.

class PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry([parent=None])#
Parameters:

parentPySide6.Qt3DCore.Qt3DCore.QNode

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.bottomRadius: float#

Holds the bottom radius of the cone.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.hasBottomEndcap: bool#

Determines if the cone bottom is capped or open.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.hasTopEndcap: bool#

Determines if the cone top is capped or open.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.indexAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#

Holds the geometry index attribute.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.length: float#

Holds the length of the cone.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.normalAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#

Holds the geometry normal attribute.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.positionAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#

Holds the geometry position attribute.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.rings: int#

Holds the number of rings in the geometry.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.slices: int#

Holds the number of slices in the geometry.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.texCoordAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#

Holds the geometry texture coordinate attribute.

Access functions:
property PᅟySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.topRadius: float#

Holds the top radius of the cone.

Access functions:
PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.bottomRadius()#
Return type:

float

Getter of property bottomRadius .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.bottomRadiusChanged(bottomRadius)#
Parameters:

bottomRadius – float

Notification signal of property bottomRadius .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.hasBottomEndcap()#
Return type:

bool

Getter of property hasBottomEndcap .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.hasBottomEndcapChanged(hasBottomEndcap)#
Parameters:

hasBottomEndcap – bool

Notification signal of property hasBottomEndcap .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.hasTopEndcap()#
Return type:

bool

Getter of property hasTopEndcap .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.hasTopEndcapChanged(hasTopEndcap)#
Parameters:

hasTopEndcap – bool

Notification signal of property hasTopEndcap .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.indexAttribute()#
Return type:

PySide6.Qt3DCore.Qt3DCore.QAttribute

Getter of property indexAttribute .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.length()#
Return type:

float

See also

setLength()

Getter of property length .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.lengthChanged(length)#
Parameters:

length – float

Notification signal of property length .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.normalAttribute()#
Return type:

PySide6.Qt3DCore.Qt3DCore.QAttribute

Getter of property normalAttribute .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.positionAttribute()#
Return type:

PySide6.Qt3DCore.Qt3DCore.QAttribute

Getter of property positionAttribute .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.rings()#
Return type:

int

See also

setRings()

Getter of property rings .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.ringsChanged(rings)#
Parameters:

rings – int

Notification signal of property rings .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.setBottomRadius(bottomRadius)#
Parameters:

bottomRadius – float

See also

bottomRadius()

Setter of property bottomRadius .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.setHasBottomEndcap(hasBottomEndcap)#
Parameters:

hasBottomEndcap – bool

Setter of property hasBottomEndcap .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.setHasTopEndcap(hasTopEndcap)#
Parameters:

hasTopEndcap – bool

See also

hasTopEndcap()

Setter of property hasTopEndcap .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.setLength(length)#
Parameters:

length – float

See also

length()

Setter of property length .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.setRings(rings)#
Parameters:

rings – int

See also

rings()

Setter of property rings .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.setSlices(slices)#
Parameters:

slices – int

See also

slices()

Setter of property slices .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.setTopRadius(topRadius)#
Parameters:

topRadius – float

See also

topRadius()

Setter of property topRadius .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.slices()#
Return type:

int

See also

setSlices()

Getter of property slices .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.slicesChanged(slices)#
Parameters:

slices – int

Notification signal of property slices .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.texCoordAttribute()#
Return type:

PySide6.Qt3DCore.Qt3DCore.QAttribute

Getter of property texCoordAttribute .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.topRadius()#
Return type:

float

See also

setTopRadius()

Getter of property topRadius .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.topRadiusChanged(topRadius)#
Parameters:

topRadius – float

Notification signal of property topRadius .

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.updateIndices()#

Updates indices based on geometry properties.

PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.updateVertices()#

Updates vertices based on geometry properties.