PySide6.Qt3DCore.Qt3DCore.QJoint¶
- class QJoint¶
用于变换部分蒙皮网格。更多…
概要¶
属性¶
方法¶
def
__init__()def
addChildJoint()def
childJoints()def
name()def
rotation()def
rotationX()def
rotationY()def
rotationZ()def
scale()def
translation()
插槽¶
def
setName()def
setRotation()def
setRotationX()def
setRotationY()def
setRotationZ()def
setScale()def
setToIdentity()def
setTranslation()
信号¶
def
nameChanged()def
scaleChanged()
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
QJoint节点用于构建骨架,作为 Qt 3D 中蒙皮网格支持的一部分。关节可以通过其缩放、旋转和平移属性进行变换。任何绑定到该关节的网格顶点将相应地更新其变换。注意
当使用
from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。- property inverseBindMatrixᅟ: QMatrix4x4¶
保存关节的逆绑定矩阵。这用于将顶点从模型空间转换到此关节的空间,以便它们随后可以乘以关节的全局变换以执行蒙皮操作。
- Access functions:
- property nameᅟ: str¶
- Access functions:
- property rotationᅟ: QQuaternion¶
保持关节的旋转为QQuaternion。
- Access functions:
- property rotationXᅟ: float¶
将关节的x旋转保持为欧拉角。
- Access functions:
- property rotationYᅟ: float¶
保持关节的y旋转作为欧拉角。
- Access functions:
- property rotationZᅟ: float¶
保持关节的z旋转作为欧拉角。
- Access functions:
保持关节的缩放比例。
- Access functions:
保存关节的平移作为QVector3D。
- Access functions:
- __init__([parent=None])¶
- Parameters:
parent –
QNode
使用
parent构造一个新的QJoint。- addChildJoint(joint)¶
- Parameters:
joint –
QJoint
将
joint添加为此关节的子关节。如果joint没有父关节,则此关节将拥有它。子关节位于其父关节的坐标系中。- childJoints()¶
- Return type:
这个关节作为子关节的关节向量。
- inverseBindMatrix()¶
- Return type:
另请参阅
setInverseBindMatrix()
属性
inverseBindMatrixᅟ的获取器。- inverseBindMatrixChanged(inverseBindMatrix)¶
- Parameters:
inverseBindMatrix –
QMatrix4x4
属性
inverseBindMatrixᅟ的通知信号。- name()¶
- Return type:
字符串
返回关节的名称。
另请参阅
setName()获取属性
nameᅟ的Getter。- nameChanged(name)¶
- Parameters:
name – str
属性
nameᅟ的通知信号。- removeChildJoint(joint)¶
- Parameters:
joint –
QJoint
从该关节的子关节列表中移除
joint。子关节不会被销毁。- rotation()¶
- Return type:
另请参阅
setRotation()
属性
rotationᅟ的获取器。- rotationChanged(rotation)¶
- Parameters:
旋转 –
QQuaternion
属性
rotationᅟ的通知信号。- rotationX()¶
- Return type:
浮点数
另请参阅
setRotationX()
获取属性
rotationXᅟ的Getter。- rotationXChanged(rotationX)¶
- Parameters:
rotationX – 浮点数
属性
rotationXᅟ的通知信号。- rotationY()¶
- Return type:
浮点数
另请参阅
setRotationY()
属性
rotationYᅟ的获取器。- rotationYChanged(rotationY)¶
- Parameters:
rotationY – 浮点数
属性
rotationYᅟ的通知信号。- rotationZ()¶
- Return type:
浮点数
另请参阅
setRotationZ()
属性
rotationZᅟ的获取器。- rotationZChanged(rotationZ)¶
- Parameters:
rotationZ – 浮点数
属性
rotationZᅟ的通知信号。属性
scaleᅟ的获取器。属性
scaleᅟ的通知信号。- setInverseBindMatrix(inverseBindMatrix)¶
- Parameters:
inverseBindMatrix –
QMatrix4x4
另请参阅
inverseBindMatrix()
属性
inverseBindMatrixᅟ的设置器。- setName(name)¶
- Parameters:
name – str
另请参阅
name()
属性
nameᅟ的设置器。- setRotation(rotation)¶
- Parameters:
旋转 –
QQuaternion
另请参阅
rotation()
属性
rotationᅟ的设置器。- setRotationX(rotationX)¶
- Parameters:
rotationX – 浮点数
另请参阅
rotationX()
属性
rotationXᅟ的设置器。- setRotationY(rotationY)¶
- Parameters:
rotationY – 浮点数
另请参阅
rotationY()
属性
rotationYᅟ的设置器。- setRotationZ(rotationZ)¶
- Parameters:
rotationZ – 浮点数
另请参阅
rotationZ()
属性
rotationZᅟ的设置器。属性
scaleᅟ的设置器。- setToIdentity()¶
将此关节的变换矩阵设置为单位矩阵。
属性
translationᅟ的设置器。属性
translationᅟ的获取器。属性
translationᅟ的通知信号。