1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the QtGraphs API. It exists purely as an
9// implementation detail. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13
14#ifndef QSCATTERDATAPROXY_P_H
15#define QSCATTERDATAPROXY_P_H
16
17#include "qscatterdataproxy.h"
18#include "qabstractdataproxy_p.h"
19#include "qscatterdataitem.h"
20
21QT_BEGIN_NAMESPACE
22
23class QAbstract3DAxis;
24
25class QScatterDataProxyPrivate : public QAbstractDataProxyPrivate
26{
27 Q_DECLARE_PUBLIC(QScatterDataProxy)
28
29public:
30 QScatterDataProxyPrivate(QScatterDataProxy *q);
31 virtual ~QScatterDataProxyPrivate();
32
33 void resetArray(QScatterDataArray *newArray);
34 void setItem(int index, const QScatterDataItem &item);
35 void setItems(int index, const QScatterDataArray &items);
36 int addItem(const QScatterDataItem &item);
37 int addItems(const QScatterDataArray &items);
38 void insertItem(int index, const QScatterDataItem &item);
39 void insertItems(int index, const QScatterDataArray &items);
40 void removeItems(int index, int removeCount);
41 void limitValues(QVector3D &minValues, QVector3D &maxValues, QAbstract3DAxis *axisX,
42 QAbstract3DAxis *axisY, QAbstract3DAxis *axisZ) const;
43 bool isValidValue(float axisValue, float value, QAbstract3DAxis *axis) const;
44
45 void setSeries(QAbstract3DSeries *series) override;
46private:
47 QScatterDataArray *m_dataArray;
48};
49
50QT_END_NAMESPACE
51
52#endif
53

source code of qtgraphs/src/graphs/data/qscatterdataproxy_p.h