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 QSURFACE3DSERIES_P_H
15#define QSURFACE3DSERIES_P_H
16
17#include "qabstract3dseries_p.h"
18#include "qsurface3dseries.h"
19
20QT_BEGIN_NAMESPACE
21
22class QSurface3DSeriesPrivate : public QAbstract3DSeriesPrivate
23{
24 Q_DECLARE_PUBLIC(QSurface3DSeries)
25
26public:
27 QSurface3DSeriesPrivate();
28 ~QSurface3DSeriesPrivate() override;
29
30 void setDataProxy(QAbstractDataProxy *proxy) override;
31 void connectGraphAndProxy(QQuickGraphsItem *newGraph) override;
32 void createItemLabel() override;
33
34 void setSelectedPoint(QPoint position);
35 void setShading(const QSurface3DSeries::Shading shading);
36 void setDrawMode(QSurface3DSeries::DrawFlags mode);
37 void setTexture(const QImage &texture);
38 void setWireframeColor(QColor color);
39
40 void setDataArray(const QSurfaceDataArray &newDataArray);
41 void clearRow(qsizetype rowIndex);
42 void clearArray();
43
44private:
45 QSurfaceDataArray m_dataArray;
46 QPoint m_selectedPoint;
47 QSurface3DSeries::Shading m_shading;
48 QSurface3DSeries::DrawFlags m_drawMode;
49 QImage m_texture;
50 QString m_textureFile;
51 QColor m_wireframeColor;
52};
53
54QT_END_NAMESPACE
55
56#endif
57

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtgraphs/src/graphs3d/data/qsurface3dseries_p.h