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

Method CheckOverObject

Modules/DataTypesExt/src/mitkAffineBaseDataInteractor3D.cpp:316–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316bool mitk::AffineBaseDataInteractor3D::CheckOverObject(const InteractionEvent *interactionEvent)
317{
318 const auto *positionEvent = dynamic_cast<const InteractionPositionEvent *>(interactionEvent);
319 if (positionEvent == nullptr)
320 return false;
321
322 Point3D currentWorldPoint;
323 if (interactionEvent->GetSender()->PickObject(positionEvent->GetPointerPositionOnScreen(), currentWorldPoint) ==
324 this->GetDataNode())
325 return true;
326
327 return false;
328}
329
330void mitk::AffineBaseDataInteractor3D::SelectObject(StateMachineAction *, InteractionEvent *)
331{

Callers

nothing calls this directly

Calls 4

PickObjectMethod · 0.80
GetSenderMethod · 0.80
GetDataNodeMethod · 0.45

Tested by

no test coverage detected