| 103 | } |
| 104 | |
| 105 | void mitk::AffineImageCropperInteractor::ScaleRadius(StateMachineAction *, InteractionEvent *interactionEvent) |
| 106 | { |
| 107 | const auto *wheelEvent = dynamic_cast<const MouseWheelEvent *>(interactionEvent); |
| 108 | if (wheelEvent == nullptr) |
| 109 | return; |
| 110 | |
| 111 | if (m_SelectedNode.IsNull()) |
| 112 | return; |
| 113 | |
| 114 | double scale = (double)(wheelEvent->GetWheelDelta()) / 64.0; |
| 115 | mitk::Point3D newScale; |
| 116 | newScale[0] = newScale[1] = newScale[2] = scale; |
| 117 | |
| 118 | mitk::Point3D anchorPoint = wheelEvent->GetPositionInWorld(); |
| 119 | auto *doOp = new mitk::ScaleOperation(OpSCALE, newScale, anchorPoint); |
| 120 | m_SelectedNode->GetData()->GetGeometry()->ExecuteOperation(doOp); |
| 121 | |
| 122 | RenderingManager::GetInstance()->RequestUpdateAll(); |
| 123 | } |
| 124 | |
| 125 | void mitk::AffineImageCropperInteractor::InitTranslate(StateMachineAction *, InteractionEvent *interactionEvent) |
| 126 | { |
nothing calls this directly
no test coverage detected