| 63 | } |
| 64 | |
| 65 | bool mitk::AffineImageCropperInteractor::CheckOverObject(const InteractionEvent *interactionEvent) |
| 66 | { |
| 67 | mitk::DataNode::Pointer dn = this->GetDataNode(); |
| 68 | if (dn.IsNull()) |
| 69 | return false; |
| 70 | const auto *positionEvent = dynamic_cast<const InteractionPositionEvent *>(interactionEvent); |
| 71 | Point3D currentPickedPoint = positionEvent->GetPositionInWorld(); |
| 72 | auto *object = dynamic_cast<mitk::BoundingObject *>(dn->GetData()); |
| 73 | object->GetGeometry()->WorldToIndex(currentPickedPoint, currentPickedPoint); |
| 74 | return object && object->GetGeometry()->GetBoundingBox()->IsInside(currentPickedPoint); |
| 75 | } |
| 76 | |
| 77 | void mitk::AffineImageCropperInteractor::SelectObject(StateMachineAction *, InteractionEvent *) |
| 78 | { |
nothing calls this directly
no test coverage detected