| 174 | } |
| 175 | |
| 176 | const mitk::Point3D QmitkStdMultiWidget::GetSelectedPosition(const QString& /*widgetName*/) const |
| 177 | { |
| 178 | const mitk::PlaneGeometry* plane1 = GetRenderWindow1()->GetSliceNavigationController()->GetCurrentPlaneGeometry(); |
| 179 | const mitk::PlaneGeometry* plane2 = GetRenderWindow2()->GetSliceNavigationController()->GetCurrentPlaneGeometry(); |
| 180 | const mitk::PlaneGeometry* plane3 = GetRenderWindow3()->GetSliceNavigationController()->GetCurrentPlaneGeometry(); |
| 181 | |
| 182 | mitk::Line3D line; |
| 183 | if ((plane1 != nullptr) && (plane2 != nullptr) |
| 184 | && (plane1->IntersectionLine(plane2, line))) |
| 185 | { |
| 186 | mitk::Point3D point; |
| 187 | if ((plane3 != nullptr) && (plane3->IntersectionPoint(line, point))) |
| 188 | { |
| 189 | return point; |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | return mitk::Point3D(); |
| 194 | } |
| 195 | |
| 196 | void QmitkStdMultiWidget::SetCrosshairVisibility(bool visible) |
| 197 | { |
no test coverage detected