| 194 | } |
| 195 | |
| 196 | void QmitkStdMultiWidget::SetCrosshairVisibility(bool visible) |
| 197 | { |
| 198 | std::array<const mitk::BaseRenderer*, 4> renderers; |
| 199 | |
| 200 | for (unsigned int i = 0; i < renderers.size(); ++i) |
| 201 | { |
| 202 | auto renderWindow = this->GetRenderWindow(i); |
| 203 | renderers[i] = renderWindow->GetRenderer(); |
| 204 | } |
| 205 | |
| 206 | for (const auto& planeNode : { m_PlaneNode1, m_PlaneNode2, m_PlaneNode3 }) |
| 207 | { |
| 208 | for (auto renderer : renderers) |
| 209 | planeNode->SetVisibility(visible, renderer); |
| 210 | } |
| 211 | |
| 212 | emit NotifyCrosshairVisibilityChanged(visible); |
| 213 | |
| 214 | // The global toggle also writes the 3D renderer's property list, so keep |
| 215 | // the 3D-only menu entry in sync with the master. |
| 216 | emit NotifyCrosshair3DVisibilityChanged(visible); |
| 217 | |
| 218 | this->RequestUpdateAll(); |
| 219 | } |
| 220 | |
| 221 | bool QmitkStdMultiWidget::GetCrosshairVisibility() const |
| 222 | { |
nothing calls this directly
no test coverage detected