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_QABSTRACTCLIPANIMATOR_P_H |
5 | #define QT3DANIMATION_QABSTRACTCLIPANIMATOR_P_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists for the convenience |
12 | // of other Qt classes. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <Qt3DCore/private/qcomponent_p.h> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | namespace Qt3DAnimation { |
23 | |
24 | class QChannelMapper; |
25 | class QClock; |
26 | |
27 | class QAbstractClipAnimatorPrivate : public Qt3DCore::QComponentPrivate |
28 | { |
29 | public: |
30 | QAbstractClipAnimatorPrivate(); |
31 | |
32 | virtual bool canPlay() const; |
33 | |
34 | Q_DECLARE_PUBLIC(QAbstractClipAnimator) |
35 | |
36 | Qt3DAnimation::QChannelMapper *m_mapper; |
37 | Qt3DAnimation::QClock *m_clock; |
38 | bool m_running; |
39 | int m_loops; |
40 | float m_normalizedTime; |
41 | }; |
42 | |
43 | struct QAbstractClipAnimatorData |
44 | { |
45 | Qt3DCore::QNodeId mapperId; |
46 | Qt3DCore::QNodeId clockId; |
47 | bool running; |
48 | float normalizedTime; |
49 | int loops; |
50 | }; |
51 | |
52 | } // namespace Qt3DAnimation |
53 | |
54 | |
55 | QT_END_NAMESPACE |
56 | |
57 | #endif // QT3DANIMATION_QABSTRACTCLIPANIMATOR_P_H |
58 | |