class QJoint

Used to transforms parts of skinned meshes. More

Inheritance diagram of PySide6.Qt3DCore.Qt3DCore.QJoint

Synopsis

Properties

Methods

Slots

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.

addChildJoint(joint)
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

See also

setInverseBindMatrix()

Getter of property inverseBindMatrixᅟ .

inverseBindMatrixChanged(inverseBindMatrix)
Parameters:

inverseBindMatrixQMatrix4x4

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:

jointQJoint

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

rotation()
Return type:

QQuaternion

See also

setRotation()

Getter of property rotationᅟ .

rotationChanged(rotation)
Parameters:

rotationQQuaternion

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

scale()
Return type:

QVector3D

See also

setScale()

Getter of property scaleᅟ .

scaleChanged(scale)
Parameters:

scaleQVector3D

Notification signal of property scaleᅟ .

setInverseBindMatrix(inverseBindMatrix)
Parameters:

inverseBindMatrixQMatrix4x4

See also

inverseBindMatrix()

Setter of property inverseBindMatrixᅟ .

setName(name)
Parameters:

name – str

See also

name()

Setter of property nameᅟ .

setRotation(rotation)
Parameters:

rotationQQuaternion

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

setScale(scale)
Parameters:

scaleQVector3D

See also

scale()

Setter of property scaleᅟ .

setToIdentity()

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

setTranslation(translation)
Parameters:

translationQVector3D

See also

translation()

Setter of property translationᅟ .

translation()
Return type:

QVector3D

See also

setTranslation()

Getter of property translationᅟ .

translationChanged(translation)
Parameters:

translationQVector3D

Notification signal of property translationᅟ .