| 372 | } |
| 373 | |
| 374 | void SceneDebugView::gui_options() |
| 375 | { |
| 376 | |
| 377 | if (ImGui::CollapsingHeader("OptionsSceneDebugView##")) { |
| 378 | if (ImGui::Button("Save topview")) { |
| 379 | save(); |
| 380 | } |
| 381 | |
| 382 | ImGui::PushScaledItemWidth(120); |
| 383 | ImGui::InputFloat("Camera scale", &_cameraScaling, 0.1f, 10.0f); |
| 384 | _cameraScaling = std::max(0.001f, _cameraScaling); |
| 385 | |
| 386 | ImGui::Checkbox("Draw labels ", &_showLabels); |
| 387 | if (_showLabels) { |
| 388 | ImGui::SameLine(); |
| 389 | ImGui::InputFloat("Label scale", &_labelScale, 0.2f, 10.0f); |
| 390 | } |
| 391 | |
| 392 | ImGui::Separator(); |
| 393 | ImGui::Checkbox("Draw Input Images ", &_showImages); |
| 394 | if (_showImages) { |
| 395 | ImGui::SameLine(); |
| 396 | ImGui::SliderFloat("Alpha", &_alphaImage, 0, 1.0); |
| 397 | } |
| 398 | |
| 399 | camera_handler.onGUI("Top view settings"); |
| 400 | ImGui::PopItemWidth(); |
| 401 | ImGui::Separator(); |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | void SceneDebugView::gui_cameras() |
| 406 | { |
nothing calls this directly
no test coverage detected