1 | // Copyright (C) 2023 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef Q3DSCATTER_H |
5 | #define Q3DSCATTER_H |
6 | |
7 | #include <QtGraphs/qabstract3dgraph.h> |
8 | #include <QtGraphs/qvalue3daxis.h> |
9 | #include <QtGraphs/qscatter3dseries.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | class QQuickGraphsScatter; |
14 | |
15 | class Q_GRAPHS_EXPORT Q3DScatter : public QAbstract3DGraph |
16 | { |
17 | Q_OBJECT |
18 | Q_PROPERTY(QValue3DAxis *axisX READ axisX WRITE setAxisX NOTIFY axisXChanged) |
19 | Q_PROPERTY(QValue3DAxis *axisY READ axisY WRITE setAxisY NOTIFY axisYChanged) |
20 | Q_PROPERTY(QValue3DAxis *axisZ READ axisZ WRITE setAxisZ NOTIFY axisZChanged) |
21 | Q_PROPERTY(QScatter3DSeries *selectedSeries READ selectedSeries NOTIFY selectedSeriesChanged) |
22 | |
23 | public: |
24 | Q3DScatter(); |
25 | ~Q3DScatter(); |
26 | |
27 | void addSeries(QScatter3DSeries *series); |
28 | void removeSeries(QScatter3DSeries *series); |
29 | QList<QScatter3DSeries *> seriesList() const; |
30 | |
31 | void setAxisX(QValue3DAxis *axis); |
32 | QValue3DAxis *axisX() const; |
33 | void setAxisY(QValue3DAxis *axis); |
34 | QValue3DAxis *axisY() const; |
35 | void setAxisZ(QValue3DAxis *axis); |
36 | QValue3DAxis *axisZ() const; |
37 | void addAxis(QValue3DAxis *axis); |
38 | void releaseAxis(QValue3DAxis *axis); |
39 | QList<QValue3DAxis *> axes() const; |
40 | |
41 | QScatter3DSeries *selectedSeries() const; |
42 | |
43 | Q_SIGNALS: |
44 | void axisXChanged(QValue3DAxis *axis); |
45 | void axisYChanged(QValue3DAxis *axis); |
46 | void axisZChanged(QValue3DAxis *axis); |
47 | void selectedSeriesChanged(QScatter3DSeries *series); |
48 | |
49 | private: |
50 | QQuickGraphsScatter *dptr(); |
51 | const QQuickGraphsScatter *dptrc() const; |
52 | Q_DISABLE_COPY(Q3DScatter) |
53 | }; |
54 | |
55 | QT_END_NAMESPACE |
56 | |
57 | #endif |
58 |