1 | // Copyright (C) 2016 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 QT3DANIMATION_QBLENDEDCLIPANIMATOR_H |
5 | #define QT3DANIMATION_QBLENDEDCLIPANIMATOR_H |
6 | |
7 | #include <Qt3DAnimation/qt3danimation_global.h> |
8 | #include <Qt3DAnimation/qabstractclipanimator.h> |
9 | #include <Qt3DAnimation/qabstractclipblendnode.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | namespace Qt3DAnimation { |
14 | |
15 | class QBlendedClipAnimatorPrivate; |
16 | |
17 | class Q_3DANIMATIONSHARED_EXPORT QBlendedClipAnimator : public Qt3DAnimation::QAbstractClipAnimator |
18 | { |
19 | Q_OBJECT |
20 | Q_PROPERTY(Qt3DAnimation::QAbstractClipBlendNode *blendTree READ blendTree WRITE setBlendTree NOTIFY blendTreeChanged) |
21 | |
22 | public: |
23 | explicit QBlendedClipAnimator(Qt3DCore::QNode *parent = nullptr); |
24 | ~QBlendedClipAnimator(); |
25 | |
26 | QAbstractClipBlendNode *blendTree() const; |
27 | |
28 | public Q_SLOTS: |
29 | void setBlendTree(QAbstractClipBlendNode * blendTree); |
30 | |
31 | Q_SIGNALS: |
32 | void blendTreeChanged(QAbstractClipBlendNode * blendTree); |
33 | |
34 | protected: |
35 | explicit QBlendedClipAnimator(QBlendedClipAnimatorPrivate &dd, Qt3DCore::QNode *parent = nullptr); |
36 | |
37 | private: |
38 | Q_DECLARE_PRIVATE(QBlendedClipAnimator) |
39 | }; |
40 | |
41 | } // namespace Qt3DAnimation |
42 | |
43 | QT_END_NAMESPACE |
44 | |
45 | #endif // QT3DANIMATION_QBLENDEDCLIPANIMATOR_H |
46 | |