OGS
MeshFromRasterDialog.h
Go to the documentation of this file.
1
15#pragma once
16
17#include "ui_MeshFromRaster.h"
18
19#include <string>
20#include <QDialog>
21
22namespace MeshLib {
23 enum class MeshElemType;
24 enum class UseIntensityAs;
25}
26
27
31class MeshFromRasterDialog : public QDialog, private Ui_MeshFromRaster
32{
33 Q_OBJECT
34
35public:
37 explicit MeshFromRasterDialog(QDialog* parent = nullptr);
39
40 std::string getMeshName() const { return _mesh_name; }
41 std::string getArrayName() const { return _array_name; }
44
45private slots:
46 void on_elevationButton_toggled(bool isChecked);
47
49 void accept() override;
50
52 void reject() override;
53
54private:
55 std::string _mesh_name;
56 std::string _array_name;
59
60};
A dialog for specifying the parameters to construct a mesh based on a raster.
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:83
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.
Definition MeshEnums.h:27