1 | // Copyright (C) 2024 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | // W A R N I N G |
5 | // ------------- |
6 | // |
7 | // This file is not part of the QtGraphs API. It exists purely as an |
8 | // implementation detail. This header file may change from version to |
9 | // version without notice, or even be removed. |
10 | // |
11 | // We mean it. |
12 | |
13 | #ifndef QGRAPHPOINTANIMATION_H |
14 | #define QGRAPHPOINTANIMATION_H |
15 | |
16 | #include <QtCore/QPointF> |
17 | #include "private/qgraphanimation_p.h" |
18 | #include "private/qxyseriesanimation_p.h" |
19 | #include "qqmlintegration.h" |
20 | |
21 | QT_BEGIN_NAMESPACE |
22 | |
23 | class QXYSeries; |
24 | |
25 | class QGraphPointAnimation : public QXYSeriesAnimation |
26 | { |
27 | Q_OBJECT |
28 | QML_NAMED_ELEMENT(GraphPointAnimation) |
29 | |
30 | public: |
31 | explicit QGraphPointAnimation(QObject *parent = nullptr); |
32 | ~QGraphPointAnimation() override; |
33 | |
34 | GraphAnimationType animationType() override; |
35 | void setAnimatingValue(const QVariant &start, const QVariant &end) override; |
36 | QVariant interpolated(const QVariant &start, const QVariant &end, qreal progress) const override; |
37 | |
38 | void animate() override; |
39 | void end() override; |
40 | |
41 | public Q_SLOTS: |
42 | void valueUpdated(const QVariant &value) override; |
43 | }; |
44 | |
45 | QT_END_NAMESPACE |
46 | |
47 | #endif // QGRAPHPOINTANIMATION_H |
48 |