1// Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QT3DCORE_QSKELETON_H
5#define QT3DCORE_QSKELETON_H
6
7#include <Qt3DCore/qabstractskeleton.h>
8#include <Qt3DCore/qjoint.h>
9#include <Qt3DCore/qt3dcore_global.h>
10
11QT_BEGIN_NAMESPACE
12
13namespace Qt3DCore {
14
15class QSkeletonPrivate;
16
17class Q_3DCORESHARED_EXPORT QSkeleton : public QAbstractSkeleton
18{
19 Q_OBJECT
20 Q_PROPERTY(Qt3DCore::QJoint* rootJoint READ rootJoint WRITE setRootJoint NOTIFY rootJointChanged)
21
22public:
23 QSkeleton(Qt3DCore::QNode *parent = nullptr);
24 ~QSkeleton();
25
26 Qt3DCore::QJoint *rootJoint() const;
27
28public Q_SLOTS:
29 void setRootJoint(Qt3DCore::QJoint *rootJoint);
30
31Q_SIGNALS:
32 void rootJointChanged(Qt3DCore::QJoint *rootJoint);
33
34private:
35 Q_DECLARE_PRIVATE(QSkeleton)
36};
37
38} // namespace Qt3DCore
39
40QT_END_NAMESPACE
41
42#endif // QT3DCORE_QSKELETON_H
43

source code of qt3d/src/core/transforms/qskeleton.h