21 : QDialog(parent), _mesh_name(
"mesh"), _array_name(
"MaterialIDs")
25 this->elevationButton->setChecked(
true);
26 this->triButton->setChecked(
true);
27 this->mshNameEdit->setText(
"RasterDataMesh");
36 if (this->prismButton->isChecked())
38 this->triButton->setChecked(
true);
40 if (this->hexButton->isChecked())
42 this->quadButton->setChecked(
true);
46 this->prismButton->setEnabled(!isChecked);
47 this->hexButton->setEnabled(!isChecked);
52 if (this->mshNameEdit->text().isEmpty())
54 OGSError::box(
"Please specify a name for the resulting mesh.");
57 _mesh_name = this->mshNameEdit->text().toStdString();
60 if (this->materialButton->isChecked())
64 else if (this->otherButton->isChecked())
68 else if (this->ignoreButton->isChecked())
75 if (this->arrayNameEdit->text().isEmpty())
81 _array_name = this->arrayNameEdit->text().toStdString();
84 if (this->quadButton->isChecked())
88 else if (this->prismButton->isChecked())
92 else if (this->hexButton->isChecked())
97 this->done(QDialog::Accepted);
102 this->done(QDialog::Rejected);
Definition of the MeshFromRasterDialog class.
Definition of the OGSError class.
Definition of the VtkMeshConverter class.
MeshFromRasterDialog(QDialog *parent=nullptr)
Constructor.
~MeshFromRasterDialog() override
void accept() override
Instructions if the OK-Button has been pressed.
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)
static void box(const QString &e)