A dialog window for creating DIRECT boundary conditions from raster files.
Definition at line 29 of file GeoOnMeshMappingDialog.h.
#include <GeoOnMeshMappingDialog.h>
◆ GeoOnMeshMappingDialog()
GeoOnMeshMappingDialog::GeoOnMeshMappingDialog |
( |
std::vector< std::unique_ptr< MeshLib::Mesh > > const & | mesh_vec, |
|
|
QDialog * | parent = nullptr ) |
|
explicit |
Definition at line 20 of file GeoOnMeshMappingDialog.cpp.
24{
25 setupUi(this);
26
27 for (const auto& mesh : mesh_vec)
28 {
29 this->meshNameComboBox->addItem(
30 QString::fromStdString(mesh->getName()));
31 }
32}
std::string _new_geo_name
◆ ~GeoOnMeshMappingDialog()
GeoOnMeshMappingDialog::~GeoOnMeshMappingDialog |
( |
| ) |
|
|
overridedefault |
◆ accept()
void GeoOnMeshMappingDialog::accept |
( |
| ) |
|
|
overrideprivate |
Instructions if the OK-Button has been pressed.
Definition at line 55 of file GeoOnMeshMappingDialog.cpp.
56{
57 if (this->advancedMappingButton->isChecked())
58 {
61 {
63 return;
64 }
65 }
66 this->done(QDialog::Accepted);
67}
static void box(const QString &e)
References _new_geo_name, and OGSError::box().
◆ getDataSetChoice()
int GeoOnMeshMappingDialog::getDataSetChoice |
( |
| ) |
const |
◆ getNewGeoName()
std::string const & GeoOnMeshMappingDialog::getNewGeoName |
( |
| ) |
const |
|
inline |
◆ on_advancedMappingButton_toggled
void GeoOnMeshMappingDialog::on_advancedMappingButton_toggled |
( |
bool | isSelected | ) |
|
|
inlineprivateslot |
◆ on_meshNameComboBox_currentIndexChanged()
void GeoOnMeshMappingDialog::on_meshNameComboBox_currentIndexChanged |
( |
int | idx | ) |
|
|
private |
Definition at line 41 of file GeoOnMeshMappingDialog.cpp.
42{
43 if (idx == 1)
44 {
45 this->normalMappingButton->setChecked(true);
46 }
47
48 bool is_enabled(idx != 1);
49 this->normalMappingButton->setEnabled(is_enabled);
50 this->advancedMappingButton->setEnabled(is_enabled);
51 this->geoNameEdit->setEnabled(is_enabled &&
52 this->advancedMappingButton->isChecked());
53}
◆ reject()
void GeoOnMeshMappingDialog::reject |
( |
| ) |
|
|
inlineoverrideprivate |
Instructions if the Cancel-Button has been pressed.
Definition at line 54 of file GeoOnMeshMappingDialog.h.
54{ this->done(QDialog::Rejected); };
◆ _new_geo_name
std::string GeoOnMeshMappingDialog::_new_geo_name |
|
private |
The documentation for this class was generated from the following files: