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