27 this->param1->setText(
"2");
28 this->param2->setText(
"0.3");
29 this->param3->setText(
"0.05");
30 this->param4->setText(
"0");
33 auto* max_number_of_points_in_quadtree_leaf_validator(
35 param1->setValidator(max_number_of_points_in_quadtree_leaf_validator);
37 auto* mesh_density_scaling_pnts_validator(
39 param2->setValidator(mesh_density_scaling_pnts_validator);
41 auto* mesh_density_scaling_stations_validator(
43 param3->setValidator(mesh_density_scaling_stations_validator);
48 std::vector<std::string> geo_station_names;
51 std::copy(geo_station_names.begin(), geo_station_names.end(),
52 std::back_inserter(geoNames));
54 std::size_t nGeoObjects(geoNames.size());
57 for (
unsigned i = 0; i < nGeoObjects; ++i)
59 list.append(QString::fromStdString(geoNames[i]));
64 this->selectGeoButton->setDisabled(
true);
65 this->deselectGeoButton->setDisabled(
true);
66 list.append(
"[No geometry available.]");
69 this->allGeoView->setModel(
_allGeo);
70 this->selectedGeoView->setModel(
_selGeo);
71 this->radioAdaptive->toggle();
115 this->param1->setEnabled(
true);
116 this->param2->setEnabled(
true);
117 this->param3->setEnabled(
true);
118 this->param4->setEnabled(
false);
122 this->param1->setEnabled(
false);
123 this->param2->setEnabled(
false);
124 this->param3->setEnabled(
false);
125 this->param4->setEnabled(
true);
131 if (this->
_selGeo->stringList().empty())
134 "No geometry selected. Geometric data\n is necessary for mesh "
139 std::vector<std::string> selectedObjects =
141 unsigned max_number_of_points_in_quadtree_leaf(10);
142 double mesh_density_scaling_pnts(0.5);
143 double mesh_density_scaling_stations(0.05);
146 if (this->radioAdaptive->isChecked())
148 double const min_scaling_factor(1e-10);
149 max_number_of_points_in_quadtree_leaf =
151 if (max_number_of_points_in_quadtree_leaf == 0)
153 max_number_of_points_in_quadtree_leaf = 10;
155 mesh_density_scaling_pnts = fabs(param2->text().toDouble());
156 if (mesh_density_scaling_pnts < min_scaling_factor)
158 mesh_density_scaling_pnts = min_scaling_factor;
160 mesh_density_scaling_stations = param3->text().toDouble();
161 if (mesh_density_scaling_stations < min_scaling_factor)
163 mesh_density_scaling_stations = min_scaling_factor;
168 val4 = param4->text().toDouble();
171 bool delete_geo_file = this->geoFileDelete->isChecked();
173 max_number_of_points_in_quadtree_leaf,
174 mesh_density_scaling_pnts,
175 mesh_density_scaling_stations,
178 this->done(QDialog::Accepted);