- class QCylinderGeometry#
《QCylinderGeometry》类允许在三维空间中创建一个圆柱。更多...
摘要#
属性#
方法#
def
__init__()def
indexAttribute()def
length()def
radius()def
rings()def
slices()def
updateIndices()def
updateVertices()
插槽#
def
setLength()def
setRadius()def
setRings()def
setSlices()
信号#
def
lengthChanged()def
radiusChanged()def
ringsChanged()
说明
本文档可能包含自动从C++翻译到Python的代码片段。我们始终欢迎对片段翻译的贡献。如果您在翻译中发现问题,您也可以通过在https://bugreports.qt.io/projects/PYSIDE上创建票据来告知我们。
详细说明#
QCylinderGeometry类通常由QCylinderMesh内部使用,但也可用于自定义的QGeometryRenderer子类。说明
当使用
from __feature__ import true_property时,属性可以直接使用,否则通过访问函数使用。- 属性indexAttribute():: QAttribute#
包含几何索引属性。
- 访问函数
- 属性length():: float#
包含圆柱体的长度。
- 访问函数
- 属性normalAttribute():: QAttribute#
包含几何法线属性。
- 访问函数
- 属性positionAttribute():: QAttribute#
包含几何位置属性。
- 访问函数
- 属性radius():: float#
包含圆柱体的半径。
- 访问函数
- 属性rings():: int#
包含圆柱体中的环数。
- 访问函数
- 属性 slices: int#
保存圆柱体切片的数量。
- 访问函数
- 属性 texCoordAttribute: QAttribute#
保存几何纹理坐标属性。
- 访问函数
- __init__([parent=None])#
- 参数:
parent –
QNode
使用
parent构建一个新QCylinderMesh。- indexAttribute()#
- 返回类型:
QAttribute
属性
indexAttribute的获取器。- length()#
- 返回类型:
float
另请参阅
setLength()
属性
length的获取器。- lengthChanged(length)#
- 参数:
length – float
属性
length的通知信号。- normalAttribute()#
- 返回类型:
QAttribute
属性
normalAttribute的获取器。- positionAttribute()#
- 返回类型:
QAttribute
属性
positionAttribute的获取器。- radius()#
- 返回类型:
float
另请参阅
setRadius()
属性
radius的获取器。- radiusChanged(radius)#
- 参数:
radius – float
属性
radiusᅟ的通知信号。- rings()#
- 返回类型:
int
另请参阅
setRings()
属性
ringsᅟ的获取器。- ringsChanged(rings)#
- 参数:
rings – int
属性
ringsᅟ的通知信号。- setLength(length)#
- 参数:
length – float
另请参阅
length()
属性
lengthᅟ的设置器。- setRadius(radius)#
- 参数:
radius – float
另请参阅
radius()
属性
radiusᅟ的设置器。- setRings(rings)#
- 参数:
rings – int
另请参阅
rings()
属性
ringsᅟ的设置器。- setSlices(slices)#
- 参数:
slices – int
另请参阅
slices()
属性
slicesᅟ的设置器。- slices()#
- 返回类型:
int
另请参阅
setSlices()
属性
slicesᅟ的获取器。- slicesChanged(slices)#
- 参数:
slices – int
属性
slicesᅟ的通知信号。- texCoordAttribute()#
- 返回类型:
QAttribute
属性
texCoordAttributeᅟ的获取器。- updateIndices()#
根据环、切片和长度属性更新索引。
- updateVertices()#
根据环、切片和长度属性更新顶点。