- class QSphereGeometry¶
The
QSphereGeometry
class allows creation of a sphere in 3D space. More…Synopsis¶
Properties¶
Methods¶
def
__init__()
def
indexAttribute()
def
radius()
def
rings()
def
slices()
def
updateIndices()
def
updateVertices()
Slots¶
def
setRadius()
def
setRings()
def
setSlices()
Signals¶
def
radiusChanged()
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
QSphereGeometry
class is most commonly used internally by theQSphereMesh
but can also be used in customQGeometryRenderer
subclasses.Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property generateTangentsᅟ: bool¶
Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.
- Access functions:
- property indexAttributeᅟ: QAttribute¶
Holds the geometry index attribute.
- Access functions:
- property normalAttributeᅟ: QAttribute¶
Holds the geometry normal attribute.
- Access functions:
- property positionAttributeᅟ: QAttribute¶
Holds the geometry position attribute.
- Access functions:
- property radiusᅟ: float¶
Holds the radius of the sphere.
- Access functions:
Signal
radiusChanged()
- property ringsᅟ: int¶
Holds the number of rings in the sphere.
- Access functions:
Signal
ringsChanged()
- property slicesᅟ: int¶
Holds the number of slices in the sphere.
- Access functions:
Signal
slicesChanged()
- property tangentAttributeᅟ: QAttribute¶
Holds the geometry tangent attribute.
- Access functions:
- property texCoordAttributeᅟ: QAttribute¶
Holds the geometry texture coordinate attribute.
- Access functions:
- __init__([parent=None])¶
- Parameters:
parent –
QNode
Constructs a new
QSphereGeometry
withparent
.- generateTangents()¶
- Return type:
bool
See also
setGenerateTangents()
Getter of property
generateTangentsᅟ
.- generateTangentsChanged(generateTangents)¶
- Parameters:
generateTangents – bool
Notification signal of property
generateTangentsᅟ
.- indexAttribute()¶
- Return type:
QAttribute
Getter of property
indexAttributeᅟ
.- normalAttribute()¶
- Return type:
QAttribute
Getter of property
normalAttributeᅟ
.- positionAttribute()¶
- Return type:
QAttribute
Getter of property
positionAttributeᅟ
.- radius()¶
- Return type:
float
See also
setRadius()
Getter of property
radiusᅟ
.- radiusChanged(radius)¶
- Parameters:
radius – float
Notification signal of property
radiusᅟ
.- rings()¶
- Return type:
int
See also
setRings()
Getter of property
ringsᅟ
.- ringsChanged(rings)¶
- Parameters:
rings – int
Notification signal of property
ringsᅟ
.- setGenerateTangents(gen)¶
- Parameters:
gen – bool
See also
generateTangents()
Setter of property
generateTangentsᅟ
.- setRadius(radius)¶
- Parameters:
radius – float
See also
radius()
Setter of property
radiusᅟ
.- setRings(rings)¶
- Parameters:
rings – int
See also
rings()
Setter of property
ringsᅟ
.- setSlices(slices)¶
- Parameters:
slices – int
See also
slices()
Setter of property
slicesᅟ
.- slices()¶
- Return type:
int
See also
setSlices()
Getter of property
slicesᅟ
.- slicesChanged(slices)¶
- Parameters:
slices – int
Notification signal of property
slicesᅟ
.- tangentAttribute()¶
- Return type:
QAttribute
Getter of property
tangentAttributeᅟ
.- texCoordAttribute()¶
- Return type:
QAttribute
Getter of property
texCoordAttributeᅟ
.- updateIndices()¶
Updates indices based on rings and slices properties.
- updateVertices()¶
Updates vertices based on rings, slices, and radius properties