37 this->param1->setText(
"2");
38 this->param2->setText(
"0.3");
39 this->param3->setText(
"0.05");
40 this->param4->setText(
"0");
43 auto* max_number_of_points_in_quadtree_leaf_validator(
45 param1->setValidator(max_number_of_points_in_quadtree_leaf_validator);
47 auto* mesh_density_scaling_pnts_validator(
49 param2->setValidator(mesh_density_scaling_pnts_validator);
51 auto* mesh_density_scaling_stations_validator(
53 param3->setValidator(mesh_density_scaling_stations_validator);
55 auto geoNames = geoObjects.getGeometryNames();
58 std::vector<std::string> geo_station_names;
59 geoObjects.getStationVectorNames(geo_station_names);
61 std::copy(geo_station_names.begin(), geo_station_names.end(),
62 std::back_inserter(geoNames));
64 std::size_t nGeoObjects(geoNames.size());
67 for (
unsigned i = 0; i < nGeoObjects; ++i)
69 list.append(QString::fromStdString(geoNames[i]));
74 this->selectGeoButton->setDisabled(
true);
75 this->deselectGeoButton->setDisabled(
true);
76 list.append(
"[No geometry available.]");
79 this->allGeoView->setModel(
_allGeo);
80 this->selectedGeoView->setModel(
_selGeo);
81 this->radioAdaptive->toggle();
void on_radioAdaptive_toggled(bool isTrue)
QStringListModel * _selGeo
QStringListModel * _allGeo
A validator for an input field which only accepts decimals. Source code adapted from StackOverflow
A validator for an input field which only accepts integers. Source code adapted from Qt developer faq...
void copy(PETScVector const &x, PETScVector &y)