| 368 | } |
| 369 | |
| 370 | const mitk::Point3D QmitkMxNMultiWidget::GetSelectedPosition(const QString& widgetName) const |
| 371 | { |
| 372 | RenderWindowWidgetPointer renderWindowWidget; |
| 373 | if (widgetName.isNull() || widgetName.isEmpty()) |
| 374 | { |
| 375 | renderWindowWidget = GetActiveRenderWindowWidget(); |
| 376 | } |
| 377 | else |
| 378 | { |
| 379 | renderWindowWidget = GetRenderWindowWidget(widgetName); |
| 380 | } |
| 381 | |
| 382 | if (nullptr != renderWindowWidget) |
| 383 | { |
| 384 | return renderWindowWidget->GetCrosshairPosition(); |
| 385 | } |
| 386 | |
| 387 | MITK_ERROR << "Crosshair position can not be retrieved."; |
| 388 | return mitk::Point3D(0.0); |
| 389 | } |
| 390 | |
| 391 | void QmitkMxNMultiWidget::SetCrosshairVisibility(bool visible) |
| 392 | { |
no test coverage detected