summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/graphgallery/topographicseries.h
blob: b54971a3801de91c154de07db92b8ff132cfbf9a (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
// 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:
    TopographicSeries();
    ~TopographicSeries();

    void setTopographyFile(const QString file, float width, float height);

    float sampleCountX() { return m_sampleCountX; }
    float sampleCountZ() { return m_sampleCountZ; }

private:
    float m_sampleCountX = 0.f;
    float m_sampleCountZ = 0.f;
};

#endif // TOPOGRAPHICSERIES_H