OGS
MeshFromRasterDialog.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include "ui_MeshFromRaster.h"
7
8#include <string>
9#include <QDialog>
10
11namespace MeshLib {
12 enum class MeshElemType;
13 enum class UseIntensityAs;
14}
15
16
20class MeshFromRasterDialog : public QDialog, private Ui_MeshFromRaster
21{
22 Q_OBJECT
23
24public:
26 explicit MeshFromRasterDialog(QDialog* parent = nullptr);
28
29 std::string getMeshName() const { return _mesh_name; }
30 std::string getArrayName() const { return _array_name; }
33
34private slots:
35 void on_elevationButton_toggled(bool isChecked);
36
38 void accept() override;
39
41 void reject() override;
42
43private:
44 std::string _mesh_name;
45 std::string _array_name;
48
49};
std::string getMeshName() const
MeshLib::MeshElemType getElementSelection() const
MeshFromRasterDialog(QDialog *parent=nullptr)
Constructor.
~MeshFromRasterDialog() override
void accept() override
Instructions if the OK-Button has been pressed.
std::string getArrayName() const
MeshLib::MeshElemType _element_selection
void reject() override
Instructions if the Cancel-Button has been pressed.
MeshLib::UseIntensityAs _intensity_selection
void on_elevationButton_toggled(bool isChecked)
MeshLib::UseIntensityAs getIntensitySelection() const
UseIntensityAs
Selection of possible interpretations for intensities.
Definition MeshEnums.h:93
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.
Definition MeshEnums.h:37