- class QConeGeometry¶
The
QConeGeometry
class allows creation of a cone in 3D space. More…Synopsis¶
Properties¶
Methods¶
def
__init__()
def
bottomRadius()
def
hasTopEndcap()
def
indexAttribute()
def
length()
def
rings()
def
slices()
def
topRadius()
def
updateIndices()
def
updateVertices()
Slots¶
def
setLength()
def
setRings()
def
setSlices()
def
setTopRadius()
Signals¶
def
lengthChanged()
def
ringsChanged()
def
slicesChanged()
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 theQConeMesh
but can also be used in customQGeometryRenderer
subclasses. The class allows for creation of both a cone and a truncated cone.Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property bottomRadiusᅟ: float¶
Holds the bottom radius of the cone.
- Access functions:
- property hasBottomEndcapᅟ: bool¶
Determines if the cone bottom is capped or open.
- Access functions:
- property hasTopEndcapᅟ: bool¶
Determines if the cone top is capped or open.
- Access functions:
- property indexAttributeᅟ: QAttribute¶
Holds the geometry index attribute.
- Access functions:
- property lengthᅟ: float¶
Holds the length of the cone.
- Access functions:
Signal
lengthChanged()
- property normalAttributeᅟ: QAttribute¶
Holds the geometry normal attribute.
- Access functions:
- property positionAttributeᅟ: QAttribute¶
Holds the geometry position attribute.
- Access functions:
- property ringsᅟ: int¶
Holds the number of rings in the geometry.
- Access functions:
Signal
ringsChanged()
- property slicesᅟ: int¶
Holds the number of slices in the geometry.
- Access functions:
Signal
slicesChanged()
- property texCoordAttributeᅟ: QAttribute¶
Holds the geometry texture coordinate attribute.
- Access functions:
- property topRadiusᅟ: float¶
Holds the top radius of the cone.
- Access functions:
- __init__([parent=None])¶
- Parameters:
parent –
QNode
- bottomRadius()¶
- Return type:
float
See also
setBottomRadius()
Getter of property
bottomRadiusᅟ
.- bottomRadiusChanged(bottomRadius)¶
- Parameters:
bottomRadius – float
Notification signal of property
bottomRadiusᅟ
.- hasBottomEndcap()¶
- Return type:
bool
See also
setHasBottomEndcap()
Getter of property
hasBottomEndcapᅟ
.- hasBottomEndcapChanged(hasBottomEndcap)¶
- Parameters:
hasBottomEndcap – bool
Notification signal of property
hasBottomEndcapᅟ
.- hasTopEndcap()¶
- Return type:
bool
See also
setHasTopEndcap()
Getter of property
hasTopEndcapᅟ
.- hasTopEndcapChanged(hasTopEndcap)¶
- Parameters:
hasTopEndcap – bool
Notification signal of property
hasTopEndcapᅟ
.- indexAttribute()¶
- Return type:
QAttribute
Getter of property
indexAttributeᅟ
.- length()¶
- Return type:
float
See also
setLength()
Getter of property
lengthᅟ
.- lengthChanged(length)¶
- Parameters:
length – float
Notification signal of property
lengthᅟ
.- normalAttribute()¶
- Return type:
QAttribute
Getter of property
normalAttributeᅟ
.- positionAttribute()¶
- Return type:
QAttribute
Getter of property
positionAttributeᅟ
.- rings()¶
- Return type:
int
See also
setRings()
Getter of property
ringsᅟ
.- ringsChanged(rings)¶
- Parameters:
rings – int
Notification signal of property
ringsᅟ
.- setBottomRadius(bottomRadius)¶
- Parameters:
bottomRadius – float
See also
bottomRadius()
Setter of property
bottomRadiusᅟ
.- setHasBottomEndcap(hasBottomEndcap)¶
- Parameters:
hasBottomEndcap – bool
See also
hasBottomEndcap()
Setter of property
hasBottomEndcapᅟ
.- setHasTopEndcap(hasTopEndcap)¶
- Parameters:
hasTopEndcap – bool
See also
hasTopEndcap()
Setter of property
hasTopEndcapᅟ
.- setLength(length)¶
- Parameters:
length – float
See also
length()
Setter of property
lengthᅟ
.- setRings(rings)¶
- Parameters:
rings – int
See also
rings()
Setter of property
ringsᅟ
.- setSlices(slices)¶
- Parameters:
slices – int
See also
slices()
Setter of property
slicesᅟ
.- setTopRadius(topRadius)¶
- Parameters:
topRadius – float
See also
topRadius()
Setter of property
topRadiusᅟ
.- slices()¶
- Return type:
int
See also
setSlices()
Getter of property
slicesᅟ
.- slicesChanged(slices)¶
- Parameters:
slices – int
Notification signal of property
slicesᅟ
.- texCoordAttribute()¶
- Return type:
QAttribute
Getter of property
texCoordAttributeᅟ
.- topRadius()¶
- Return type:
float
See also
setTopRadius()
Getter of property
topRadiusᅟ
.- topRadiusChanged(topRadius)¶
- Parameters:
topRadius – float
Notification signal of property
topRadiusᅟ
.- updateIndices()¶
Updates indices based on geometry properties.
- updateVertices()¶
Updates vertices based on geometry properties.