summaryrefslogtreecommitdiffstats
path: root/examples/graphs/3d/widgetgraphgallery/topographicseries.h
blob: 959e29743205bdff440f50e5794d84f7fd2e7c96 (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
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef TOPOGRAPHICSERIES_H
#define TOPOGRAPHICSERIES_H

#include <QtGraphs/qsurface3dseries.h>

class TopographicSeries : public QSurface3DSeries
{
    Q_OBJECT
public:
    Q_DISABLE_COPY_MOVE(TopographicSeries)

    TopographicSeries();
    ~TopographicSeries() override;

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

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

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

#endif // TOPOGRAPHICSERIES_H