Used to transforms parts of skinned meshes. 更多 …
New in version 5.10.
def
addChildJoint
(joint)
def
childJoints
()
def
inverseBindMatrix
()
def
name
()
def
removeChildJoint
(joint)
def
rotation
()
def
rotationX
()
def
rotationY
()
def
rotationZ
()
def
scale
()
def
translation
()
def
setInverseBindMatrix
(inverseBindMatrix)
def
setName
(name)
def
setRotation
(rotation)
def
setRotationX
(rotationX)
def
setRotationY
(rotationY)
def
setRotationZ
(rotationZ)
def
setScale
(scale)
def
setToIdentity
()
def
setTranslation
(translation)
def
inverseBindMatrixChanged
(inverseBindMatrix)
def
nameChanged
(name)
def
rotationChanged
(rotation)
def
rotationXChanged
(rotationX)
def
rotationYChanged
(rotationY)
def
rotationZChanged
(rotationZ)
def
scaleChanged
(scale)
def
translationChanged
(translation)
QJointnode is used to build skeletons as part of the skinned mesh support in Qt 3D. A joint can be transformed by way of its scale, rotation and translation properties. Any mesh vertices that are bound to the joint will have their transformations updated accordingly.
PySide2.Qt3DCore.Qt3DCore.
QJoint
(
[
parent=None
]
)
¶
- param parent
QNode
构造新
QJoint
with
parent
.
PySide2.Qt3DCore.Qt3DCore.QJoint.
addChildJoint
(
joint
)
¶
joint
–
QJoint
添加
joint
as a child of this joint. If
joint
has no parent, then this joint takes ownership of it. Child joints are in the coordinate system of their parent joint.
PySide2.Qt3DCore.Qt3DCore.QJoint.
childJoints
(
)
¶
The vector of joints this joint has as children.
PySide2.Qt3DCore.Qt3DCore.QJoint.
inverseBindMatrix
(
)
¶
QMatrix4x4
PySide2.Qt3DCore.Qt3DCore.QJoint.
inverseBindMatrixChanged
(
inverseBindMatrix
)
¶
inverseBindMatrix
–
QMatrix4x4
PySide2.Qt3DCore.Qt3DCore.QJoint.
name
(
)
¶
unicode
Returns the name of the joint.
另请参阅
PySide2.Qt3DCore.Qt3DCore.QJoint.
nameChanged
(
name
)
¶
name – unicode
PySide2.Qt3DCore.Qt3DCore.QJoint.
removeChildJoint
(
joint
)
¶
joint
–
QJoint
移除
joint
from this joint’s list of children. The child joint is not destroyed.
PySide2.Qt3DCore.Qt3DCore.QJoint.
rotation
(
)
¶
QQuaternion
另请参阅
PySide2.Qt3DCore.Qt3DCore.QJoint.
rotationChanged
(
rotation
)
¶
rotation
–
QQuaternion
PySide2.Qt3DCore.Qt3DCore.QJoint.
rotationX
(
)
¶
float
另请参阅
PySide2.Qt3DCore.Qt3DCore.QJoint.
rotationXChanged
(
rotationX
)
¶
rotationX
–
float
PySide2.Qt3DCore.Qt3DCore.QJoint.
rotationY
(
)
¶
float
另请参阅
PySide2.Qt3DCore.Qt3DCore.QJoint.
rotationYChanged
(
rotationY
)
¶
rotationY
–
float
PySide2.Qt3DCore.Qt3DCore.QJoint.
rotationZ
(
)
¶
float
另请参阅
PySide2.Qt3DCore.Qt3DCore.QJoint.
rotationZChanged
(
rotationZ
)
¶
rotationZ
–
float
PySide2.Qt3DCore.Qt3DCore.QJoint.
scale
(
)
¶
QVector3D
另请参阅
PySide2.Qt3DCore.Qt3DCore.QJoint.
scaleChanged
(
scale
)
¶
scale
–
QVector3D
PySide2.Qt3DCore.Qt3DCore.QJoint.
setInverseBindMatrix
(
inverseBindMatrix
)
¶
inverseBindMatrix
–
QMatrix4x4
另请参阅
PySide2.Qt3DCore.Qt3DCore.QJoint.
setRotation
(
rotation
)
¶
rotation
–
QQuaternion
另请参阅
PySide2.Qt3DCore.Qt3DCore.QJoint.
setRotationX
(
rotationX
)
¶
rotationX
–
float
另请参阅
PySide2.Qt3DCore.Qt3DCore.QJoint.
setRotationY
(
rotationY
)
¶
rotationY
–
float
另请参阅
PySide2.Qt3DCore.Qt3DCore.QJoint.
setRotationZ
(
rotationZ
)
¶
rotationZ
–
float
另请参阅
PySide2.Qt3DCore.Qt3DCore.QJoint.
setToIdentity
(
)
¶
Sets the transform matrix for this joint to the identity matrix.
PySide2.Qt3DCore.Qt3DCore.QJoint.
setTranslation
(
translation
)
¶
translation
–
QVector3D
另请参阅
PySide2.Qt3DCore.Qt3DCore.QJoint.
translation
(
)
¶
QVector3D
另请参阅
PySide2.Qt3DCore.Qt3DCore.QJoint.
translationChanged
(
translation
)
¶
translation
–
QVector3D