1 | // Copyright (C) 2016 The Qt Company Ltd. |
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_QVERTEXBLENDANIMATION_P_H |
5 | #define QT3DANIMATION_QVERTEXBLENDANIMATION_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 | |
19 | #include <Qt3DAnimation/qvertexblendanimation.h> |
20 | |
21 | #include <private/qobject_p.h> |
22 | #include <private/qabstractanimation_p.h> |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | namespace Qt3DAnimation { |
27 | |
28 | class QVertexBlendAnimationPrivate : public QAbstractAnimationPrivate |
29 | { |
30 | public: |
31 | QVertexBlendAnimationPrivate(); |
32 | |
33 | void getAttributesInPosition(float position, int *target0, int *target1, float *interpolator); |
34 | void updateAnimation(float position); |
35 | |
36 | QList<float> m_targetPositions; |
37 | QList<Qt3DAnimation::QMorphTarget *> m_morphTargets; |
38 | float m_interpolator; |
39 | Qt3DRender::QGeometryRenderer *m_target; |
40 | QString m_targetName; |
41 | QMorphTarget *m_currentBase; |
42 | QMorphTarget *m_currentTarget; |
43 | |
44 | QMetaObject::Connection m_positionConnection; |
45 | |
46 | Q_DECLARE_PUBLIC(QVertexBlendAnimation) |
47 | }; |
48 | |
49 | } // Qt3DAnimation |
50 | |
51 | QT_END_NAMESPACE |
52 | |
53 | #endif // QT3DANIMATION_QVertexBlendANIMATION_P_H |
54 | |