| 240 | } |
| 241 | |
| 242 | void mitk::PointSetDataInteractor::IsClosedContour(StateMachineAction *, InteractionEvent *interactionEvent) |
| 243 | { |
| 244 | unsigned int timeStep = interactionEvent->GetSender()->GetTimeStep(GetDataNode()->GetData()); |
| 245 | |
| 246 | auto *positionEvent = dynamic_cast<InteractionPositionEvent *>(interactionEvent); |
| 247 | if (positionEvent != nullptr) |
| 248 | { |
| 249 | Point3D point = positionEvent->GetPositionInWorld(); |
| 250 | // iterate over point set and check if it contains a point close enough to the pointer to be selected |
| 251 | if (GetPointIndexByPosition(point, timeStep) != -1 && m_PointSet->GetSize(timeStep) >= 3) |
| 252 | { |
| 253 | InternalEvent::Pointer event = InternalEvent::New(nullptr, this, "ClosedContour"); |
| 254 | positionEvent->GetSender()->GetDispatcher()->QueueEvent(event.GetPointer()); |
| 255 | } |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | void mitk::PointSetDataInteractor::MovePoint(StateMachineAction *stateMachineAction, InteractionEvent *interactionEvent) |
| 260 | { |
nothing calls this directly
no test coverage detected