OGS
RasterDataToMeshDialog.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_RasterDataToMesh.h"
7
8#include <QDialog>
9#include <QLineEdit>
10#include <QString>
11
15class RasterDataToMeshDialog : public QDialog, private Ui_RasterDataToMesh
16{
17 Q_OBJECT
18
19public:
20 explicit RasterDataToMeshDialog(std::string const& mesh_name,
21 QDialog* parent = nullptr);
22
23 bool createNodeArray() const { return this->nodeButton->isChecked(); }
24 bool createElemArray() const { return this->elemButton->isChecked(); }
25 std::string getArrayName() const { return this->arrayNameEdit->text().toStdString(); }
26 std::string getMeshName() const { return this->meshNameEdit->text().toStdString(); }
27 std::string getRasterPath() const { return this->rasterPathEdit->text().toStdString(); }
28 double getNoDataReplacement() const { return this->noDataValueEdit->text().toDouble(); }
29
30private slots:
32
33 void accept() override;
34 void reject() override { this->done(QDialog::Rejected); }
35};
std::string getArrayName() const
std::string getMeshName() const
RasterDataToMeshDialog(std::string const &mesh_name, QDialog *parent=nullptr)
std::string getRasterPath() const