| 72 | } |
| 73 | |
| 74 | std::optional<RealVector2D> SimulationInteractionController::getPositionSelectionData() const |
| 75 | { |
| 76 | if (ImGui::GetIO().WantCaptureMouse) { |
| 77 | return std::nullopt; |
| 78 | } |
| 79 | |
| 80 | auto mousePos = ImGui::GetMousePos(); |
| 81 | return Viewport::get().mapViewToWorldPosition({mousePos.x, mousePos.y}); |
| 82 | } |
| 83 | |
| 84 | void SimulationInteractionController::processEditWidget() |
| 85 | { |
no test coverage detected