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

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