Instructions if the OK-Button has been pressed.
73{
74 std::string mesh_name(this->meshBox->currentText().toStdString());
75 std::string raster_name(this->rasterEdit->text().toStdString());
76 double scaling_factor = this->scalingEdit->text().toDouble();
77 std::vector<std::pair<std::size_t, double>> direct_values;
78
79 if (mesh_name.empty())
80 {
82 return;
83 }
84 if (raster_name.empty())
85 {
87 return;
88 }
89
90 MeshLib::Mesh* mesh(nullptr);
92 {
93 if (mesh_->getName() == mesh_name)
94 {
95 mesh = mesh_;
96 break;
97 }
98 }
99
100 if (this->directButton->isChecked())
101 {
102 DirectConditionGenerator dcg;
104
105 }
106 else
107 {
108 if (scaling_factor <= 0)
109 {
111 return;
112 }
113 auto* new_mesh = const_cast<MeshLib::Mesh*>(mesh);
114 DirectConditionGenerator dcg;
116 scaling_factor);
117
118
119 }
120
122 this->done(QDialog::Accepted);
123}
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)