blob: eb202c050ee67cf2ae6a251b5ce66b1dddaf5572 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef DATASOURCE_H
#define DATASOURCE_H
#include <QtDataVisualization/QSurface3DSeries>
class DataSource : public QObject
{
Q_OBJECT
public:
explicit DataSource(QObject *parent = 0);
virtual ~DataSource();
//! [0]
public Q_SLOTS:
void generateData(int cacheCount, int rowCount, int columnCount,
float xMin, float xMax, float yMin, float yMax, float zMin, float zMax);
void update(QSurface3DSeries *series);
//! [0]
private:
void clearData();
QList<QSurfaceDataArray> m_data;
int m_index;
QSurfaceDataArray *m_resetArray;
};
#endif
|