QJoint#
Used to transforms parts of skinned meshes. More…
Synopsis#
Properties#
Functions#
def
addChildJoint
(joint)def
childJoints
()def
inverseBindMatrix
()def
name
()def
removeChildJoint
(joint)def
rotation
()def
rotationX
()def
rotationY
()def
rotationZ
()def
scale
()def
translation
()
Slots#
def
setInverseBindMatrix
(inverseBindMatrix)def
setName
(name)def
setRotation
(rotation)def
setRotationX
(rotationX)def
setRotationY
(rotationY)def
setRotationZ
(rotationZ)def
setScale
(scale)def
setToIdentity
()def
setTranslation
(translation)
Signals#
def
inverseBindMatrixChanged
(inverseBindMatrix)def
nameChanged
(name)def
rotationChanged
(rotation)def
rotationXChanged
(rotationX)def
rotationYChanged
(rotationY)def
rotationZChanged
(rotationZ)def
scaleChanged
(scale)def
translationChanged
(translation)
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.
- class PySide6.Qt3DCore.Qt3DCore.QJoint([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QJoint
with parent
.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DCore.Qt3DCore.QJoint.inverseBindMatrix: PySide6.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.
- Access functions:
setInverseBindMatrix
(inverseBindMatrix)Signal
inverseBindMatrixChanged
(inverseBindMatrix)
- property PᅟySide6.Qt3DCore.Qt3DCore.QJoint.name: str#
- Access functions:
name
()setName
(name)Signal
nameChanged
(name)
- property PᅟySide6.Qt3DCore.Qt3DCore.QJoint.rotation: PySide6.QtGui.QQuaternion#
Holds the rotation of the joint as QQuaternion
.
- Access functions:
rotation
()setRotation
(rotation)Signal
rotationChanged
(rotation)
- property PᅟySide6.Qt3DCore.Qt3DCore.QJoint.rotationX: float#
Holds the x rotation of the joint as an Euler angle.
- Access functions:
rotationX
()setRotationX
(rotationX)Signal
rotationXChanged
(rotationX)
- property PᅟySide6.Qt3DCore.Qt3DCore.QJoint.rotationY: float#
Holds the y rotation of the joint as an Euler angle.
- Access functions:
rotationY
()setRotationY
(rotationY)Signal
rotationYChanged
(rotationY)
- property PᅟySide6.Qt3DCore.Qt3DCore.QJoint.rotationZ: float#
Holds the z rotation of the joint as an Euler angle.
- Access functions:
rotationZ
()setRotationZ
(rotationZ)Signal
rotationZChanged
(rotationZ)
- property PᅟySide6.Qt3DCore.Qt3DCore.QJoint.scale: PySide6.QtGui.QVector3D#
Holds the scale of the joint.
- Access functions:
scale
()setScale
(scale)Signal
scaleChanged
(scale)
- property PᅟySide6.Qt3DCore.Qt3DCore.QJoint.translation: PySide6.QtGui.QVector3D#
Holds the translation of the joint as QVector3D
.
- Access functions:
translation
()setTranslation
(translation)Signal
translationChanged
(translation)
- PySide6.Qt3DCore.Qt3DCore.QJoint.addChildJoint(joint)#
- Parameters:
joint –
PySide6.Qt3DCore.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.
- PySide6.Qt3DCore.Qt3DCore.QJoint.childJoints()#
- Return type:
The vector of joints this joint has as children.
- PySide6.Qt3DCore.Qt3DCore.QJoint.inverseBindMatrix()#
- Return type:
See also
Getter of property inverseBindMatrix
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.inverseBindMatrixChanged(inverseBindMatrix)#
- Parameters:
inverseBindMatrix –
PySide6.QtGui.QMatrix4x4
Notification signal of property inverseBindMatrix
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.name()#
- Return type:
str
Returns the name of the joint.
See also
Getter of property name
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.nameChanged(name)#
- Parameters:
name – str
Notification signal of property name
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.removeChildJoint(joint)#
- Parameters:
joint –
PySide6.Qt3DCore.Qt3DCore.QJoint
Removes joint
from this joint’s list of children. The child joint is not destroyed.
- PySide6.Qt3DCore.Qt3DCore.QJoint.rotation()#
- Return type:
See also
Getter of property rotation
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.rotationChanged(rotation)#
- Parameters:
rotation –
PySide6.QtGui.QQuaternion
Notification signal of property rotation
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.rotationX()#
- Return type:
float
See also
Getter of property rotationX
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.rotationXChanged(rotationX)#
- Parameters:
rotationX – float
Notification signal of property rotationX
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.rotationY()#
- Return type:
float
See also
Getter of property rotationY
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.rotationYChanged(rotationY)#
- Parameters:
rotationY – float
Notification signal of property rotationY
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.rotationZ()#
- Return type:
float
See also
Getter of property rotationZ
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.rotationZChanged(rotationZ)#
- Parameters:
rotationZ – float
Notification signal of property rotationZ
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.scale()#
- Return type:
See also
Getter of property scale
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.scaleChanged(scale)#
- Parameters:
scale –
PySide6.QtGui.QVector3D
Notification signal of property scale
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.setInverseBindMatrix(inverseBindMatrix)#
- Parameters:
inverseBindMatrix –
PySide6.QtGui.QMatrix4x4
See also
Setter of property inverseBindMatrix
.
Setter of property name
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.setRotation(rotation)#
- Parameters:
rotation –
PySide6.QtGui.QQuaternion
See also
Setter of property rotation
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.setRotationX(rotationX)#
- Parameters:
rotationX – float
See also
Setter of property rotationX
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.setRotationY(rotationY)#
- Parameters:
rotationY – float
See also
Setter of property rotationY
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.setRotationZ(rotationZ)#
- Parameters:
rotationZ – float
See also
Setter of property rotationZ
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.setScale(scale)#
- Parameters:
scale –
PySide6.QtGui.QVector3D
See also
Setter of property scale
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.setToIdentity()#
Sets the transform matrix for this joint to the identity matrix.
- PySide6.Qt3DCore.Qt3DCore.QJoint.setTranslation(translation)#
- Parameters:
translation –
PySide6.QtGui.QVector3D
See also
Setter of property translation
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.translation()#
- Return type:
See also
Getter of property translation
.
- PySide6.Qt3DCore.Qt3DCore.QJoint.translationChanged(translation)#
- Parameters:
translation –
PySide6.QtGui.QVector3D
Notification signal of property translation
.