| 280 | } |
| 281 | |
| 282 | void QmitkRenderWindowWidget::SetGeometry(const itk::EventObject& event) |
| 283 | { |
| 284 | if (!mitk::SliceNavigationController::GeometrySendEvent(nullptr, 0).CheckEvent(&event)) |
| 285 | { |
| 286 | return; |
| 287 | } |
| 288 | |
| 289 | const auto* planeGeometry = this->GetSliceNavigationController()->GetCurrentPlaneGeometry(); |
| 290 | if (nullptr == planeGeometry) |
| 291 | { |
| 292 | mitkThrow() << "No valid plane geometry set. Render window is in an invalid state."; |
| 293 | } |
| 294 | |
| 295 | return SetCrosshairPosition(planeGeometry->GetCenter()); |
| 296 | } |
| 297 | |
| 298 | void QmitkRenderWindowWidget::SetGeometrySlice(const itk::EventObject& event) |
| 299 | { |
nothing calls this directly
no test coverage detected