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_QARMATURE_H |
5 | #define QT3DCORE_QARMATURE_H |
6 | |
7 | #include <Qt3DCore/qcomponent.h> |
8 | #include <Qt3DCore/qt3dcore_global.h> |
9 | #include <Qt3DCore/qabstractskeleton.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | namespace Qt3DCore { |
14 | |
15 | class QArmaturePrivate; |
16 | |
17 | class Q_3DCORESHARED_EXPORT QArmature : public Qt3DCore::QComponent |
18 | { |
19 | Q_OBJECT |
20 | Q_PROPERTY(Qt3DCore::QAbstractSkeleton* skeleton READ skeleton WRITE setSkeleton NOTIFY skeletonChanged) |
21 | |
22 | public: |
23 | explicit QArmature(Qt3DCore::QNode *parent = nullptr); |
24 | ~QArmature(); |
25 | |
26 | QAbstractSkeleton* skeleton() const; |
27 | |
28 | public Q_SLOTS: |
29 | void setSkeleton(Qt3DCore::QAbstractSkeleton* skeleton); |
30 | |
31 | Q_SIGNALS: |
32 | void skeletonChanged(Qt3DCore::QAbstractSkeleton* skeleton); |
33 | |
34 | protected: |
35 | QArmature(QArmaturePrivate &dd, Qt3DCore::QNode *parent = nullptr); |
36 | |
37 | private: |
38 | Q_DECLARE_PRIVATE(QArmature) |
39 | }; |
40 | |
41 | } // namespace Qt3DCore |
42 | |
43 | QT_END_NAMESPACE |
44 | |
45 | #endif // QT3DCORE_QARMATURE_H |
46 |