summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/graphgallery/topographicseries.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/datavisualization/graphgallery/topographicseries.h')
-rw-r--r--examples/datavisualization/graphgallery/topographicseries.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/examples/datavisualization/graphgallery/topographicseries.h b/examples/datavisualization/graphgallery/topographicseries.h
new file mode 100644
index 00000000..8c49c338
--- /dev/null
+++ b/examples/datavisualization/graphgallery/topographicseries.h
@@ -0,0 +1,28 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#ifndef TOPOGRAPHICSERIES_H
+#define TOPOGRAPHICSERIES_H
+
+#include <QtDataVisualization/qsurface3dseries.h>
+
+class TopographicSeries : public QSurface3DSeries
+{
+ Q_OBJECT
+public:
+ explicit TopographicSeries();
+ ~TopographicSeries();
+
+ void setTopographyFile(const QString file, float width, float height);
+
+ float sampleCountX() { return m_sampleCountX; }
+ float sampleCountZ() { return m_sampleCountZ; }
+
+public Q_SLOTS:
+
+private:
+ float m_sampleCountX = 0.f;
+ float m_sampleCountZ = 0.f;
+};
+
+#endif // TOPOGRAPHICSERIES_H