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

Method SetGeometry

Modules/QtWidgets/src/QmitkRenderWindowWidget.cpp:282–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282void 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
298void QmitkRenderWindowWidget::SetGeometrySlice(const itk::EventObject& event)
299{

Callers

nothing calls this directly

Calls 4

GetCenterMethod · 0.80
CheckEventMethod · 0.45

Tested by

no test coverage detected