1// Copyright (C) 2016 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 QtDataVisualization 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_OBJECT
28public:
29 QScatterDataProxyPrivate(QScatterDataProxy *q);
30 virtual ~QScatterDataProxyPrivate();
31
32 void resetArray(QScatterDataArray *newArray);
33 void setItem(int index, const QScatterDataItem &item);
34 void setItems(int index, const QScatterDataArray &items);
35 int addItem(const QScatterDataItem &item);
36 int addItems(const QScatterDataArray &items);
37 void insertItem(int index, const QScatterDataItem &item);
38 void insertItems(int index, const QScatterDataArray &items);
39 void removeItems(int index, int removeCount);
40 void limitValues(QVector3D &minValues, QVector3D &maxValues, QAbstract3DAxis *axisX,
41 QAbstract3DAxis *axisY, QAbstract3DAxis *axisZ) const;
42 bool isValidValue(float axisValue, float value, QAbstract3DAxis *axis) const;
43
44 void setSeries(QAbstract3DSeries *series) override;
45private:
46 QScatterDataProxy *qptr();
47 QScatterDataArray *m_dataArray;
48
49 friend class QScatterDataProxy;
50};
51
52QT_END_NAMESPACE
53
54#endif
55

source code of qtdatavis3d/src/datavisualization/data/qscatterdataproxy_p.h