PySide6.Qt3DCore.Qt3DCore.QJoint¶
- class QJoint¶
Used to transforms parts of skinned meshes. More…
Synopsis¶
Properties¶
Methods¶
def
__init__()
def
addChildJoint()
def
childJoints()
def
name()
def
rotation()
def
rotationX()
def
rotationY()
def
rotationZ()
def
scale()
def
translation()
Slots¶
def
setName()
def
setRotation()
def
setRotationX()
def
setRotationY()
def
setRotationZ()
def
setScale()
def
setToIdentity()
def
setTranslation()
Signals¶
def
nameChanged()
def
scaleChanged()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
The
QJoint
node 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.Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property inverseBindMatrixᅟ: QMatrix4x4¶
Holds the inverse bind matrix of the joint. This is used to transform vertices from model space into the space of this joint so they can subsequently be multiplied by the joint’s global transform to perform the skinning operation.
- Access functions:
- property nameᅟ: str¶
- Access functions:
Signal
nameChanged()
- property rotationᅟ: QQuaternion¶
Holds the rotation of the joint as QQuaternion.
- Access functions:
- property rotationXᅟ: float¶
Holds the x rotation of the joint as an Euler angle.
- Access functions:
- property rotationYᅟ: float¶
Holds the y rotation of the joint as an Euler angle.
- Access functions:
- property rotationZᅟ: float¶
Holds the z rotation of the joint as an Euler angle.
- Access functions:
Holds the scale of the joint.
- Access functions:
Signal
scaleChanged()
Holds the translation of the joint as QVector3D.
- Access functions:
- __init__([parent=None])¶
- Parameters:
parent –
QNode
Constructs a new
QJoint
withparent
.- addChildJoint(joint)¶
- Parameters:
joint –
QJoint
Adds
joint
as a child of this joint. Ifjoint
has no parent, then this joint takes ownership of it. Child joints are in the coordinate system of their parent joint.- childJoints()¶
- Return type:
.list of Qt3DCore.QJoint
The vector of joints this joint has as children.
- inverseBindMatrix()¶
- Return type:
See also
setInverseBindMatrix()
Getter of property
inverseBindMatrixᅟ
.- inverseBindMatrixChanged(inverseBindMatrix)¶
- Parameters:
inverseBindMatrix –
QMatrix4x4
Notification signal of property
inverseBindMatrixᅟ
.- name()¶
- Return type:
str
Returns the name of the joint.
See also
setName()
Getter of property
nameᅟ
.- nameChanged(name)¶
- Parameters:
name – str
Notification signal of property
nameᅟ
.- removeChildJoint(joint)¶
- Parameters:
joint –
QJoint
Removes
joint
from this joint’s list of children. The child joint is not destroyed.- rotation()¶
- Return type:
See also
setRotation()
Getter of property
rotationᅟ
.- rotationChanged(rotation)¶
- Parameters:
rotation –
QQuaternion
Notification signal of property
rotationᅟ
.- rotationX()¶
- Return type:
float
See also
setRotationX()
Getter of property
rotationXᅟ
.- rotationXChanged(rotationX)¶
- Parameters:
rotationX – float
Notification signal of property
rotationXᅟ
.- rotationY()¶
- Return type:
float
See also
setRotationY()
Getter of property
rotationYᅟ
.- rotationYChanged(rotationY)¶
- Parameters:
rotationY – float
Notification signal of property
rotationYᅟ
.- rotationZ()¶
- Return type:
float
See also
setRotationZ()
Getter of property
rotationZᅟ
.- rotationZChanged(rotationZ)¶
- Parameters:
rotationZ – float
Notification signal of property
rotationZᅟ
.Getter of property
scaleᅟ
.Notification signal of property
scaleᅟ
.- setInverseBindMatrix(inverseBindMatrix)¶
- Parameters:
inverseBindMatrix –
QMatrix4x4
See also
inverseBindMatrix()
Setter of property
inverseBindMatrixᅟ
.- setName(name)¶
- Parameters:
name – str
See also
name()
Setter of property
nameᅟ
.- setRotation(rotation)¶
- Parameters:
rotation –
QQuaternion
See also
rotation()
Setter of property
rotationᅟ
.- setRotationX(rotationX)¶
- Parameters:
rotationX – float
See also
rotationX()
Setter of property
rotationXᅟ
.- setRotationY(rotationY)¶
- Parameters:
rotationY – float
See also
rotationY()
Setter of property
rotationYᅟ
.- setRotationZ(rotationZ)¶
- Parameters:
rotationZ – float
See also
rotationZ()
Setter of property
rotationZᅟ
.Setter of property
scaleᅟ
.- setToIdentity()¶
Sets the transform matrix for this joint to the identity matrix.
Setter of property
translationᅟ
.Getter of property
translationᅟ
.Notification signal of property
translationᅟ
.