Work on applying the probed heightmap.

This commit is contained in:
2023-05-18 07:24:05 +03:00
parent f78aa930d6
commit 4e7e059e22
13 changed files with 334 additions and 37 deletions
+6 -3
View File
@@ -14,12 +14,13 @@ SenderApp::SenderApp()
tab_widget->set_selected_index(index);
});
info_layer = tab_widget->add<Widget>();
info_vscroll = tab_widget->add<nanogui::VScrollPanel>();
tab_widget->append_tab("Info", info_vscroll);
info_layer = info_vscroll->add<Widget>();
info_layer->set_layout(new nanogui::GroupLayout(10, 20, 30, 0));
info_layer->add<nanogui::Label>("");
tab_widget->append_tab("Info", info_layer);
auto probe_layer = tab_widget->add<Widget>();
probe_layer->set_layout(new nanogui::GroupLayout(10, 20, 30, 0));
probe_layer->add<nanogui::Label>("");
@@ -131,6 +132,8 @@ void SenderApp::add_work_parameters_markup() {
btn_run_program = work_btn_holder->add<nanogui::Button>("Run");
// btnRunProgram->set_enabled(false);
btn_run_program->set_callback([&] {
// auto leveled_pgm = pgm.apply_heightmap(heightmap_grid);
// leveled_pgm.save("output_corrected6.nc");
cnc.run_program(pgm, "G" + std::to_string(cbo_work_offset->selected_index() + 54));
});
btn_run_program->set_tooltip("Execute program");