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…
Synopsis#
Properties#
Functions#
def
bottomRadius()def
hasBottomEndcap()def
hasTopEndcap()def
indexAttribute()def
length()def
normalAttribute()def
positionAttribute()def
rings()def
slices()def
texCoordAttribute()def
topRadius()def
updateIndices()def
updateVertices()
Slots#
def
setBottomRadius(bottomRadius)def
setHasBottomEndcap(hasBottomEndcap)def
setHasTopEndcap(hasTopEndcap)def
setLength(length)def
setRings(rings)def
setSlices(slices)def
setTopRadius(topRadius)
Signals#
def
bottomRadiusChanged(bottomRadius)def
hasBottomEndcapChanged(hasBottomEndcap)def
hasTopEndcapChanged(hasTopEndcap)def
lengthChanged(length)def
ringsChanged(rings)def
slicesChanged(slices)def
topRadiusChanged(topRadius)
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#
* * * *
- class PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry([parent=None])#
- Parameters:
parent –
PySide6.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:
bottomRadius()setBottomRadius(bottomRadius)Signal
bottomRadiusChanged(bottomRadius)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.hasBottomEndcap: bool#
Determines if the cone bottom is capped or open.
- Access functions:
setHasBottomEndcap(hasBottomEndcap)Signal
hasBottomEndcapChanged(hasBottomEndcap)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.hasTopEndcap: bool#
Determines if the cone top is capped or open.
- Access functions:
hasTopEndcap()setHasTopEndcap(hasTopEndcap)Signal
hasTopEndcapChanged(hasTopEndcap)
- 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:
length()setLength(length)Signal
lengthChanged(length)
- 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:
rings()setRings(rings)Signal
ringsChanged(rings)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.slices: int#
Holds the number of slices in the geometry.
- Access functions:
slices()setSlices(slices)Signal
slicesChanged(slices)
- 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:
topRadius()setTopRadius(topRadius)Signal
topRadiusChanged(topRadius)
- PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.bottomRadius()#
- Return type:
float
See also
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
See also
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
See also
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:
Getter of property indexAttribute .
- PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.length()#
- Return type:
float
See also
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:
Getter of property normalAttribute .
- PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.positionAttribute()#
- Return type:
Getter of property positionAttribute .
- PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.rings()#
- Return type:
int
See also
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
Setter of property bottomRadius .
- PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.setHasBottomEndcap(hasBottomEndcap)#
- Parameters:
hasBottomEndcap – bool
See also
Setter of property hasBottomEndcap .
- PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.setHasTopEndcap(hasTopEndcap)#
- Parameters:
hasTopEndcap – bool
See also
Setter of property hasTopEndcap .
- PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.setLength(length)#
- Parameters:
length – float
See also
Setter of property length .
- PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.setRings(rings)#
- Parameters:
rings – int
See also
Setter of property rings .
- PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.setSlices(slices)#
- Parameters:
slices – int
See also
Setter of property slices .
- PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.setTopRadius(topRadius)#
- Parameters:
topRadius – float
See also
Setter of property topRadius .
- PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.slices()#
- Return type:
int
See also
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:
Getter of property texCoordAttribute .
- PySide6.Qt3DExtras.Qt3DExtras.QConeGeometry.topRadius()#
- Return type:
float
See also
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.