MCPcopy Create free account
hub / github.com/MITK/MITK / CheckOverObject

Method CheckOverObject

Modules/DataTypesExt/src/mitkClippingPlaneInteractor3D.cpp:61–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61bool mitk::ClippingPlaneInteractor3D::CheckOverObject(const InteractionEvent *interactionEvent)
62{
63 const auto *positionEvent = dynamic_cast<const InteractionPositionEvent *>(interactionEvent);
64 if (positionEvent == nullptr)
65 return false;
66
67 Point3D currentWorldPoint;
68 if (interactionEvent->GetSender()->PickObject(positionEvent->GetPointerPositionOnScreen(), currentWorldPoint) ==
69 this->GetDataNode())
70 return true;
71
72 return false;
73}
74
75void mitk::ClippingPlaneInteractor3D::SelectObject(StateMachineAction *, InteractionEvent *interactionEvent)
76{

Callers

nothing calls this directly

Calls 4

PickObjectMethod · 0.80
GetSenderMethod · 0.80
GetDataNodeMethod · 0.45

Tested by

no test coverage detected