| 341 | } |
| 342 | |
| 343 | bool mitk::EditableContourTool::OnCheckPlane(const InteractionEvent* interactionEvent) |
| 344 | { |
| 345 | auto positionEvent = dynamic_cast<const mitk::InteractionPositionEvent*>(interactionEvent); |
| 346 | |
| 347 | if (nullptr == positionEvent) |
| 348 | return false; |
| 349 | |
| 350 | if (m_PlaneGeometry.IsNotNull()) |
| 351 | { |
| 352 | // Check if the point is in the correct slice |
| 353 | if (m_PlaneGeometry->DistanceFromPlane(positionEvent->GetPositionInWorld()) > mitk::sqrteps) |
| 354 | return false; |
| 355 | } |
| 356 | |
| 357 | return true; |
| 358 | } |
| 359 | |
| 360 | bool mitk::EditableContourTool::OnCheckDistanceToControlPoint(const InteractionEvent* interactionEvent) |
| 361 | { |
nothing calls this directly
no test coverage detected