| 245 | } |
| 246 | |
| 247 | void mitk::EditableContourTool::OnDrawing(StateMachineAction*, InteractionEvent* interactionEvent) |
| 248 | { |
| 249 | auto* positionEvent = dynamic_cast<mitk::InteractionPositionEvent*>(interactionEvent); |
| 250 | if (!positionEvent) |
| 251 | return; |
| 252 | |
| 253 | m_PreviewContourNode->SetVisibility(false); |
| 254 | |
| 255 | auto contour = this->GetContour(); |
| 256 | contour->AddVertex(positionEvent->GetPositionInWorld(), false); |
| 257 | UpdateClosureContour(positionEvent->GetPositionInWorld()); |
| 258 | |
| 259 | assert(positionEvent->GetSender()->GetRenderWindow()); |
| 260 | mitk::RenderingManager::GetInstance()->RequestUpdate(positionEvent->GetSender()->GetRenderWindow()); |
| 261 | } |
| 262 | |
| 263 | void mitk::EditableContourTool::OnEndDrawing(StateMachineAction*, InteractionEvent* interactionEvent) |
| 264 | { |
nothing calls this directly
no test coverage detected