- class QCustom3DItem#
-
继承自:
QCustom3DVolume,QCustom3DLabel概述#
属性#
方法#
def
__init__()def
isVisible()def
meshFile()def
position()def
rotation()def
scaling()def
setMeshFile()def
setPosition()def
setRotation()def
setScaling()def
setTextureFile()def
setVisible()def
textureFile()
信号#
注意:
此文档可能包含从 C++ 自动转换为 Python 的代码片段。我们始终欢迎对片段翻译的贡献。如果您发现翻译有问题,也可以通过在 https:/bugreports.qt.io/projects/PYSIDE 上创建工单来告诉我们
详细描述#
注意:
属性可以在使用
from __feature__ import true_property时直接使用,否则可以通过访问函数使用。- 属性meshFileᅟ: str#
- 访问函数
- 访问函数
- 属性positionAbsoluteᅟ: bool#
- 属性 property 旋转: QQuaternion#
- 访问函数
- 访问函数
- 属性 property 缩放绝对: bool#
- 属性 property 是否投射阴影: bool#
- 属性 property 纹理文件: str#
- 属性 property 可见: bool#
- 访问函数
- __init__(meshFile, position, scaling, rotation, texture[, parent=None])#
- 参数:
meshFile – 字符串
position –
QVector3D缩放 –
QVector3D旋转 –
QQuaternion纹理 –
QImage父对象 –
QObject
- __init__([parent=None])
- 参数:
父对象 –
QObject
- isPositionAbsolute()#
- 返回类型:
bool
属性
positionAbsolute的获取器。- isScalingAbsolute()#
- 返回类型:
bool
属性
scalingAbsolute的获取器。- isShadowCasting()#
- 返回类型:
bool
属性
shadowCasting的获取器。- isVisible()#
- 返回类型:
bool
属性
visible的获取器。- meshFile()#
- 返回类型:
str
属性
meshFile的获取器。- meshFileChanged(meshFile)#
- 参数:
meshFile – 字符串
属性
meshFile的通知信号。- needUpdate()#
属性
position的获取器。- positionAbsoluteChanged(positionAbsolute)#
- 参数:
positionAbsolute – bool
属性
positionAbsolute的通知信号。属性
position的通知信号。- rotation()#
- 返回类型:
属性
rotation的获取器。- rotationChanged(rotation)#
- 参数:
旋转 –
QQuaternion
属性
rotation的通知信号。属性
scaling的获取器。- scalingAbsoluteChanged(scalingAbsolute)#
- 参数:
scalingAbsolute – bool
属性
scalingAbsolute的通知信号。属性
scaling的通知信号。- setMeshFile(meshFile)#
- 参数:
meshFile – 字符串
属性
meshFile的设置器。属性
position的设置器。- setPositionAbsolute(positionAbsolute)#
- 参数:
positionAbsolute – bool
属性
positionAbsolute的设置器。- setRotation(rotation)#
- 参数:
旋转 –
QQuaternion
属性
rotation的设置器。属性
scaling的设置器。- setScalingAbsolute(scalingAbsolute)#
- 参数:
scalingAbsolute – bool
属性
scalingAbsolute的设置器。- setShadowCasting(enabled)#
- 参数:
enabled – 布尔值
属性
shadowCasting的设置器。- setTextureFile(textureFile)#
- 参数:
textureFile – 字符串
属性
textureFile的设置器。- setVisible(visible)#
- 参数:
visible – 布尔值
属性
visible的设置器。- shadowCastingChanged(shadowCasting)#
- 参数:
shadowCasting – 布尔值
属性
shadowCasting的通知信号。- textureFile()#
- 返回类型:
str
属性
textureFileᅟ的获取器。- textureFileChanged(textureFile)#
- 参数:
textureFile – 字符串
属性
textureFileᅟ的通知信号。- visibleChanged(visible)#
- 参数:
visible – 布尔值
属性
visibleᅟ的通知信号。