QJoint

Used to transforms parts of skinned meshes. More

New in version 5.10.

Synopsis

Functions

Slots

Signals

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.

class PySide2.Qt3DCore.QJoint([parent=None])
param parent

PySide2.Qt3DCore.QNode

Constructs a new QJoint with parent .

PySide2.Qt3DCore.QJoint.addChildJoint(joint)
Parameters

jointPySide2.Qt3DCore.QJoint

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.

PySide2.Qt3DCore.QJoint.childJoints()
Return type

The vector of joints this joint has as children.

PySide2.Qt3DCore.QJoint.inverseBindMatrix()
Return type

PySide2.QtGui.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.

PySide2.Qt3DCore.QJoint.inverseBindMatrixChanged(inverseBindMatrix)
Parameters

inverseBindMatrixPySide2.QtGui.QMatrix4x4

PySide2.Qt3DCore.QJoint.name()
Return type

str

PySide2.Qt3DCore.QJoint.nameChanged(name)
Parameters

name – str

PySide2.Qt3DCore.QJoint.removeChildJoint(joint)
Parameters

jointPySide2.Qt3DCore.QJoint

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

PySide2.Qt3DCore.QJoint.rotation()
Return type

PySide2.QtGui.QQuaternion

Holds the rotation of the joint as QQuaternion .

PySide2.Qt3DCore.QJoint.rotationChanged(rotation)
Parameters

rotationPySide2.QtGui.QQuaternion

PySide2.Qt3DCore.QJoint.rotationX()
Return type

float

Holds the x rotation of the joint as an Euler angle.

PySide2.Qt3DCore.QJoint.rotationXChanged(rotationX)
Parameters

rotationX – float

PySide2.Qt3DCore.QJoint.rotationY()
Return type

float

Holds the y rotation of the joint as an Euler angle.

PySide2.Qt3DCore.QJoint.rotationYChanged(rotationY)
Parameters

rotationY – float

PySide2.Qt3DCore.QJoint.rotationZ()
Return type

float

Holds the z rotation of the joint as an Euler angle.

PySide2.Qt3DCore.QJoint.rotationZChanged(rotationZ)
Parameters

rotationZ – float

PySide2.Qt3DCore.QJoint.scale()
Return type

PySide2.QtGui.QVector3D

Holds the scale of the joint.

PySide2.Qt3DCore.QJoint.scaleChanged(scale)
Parameters

scalePySide2.QtGui.QVector3D

PySide2.Qt3DCore.QJoint.setInverseBindMatrix(inverseBindMatrix)
Parameters

inverseBindMatrixPySide2.QtGui.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.

PySide2.Qt3DCore.QJoint.setName(name)
Parameters

name – str

PySide2.Qt3DCore.QJoint.setRotation(rotation)
Parameters

rotationPySide2.QtGui.QQuaternion

Holds the rotation of the joint as QQuaternion .

PySide2.Qt3DCore.QJoint.setRotationX(rotationX)
Parameters

rotationX – float

Holds the x rotation of the joint as an Euler angle.

PySide2.Qt3DCore.QJoint.setRotationY(rotationY)
Parameters

rotationY – float

Holds the y rotation of the joint as an Euler angle.

PySide2.Qt3DCore.QJoint.setRotationZ(rotationZ)
Parameters

rotationZ – float

Holds the z rotation of the joint as an Euler angle.

PySide2.Qt3DCore.QJoint.setScale(scale)
Parameters

scalePySide2.QtGui.QVector3D

Holds the scale of the joint.

PySide2.Qt3DCore.QJoint.setToIdentity()

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

PySide2.Qt3DCore.QJoint.setTranslation(translation)
Parameters

translationPySide2.QtGui.QVector3D

Holds the translation of the joint as QVector3D .

PySide2.Qt3DCore.QJoint.translation()
Return type

PySide2.QtGui.QVector3D

Holds the translation of the joint as QVector3D .

PySide2.Qt3DCore.QJoint.translationChanged(translation)
Parameters

translationPySide2.QtGui.QVector3D