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_QLERPCLIPBLEND_H
5#define QT3DANIMATION_QLERPCLIPBLEND_H
6
7#include <Qt3DAnimation/qabstractclipblendnode.h>
8
9QT_BEGIN_NAMESPACE
10
11namespace Qt3DAnimation {
12
13class QLerpClipBlendPrivate;
14
15class Q_3DANIMATIONSHARED_EXPORT QLerpClipBlend : public QAbstractClipBlendNode
16{
17 Q_OBJECT
18 Q_PROPERTY(Qt3DAnimation::QAbstractClipBlendNode *startClip READ startClip WRITE setStartClip NOTIFY startClipChanged)
19 Q_PROPERTY(Qt3DAnimation::QAbstractClipBlendNode *endClip READ endClip WRITE setEndClip NOTIFY endClipChanged)
20 Q_PROPERTY(float blendFactor READ blendFactor WRITE setBlendFactor NOTIFY blendFactorChanged)
21
22public:
23 explicit QLerpClipBlend(Qt3DCore::QNode *parent = nullptr);
24 ~QLerpClipBlend();
25
26 float blendFactor() const;
27 Qt3DAnimation::QAbstractClipBlendNode *startClip() const;
28 Qt3DAnimation::QAbstractClipBlendNode *endClip() const;
29
30public Q_SLOTS:
31 void setBlendFactor(float blendFactor);
32 void setStartClip(Qt3DAnimation::QAbstractClipBlendNode * startClip);
33 void setEndClip(Qt3DAnimation::QAbstractClipBlendNode * endClip);
34
35Q_SIGNALS:
36 void blendFactorChanged(float blendFactor);
37 void startClipChanged(Qt3DAnimation::QAbstractClipBlendNode * startClip);
38 void endClipChanged(Qt3DAnimation::QAbstractClipBlendNode * endClip);
39
40protected:
41 explicit QLerpClipBlend(QLerpClipBlendPrivate &dd, Qt3DCore::QNode *parent = nullptr);
42
43private:
44 Q_DECLARE_PRIVATE(QLerpClipBlend)
45};
46
47} // Qt3DAnimation
48
49QT_END_NAMESPACE
50
51
52#endif // QT3DANIMATION_QLERPCLIPBLEND_H
53

source code of qt3d/src/animation/frontend/qlerpclipblend.h