MCPcopy Create free account
hub / github.com/ElectroZybr/LatticeLab / resetInteractionState

Method resetInteractionState

App/interaction/ToolsManager.cpp:114–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void ToolsManager::resetInteractionState() {
115 for (auto& tool : toolInstances) {
116 if (tool) {
117 tool->reset();
118 }
119 }
120
121 if (pickingSystem) {
122 pickingSystem->clearSelection();
123 pickingSystem->getOverlay().reset();
124 }
125
126 if (uiState != nullptr) {
127 uiState->selectedAtomCount = 0;
128 uiState->drawToolTrip = false;
129 uiState->toolTooltipText.clear();
130 }
131 isInteracting = false;
132}
133
134bool ToolsManager::isInteractingNow() noexcept { return isInteracting; }
135

Callers

nothing calls this directly

Calls 3

clearSelectionMethod · 0.80
resetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected