Instructions if the OK-Button has been pressed.
62{
63 std::string mesh_name(this->meshBox->currentText().toStdString());
64 std::string raster_name(this->rasterEdit->text().toStdString());
65 double scaling_factor = this->scalingEdit->text().toDouble();
66 std::vector<std::pair<std::size_t, double>> direct_values;
67
68 if (mesh_name.empty())
69 {
71 return;
72 }
73 if (raster_name.empty())
74 {
76 return;
77 }
78
79 MeshLib::Mesh* mesh(nullptr);
81 {
82 if (mesh_->getName() == mesh_name)
83 {
84 mesh = mesh_;
85 break;
86 }
87 }
88
89 if (this->directButton->isChecked())
90 {
91 DirectConditionGenerator dcg;
93
94 }
95 else
96 {
97 if (scaling_factor <= 0)
98 {
100 return;
101 }
102 auto* new_mesh = const_cast<MeshLib::Mesh*>(mesh);
103 DirectConditionGenerator dcg;
105 scaling_factor);
106
107
108 }
109
111 this->done(QDialog::Accepted);
112}
void transmitDisValues(std::vector< std::pair< std::size_t, double > >)
const std::vector< std::pair< std::size_t, double > > & directToSurfaceNodes(const MeshLib::Mesh &mesh, const std::string &filename)
const std::vector< std::pair< std::size_t, double > > & directWithSurfaceIntegration(MeshLib::Mesh &mesh, const std::string &filename, double scaling)
static void box(const QString &e)