OGS
RasterDataToMeshDialog.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include "ui_RasterDataToMesh.h"
14 
15 #include <QDialog>
16 #include <QLineEdit>
17 #include <QString>
18 
22 class RasterDataToMeshDialog : public QDialog, private Ui_RasterDataToMesh
23 {
24  Q_OBJECT
25 
26 public:
27  explicit RasterDataToMeshDialog(std::string const& mesh_name,
28  QDialog* parent = nullptr);
29 
30  bool createNodeArray() const { return this->nodeButton->isChecked(); }
31  bool createElemArray() const { return this->elemButton->isChecked(); }
32  std::string getArrayName() const { return this->arrayNameEdit->text().toStdString(); }
33  std::string getMeshName() const { return this->meshNameEdit->text().toStdString(); }
34  std::string getRasterPath() const { return this->rasterPathEdit->text().toStdString(); }
35  double getNoDataReplacement() const { return this->noDataValueEdit->text().toDouble(); }
36 
37 private slots:
39 
40  void accept() override;
41  void reject() override { this->done(QDialog::Rejected); }
42 };
A dialog window for transferring raster data onto a mesh.
std::string getArrayName() const
std::string getMeshName() const
RasterDataToMeshDialog(std::string const &mesh_name, QDialog *parent=nullptr)
std::string getRasterPath() const