MCPcopy Create free account
hub / github.com/MITK/MITK / OnMouseReleased

Method OnMouseReleased

Modules/Segmentation/src/Interactions/mitkLabelSelectionTool.cpp:118–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void mitk::LabelSelectionTool::OnMouseReleased(StateMachineAction*, InteractionEvent* interactionEvent)
119{
120 auto* positionEvent = dynamic_cast<mitk::InteractionPositionEvent*>(interactionEvent);
121 if (!positionEvent)
122 return;
123
124 const auto labels = m_HighlightGuard.GetHighlightedLabels();
125 if (!labels.empty())
126 {
127
128 this->GetToolManager()->SetActiveWorkingLabel( labels.back() );
129 }
130}

Callers

nothing calls this directly

Calls 5

GetHighlightedLabelsMethod · 0.80
SetActiveWorkingLabelMethod · 0.80
backMethod · 0.80
emptyMethod · 0.45
GetToolManagerMethod · 0.45

Tested by

no test coverage detected