class QJoint#

Used to transforms parts of skinned meshes. More

# Synopsis#

## Signals#

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:
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:
property scaleᅟ: QVector3D#

Holds the scale of the joint.

Access functions:
property translationᅟ: QVector3D#

Holds the translation of the joint as QVector3D.

Access functions:
__init__([parent=None])#
Parameters:

parentQNode

Constructs a new QJoint with parent.

Parameters:

jointQJoint

Adds 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.

childJoints()#
Return type:

.list of Qt3DCore.QJoint

The vector of joints this joint has as children.

inverseBindMatrix()#
Return type:

QMatrix4x4

setInverseBindMatrix()

Getter of property inverseBindMatrixᅟ .

inverseBindMatrixChanged(inverseBindMatrix)#
Parameters:

inverseBindMatrixQMatrix4x4

Notification signal of property inverseBindMatrixᅟ .

name()#
Return type:

str

Returns the name of the joint.

setName()

Getter of property nameᅟ .

nameChanged(name)#
Parameters:

name – str

Notification signal of property nameᅟ .

removeChildJoint(joint)#
Parameters:

jointQJoint

Removes joint from this joint’s list of children. The child joint is not destroyed.

rotation()#
Return type:

QQuaternion

setRotation()

Getter of property rotationᅟ .

rotationChanged(rotation)#
Parameters:

rotationQQuaternion

Notification signal of property rotationᅟ .

rotationX()#
Return type:

float

setRotationX()

Getter of property rotationXᅟ .

rotationXChanged(rotationX)#
Parameters:

rotationX – float

Notification signal of property rotationXᅟ .

rotationY()#
Return type:

float

setRotationY()

Getter of property rotationYᅟ .

rotationYChanged(rotationY)#
Parameters:

rotationY – float

Notification signal of property rotationYᅟ .

rotationZ()#
Return type:

float

setRotationZ()

Getter of property rotationZᅟ .

rotationZChanged(rotationZ)#
Parameters:

rotationZ – float

Notification signal of property rotationZᅟ .

scale()#
Return type:

QVector3D

setScale()

Getter of property scaleᅟ .

scaleChanged(scale)#
Parameters:

scaleQVector3D

Notification signal of property scaleᅟ .

setInverseBindMatrix(inverseBindMatrix)#
Parameters:

inverseBindMatrixQMatrix4x4

inverseBindMatrix()

Setter of property inverseBindMatrixᅟ .

setName(name)#
Parameters:

name – str

name()

Setter of property nameᅟ .

setRotation(rotation)#
Parameters:

rotationQQuaternion

rotation()

Setter of property rotationᅟ .

setRotationX(rotationX)#
Parameters:

rotationX – float

rotationX()

Setter of property rotationXᅟ .

setRotationY(rotationY)#
Parameters:

rotationY – float

rotationY()

Setter of property rotationYᅟ .

setRotationZ(rotationZ)#
Parameters:

rotationZ – float

rotationZ()

Setter of property rotationZᅟ .

setScale(scale)#
Parameters:

scaleQVector3D

scale()

Setter of property scaleᅟ .

setToIdentity()#

Sets the transform matrix for this joint to the identity matrix.

setTranslation(translation)#
Parameters:

translationQVector3D

translation()

Setter of property translationᅟ .

translation()#
Return type:

QVector3D