MCPcopy Create free account
hub / github.com/chrxh/alien / getPositionSelectionData

Method getPositionSelectionData

source/Gui/SimulationInteractionController.cpp:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74std::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
84void SimulationInteractionController::processEditWidget()
85{

Callers 2

processMethod · 0.80
processMethod · 0.80

Calls 1

Tested by

no test coverage detected