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_QADDITIVECLIPBLEND_H |
5 | #define QT3DANIMATION_QADDITIVECLIPBLEND_H |
6 | |
7 | #include <Qt3DAnimation/qabstractclipblendnode.h> |
8 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | namespace Qt3DAnimation { |
12 | |
13 | class QAdditiveClipBlendPrivate; |
14 | |
15 | class Q_3DANIMATIONSHARED_EXPORT QAdditiveClipBlend : public QAbstractClipBlendNode |
16 | { |
17 | Q_OBJECT |
18 | Q_PROPERTY(Qt3DAnimation::QAbstractClipBlendNode *baseClip READ baseClip WRITE setBaseClip NOTIFY baseClipChanged) |
19 | Q_PROPERTY(Qt3DAnimation::QAbstractClipBlendNode *additiveClip READ additiveClip WRITE setAdditiveClip NOTIFY additiveClipChanged) |
20 | Q_PROPERTY(float additiveFactor READ additiveFactor WRITE setAdditiveFactor NOTIFY additiveFactorChanged) |
21 | public: |
22 | explicit QAdditiveClipBlend(Qt3DCore::QNode *parent = nullptr); |
23 | ~QAdditiveClipBlend(); |
24 | |
25 | float additiveFactor() const; |
26 | Qt3DAnimation::QAbstractClipBlendNode *baseClip() const; |
27 | Qt3DAnimation::QAbstractClipBlendNode *additiveClip() const; |
28 | |
29 | public Q_SLOTS: |
30 | void setAdditiveFactor(float additiveFactor); |
31 | void setBaseClip(Qt3DAnimation::QAbstractClipBlendNode *baseClip); |
32 | void setAdditiveClip(Qt3DAnimation::QAbstractClipBlendNode *additiveClip); |
33 | |
34 | Q_SIGNALS: |
35 | void additiveFactorChanged(float additiveFactor); |
36 | void baseClipChanged(Qt3DAnimation::QAbstractClipBlendNode *baseClip); |
37 | void additiveClipChanged(Qt3DAnimation::QAbstractClipBlendNode *additiveClip); |
38 | |
39 | protected: |
40 | explicit QAdditiveClipBlend(QAdditiveClipBlendPrivate &dd, Qt3DCore::QNode *parent = nullptr); |
41 | |
42 | private: |
43 | Q_DECLARE_PRIVATE(QAdditiveClipBlend) |
44 | }; |
45 | |
46 | } // Qt3DAnimation |
47 | |
48 | QT_END_NAMESPACE |
49 | |
50 | #endif // QT3DANIMATION_QADDITIVECLIPBLEND_H |
51 | |