1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QABSTRACTDATAPROXY_H
5#define QABSTRACTDATAPROXY_H
6
7#include <QtDataVisualization/qdatavisualizationglobal.h>
8#include <QtCore/QObject>
9#include <QtCore/QScopedPointer>
10
11QT_BEGIN_NAMESPACE
12
13class QAbstractDataProxyPrivate;
14
15class Q_DATAVISUALIZATION_EXPORT QAbstractDataProxy : public QObject
16{
17 Q_OBJECT
18 Q_ENUMS(DataType)
19 Q_PROPERTY(DataType type READ type CONSTANT)
20
21public:
22 enum DataType {
23 DataTypeNone = 0,
24 DataTypeBar = 1,
25 DataTypeScatter = 2,
26 DataTypeSurface = 4
27 };
28
29protected:
30 explicit QAbstractDataProxy(QAbstractDataProxyPrivate *d, QObject *parent = nullptr);
31
32public:
33 virtual ~QAbstractDataProxy();
34
35 DataType type() const;
36
37protected:
38 QScopedPointer<QAbstractDataProxyPrivate> d_ptr;
39
40private:
41 Q_DISABLE_COPY(QAbstractDataProxy)
42
43 friend class QAbstract3DSeriesPrivate;
44};
45
46QT_END_NAMESPACE
47
48#endif
49

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