| 96 | } |
| 97 | |
| 98 | void mitk::PickingTool::OnAddPoint(StateMachineAction*, InteractionEvent* interactionEvent) |
| 99 | { |
| 100 | if (!this->IsUpdating() && m_PointSet.IsNotNull()) |
| 101 | { |
| 102 | const auto positionEvent = dynamic_cast<mitk::InteractionPositionEvent*>(interactionEvent); |
| 103 | |
| 104 | if (positionEvent != nullptr) |
| 105 | { |
| 106 | m_PointSet->InsertPoint(m_PointSet->GetSize(), positionEvent->GetPositionInWorld()); |
| 107 | this->UpdatePreview(); |
| 108 | } |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | void mitk::PickingTool::OnDelete(StateMachineAction*, InteractionEvent* /*interactionEvent*/) |
| 113 | { |
nothing calls this directly
no test coverage detected