QJoint Class

class Qt3DCore::QJoint

Used to transforms parts of skinned meshes. More...

Header: #include <QJoint>
qmake: QT += 3dcore
Since: Qt 5.10
Instantiated By: Joint
Inherits: Qt3DCore::QNode

This class was introduced in Qt 5.10.

Public Functions

QJoint(Qt3DCore::QNode *parent = nullptr)
void addChildJoint(Qt3DCore::QJoint *joint)
QVector<Qt3DCore::QJoint *> childJoints() const
QString name() const
void removeChildJoint(Qt3DCore::QJoint *joint)
void setToIdentity()

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.

Member Function Documentation

QJoint::QJoint(Qt3DCore::QNode *parent = nullptr)

Constructs a new QJoint with parent.

void QJoint::addChildJoint(Qt3DCore::QJoint *joint)

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.

QVector<Qt3DCore::QJoint *> QJoint::childJoints() const

The vector of joints this joint has as children.

QString QJoint::name() const

Returns the name of the joint.

void QJoint::removeChildJoint(Qt3DCore::QJoint *joint)

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

void QJoint::setToIdentity()

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