A dialog window for transferring raster data onto a mesh.
Definition at line 15 of file RasterDataToMeshDialog.h.
#include <RasterDataToMeshDialog.h>
◆ RasterDataToMeshDialog()
| RasterDataToMeshDialog::RasterDataToMeshDialog |
( |
std::string const & | mesh_name, |
|
|
QDialog * | parent = nullptr ) |
|
explicit |
Definition at line 12 of file RasterDataToMeshDialog.cpp.
14 : QDialog(parent)
15{
16 setupUi(this);
17
18 this->meshNameEdit->setText(QString::fromStdString(mesh_name) + "_Raster");
19 auto* no_data_validator = new StrictDoubleValidator(this);
20 this->noDataValueEdit->setValidator(no_data_validator);
21}
◆ accept
| void RasterDataToMeshDialog::accept |
( |
| ) |
|
|
overrideprivateslot |
Definition at line 35 of file RasterDataToMeshDialog.cpp.
36{
37 if (this->rasterPathEdit->text().isEmpty())
38 {
40 return;
41 }
42 else if (this->arrayNameEdit->text().isEmpty())
43 {
45 return;
46 }
47 else if (this->noDataValueEdit->text().isEmpty())
48 {
50 return;
51 }
52 else if (this->meshNameEdit->text().isEmpty())
53 {
55 return;
56 }
57
58 this->done(QDialog::Accepted);
59}
static void box(const QString &e)
References OGSError::box().
◆ createElemArray()
| bool RasterDataToMeshDialog::createElemArray |
( |
| ) |
const |
|
inline |
◆ createNodeArray()
| bool RasterDataToMeshDialog::createNodeArray |
( |
| ) |
const |
|
inline |
◆ getArrayName()
| std::string RasterDataToMeshDialog::getArrayName |
( |
| ) |
const |
|
inline |
◆ getMeshName()
| std::string RasterDataToMeshDialog::getMeshName |
( |
| ) |
const |
|
inline |
◆ getNoDataReplacement()
| double RasterDataToMeshDialog::getNoDataReplacement |
( |
| ) |
const |
|
inline |
◆ getRasterPath()
| std::string RasterDataToMeshDialog::getRasterPath |
( |
| ) |
const |
|
inline |
◆ on_rasterSelectButton_pressed
| void RasterDataToMeshDialog::on_rasterSelectButton_pressed |
( |
| ) |
|
|
privateslot |
Definition at line 23 of file RasterDataToMeshDialog.cpp.
24{
25 QSettings settings;
26 QString filename = QFileDialog::getOpenFileName(
27 this, "Select raster file to open",
28 settings.value("lastOpenedRasterFileDirectory").toString(),
29 "ASCII raster files (*.asc);;All files (* *.*)");
30 this->rasterPathEdit->setText(filename);
31 QFileInfo fi(filename);
32 settings.setValue("lastOpenedRasterFileDirectory", fi.absolutePath());
33}
◆ reject
| void RasterDataToMeshDialog::reject |
( |
| ) |
|
|
inlineoverrideprivateslot |
The documentation for this class was generated from the following files: