- 类 QConeGeometryView#
圆锥网格。 更多…
概述#
属性#
方法#
def
__init__()def
bottomRadius()def
hasTopEndcap()def
length()def
rings()def
slices()def
topRadius()
槽#
def
setLength()def
setRings()def
setSlices()def
setTopRadius()
信号#
注释
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对片段翻译的贡献。如果您发现翻译有问题,也可以通过创建https:/bugreports.qt.io/projects/PYSIDE上的工单来通知我们。
详细描述#
* * * * * * *
注释
当使用
from __feature__ import true_property时,可以直接使用属性,否则可以通过访问函数来访问。- 属性bottomRadius: float#
保留圆锥的底部半径。
- 属性hasBottomEndcap: bool#
确定圆锥底部是封闭还是张开。
- 属性hasTopEndcap: bool#
确定圆锥顶部是封闭还是张开。
- 属性length: float#
保留圆锥的长度。
- 访问函数
- 属性rings: int#
保留网格中的圆环数量。
- 访问函数
- 属性 slices: int#
保存网格的切割片数。
- 访问函数
- 属性 topRadius: float#
保存圆锥的上半径。
- __init__([parent=None])#
- 参数:
parent –
QNode
- bottomRadius()#
- 返回类型:
float
另请参阅
setBottomRadius()
属性
bottomRadius的获取器。- bottomRadiusChanged(bottomRadius)#
- 参数:
bottomRadius – float
属性
bottomRadius的更改通知信号。- hasBottomEndcap()#
- 返回类型:
bool
另请参阅
setHasBottomEndcap()
属性
hasBottomEndcap的获取器。- hasBottomEndcapChanged(hasBottomEndcap)#
- 参数:
hasBottomEndcap – bool
属性
hasBottomEndcap的更改通知信号。- hasTopEndcap()#
- 返回类型:
bool
另请参阅
setHasTopEndcap()
属性
hasTopEndcap的获取器。- hasTopEndcapChanged(hasTopEndcap)#
- 参数:
hasTopEndcap – bool
属性
hasTopEndcap的通知信号。- length()#
- 返回类型:
float
另请参阅
setLength()
属性
length的获取器。- lengthChanged(length)#
- 参数:
length – float
属性
length的通知信号。- rings()#
- 返回类型:
int
另请参阅
setRings()
属性
rings的获取器。- ringsChanged(rings)#
- 参数:
rings – int
属性
rings的通知信号。- setBottomRadius(bottomRadius)#
- 参数:
bottomRadius – float
另请参阅
bottomRadius()
属性
bottomRadius的设置器。- setHasBottomEndcap(hasBottomEndcap)#
- 参数:
hasBottomEndcap – bool
另请参阅
hasBottomEndcap()
属性
hasBottomEndcap的设置器。- setHasTopEndcap(hasTopEndcap)#
- 参数:
hasTopEndcap – bool
另请参阅
hasTopEndcap()
属性
hasTopEndcap的设置器。- setLength(length)#
- 参数:
length – float
另请参阅
length()
属性
length的设置器。- setRings(rings)#
- 参数:
rings – int
另请参阅
rings()
属性
rings的设置器。- setSlices(slices)#
- 参数:
slices – int
另请参阅
slices()
属性
slices的设置器。- setTopRadius(topRadius)#
- 参数:
topRadius – float
另请参阅
topRadius()
属性
topRadius的设置器。- slices()#
- 返回类型:
int
另请参阅
setSlices()
属性
slices的获取器。- slicesChanged(slices)#
- 参数:
slices – int
属性
slices的通知信号。- topRadius()#
- 返回类型:
float
另请参阅
setTopRadius()
属性
topRadius的获取器。- topRadiusChanged(topRadius)#
- 参数:
topRadius – float
属性
topRadius的通知信号。