| 423 | } |
| 424 | |
| 425 | void SimulationInteractionController::processSelectionRect() |
| 426 | { |
| 427 | if (_selectionRect) { |
| 428 | ImDrawList* draw_list = ImGui::GetBackgroundDrawList(); |
| 429 | auto startPos = _selectionRect->topLeft; |
| 430 | auto endPos = _selectionRect->bottomRight; |
| 431 | draw_list->AddRectFilled({startPos.x, startPos.y}, {endPos.x, endPos.y}, Const::SelectionAreaFillColor); |
| 432 | draw_list->AddRect({startPos.x, startPos.y}, {endPos.x, endPos.y}, Const::SelectionAreaBorderColor, 0, 0, 1.0f); |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | float SimulationInteractionController::calcZoomFactor(std::chrono::steady_clock::time_point const& lastTimepoint) |
| 437 | { |
nothing calls this directly
no outgoing calls
no test coverage detected