1 | // Copyright (C) 2016 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 Qt Chart 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 DECLARATIVE_XY_SERIES_H |
14 | #define DECLARATIVE_XY_SERIES_H |
15 | |
16 | #include <QtCharts/QXYSeries> |
17 | #include <private/declarativechartglobal_p.h> |
18 | |
19 | QT_BEGIN_NAMESPACE |
20 | |
21 | class QChart; |
22 | |
23 | class Q_CHARTSQML_PRIVATE_EXPORT DeclarativeXySeries |
24 | { |
25 | public: |
26 | explicit DeclarativeXySeries(); |
27 | ~DeclarativeXySeries(); |
28 | |
29 | public: |
30 | void classBegin(); |
31 | void componentComplete(); |
32 | virtual QXYSeries *xySeries() = 0; |
33 | |
34 | void append(qreal x, qreal y); |
35 | void replace(qreal oldX, qreal oldY, qreal newX, qreal newY); |
36 | void replace(int index, qreal newX, qreal newY); |
37 | void remove(qreal x, qreal y); |
38 | void remove(int index); |
39 | void removePoints(int index, int count); |
40 | void insert(int index, qreal x, qreal y); |
41 | void clear(); |
42 | QPointF at(int index); |
43 | }; |
44 | |
45 | QT_END_NAMESPACE |
46 | |
47 | #endif // DECLARATIVE_XY_SERIES_H |
48 | |