| 96 | } |
| 97 | |
| 98 | void mitk::LabelSelectionTool::OnMouseMoved(StateMachineAction*, InteractionEvent* interactionEvent) |
| 99 | { |
| 100 | auto* positionEvent = dynamic_cast<mitk::InteractionPositionEvent*>(interactionEvent); |
| 101 | if (!positionEvent) |
| 102 | return; |
| 103 | |
| 104 | const auto segmentation = this->GetWorkingData(); |
| 105 | auto point = positionEvent->GetPositionInWorld(); |
| 106 | Point3D index; |
| 107 | segmentation->GetGeometry()->WorldToIndex(point, index); |
| 108 | |
| 109 | if (index == m_LastCheckedIndex) |
| 110 | return; |
| 111 | |
| 112 | m_LastCheckedIndex = index; |
| 113 | m_LastCheckedPoint = point; |
| 114 | |
| 115 | this->UpdateLabels(); |
| 116 | } |
| 117 | |
| 118 | void mitk::LabelSelectionTool::OnMouseReleased(StateMachineAction*, InteractionEvent* interactionEvent) |
| 119 | { |
nothing calls this directly
no test coverage detected