QSkeletonLoader Class
class Qt3DCore::QSkeletonLoaderUsed to load a skeleton of joints from file. More...
Header: | #include <QSkeletonLoader> |
qmake: | QT += 3dcore |
Since: | Qt 5.10 |
Instantiated By: | SkeletonLoader |
Inherits: | Qt3DCore::QAbstractSkeleton |
This class was introduced in Qt 5.10.
Public Types
enum | Status { NotReady, Ready, Error } |
Public Functions
QSkeletonLoader(const QUrl &source, Qt3DCore::QNode *parent = nullptr) | |
QSkeletonLoader(Qt3DCore::QNode *parent = nullptr) | |
bool | isCreateJointsEnabled() const |
Qt3DCore::QJoint * | rootJoint() const |
Detailed Description
Use SkeletonLoader if you wish to load a whole skeleton from file rather than creating the joints yourself using Skeleton and Joints. Creating a skeleton and binding the vertices of a mesh to the skeleton is most easily performed in a 3D digital content creation tool such as Blender. The resulting skeleton and mesh can then be exported in a suitable format such as glTF 2 for consumption by Qt 3D.
Member Type Documentation
enum QSkeletonLoader::Status
This enum identifies the status of skeleton.
Constant | Value | Description |
---|---|---|
Qt3DCore::QSkeletonLoader::NotReady | 0 | The skeleton has not been loaded yet |
Qt3DCore::QSkeletonLoader::Ready | 1 | The skeleton was successfully loaded |
Qt3DCore::QSkeletonLoader::Error | 2 | An error occurred while loading the skeleton |
Member Function Documentation
QSkeletonLoader::QSkeletonLoader(const QUrl &source, Qt3DCore::QNode *parent = nullptr)
Constructs a new QSkeletonLoader with parent and sets the source.
QSkeletonLoader::QSkeletonLoader(Qt3DCore::QNode *parent = nullptr)
Constructs a new QSkeletonLoader with parent.
bool QSkeletonLoader::isCreateJointsEnabled() const
Returns a boolean indicating whether CreateJoints is enabled or not. The default value is false
.
Qt3DCore::QJoint *QSkeletonLoader::rootJoint() const
Returns the root joint of the hierarchy of joints forming the skeleton.