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

Method SetCrosshairVisibility

Modules/QtWidgets/src/QmitkStdMultiWidget.cpp:196–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void 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
221bool QmitkStdMultiWidget::GetCrosshairVisibility() const
222{

Callers

nothing calls this directly

Calls 5

GetRenderWindowMethod · 0.95
sizeMethod · 0.45
GetRendererMethod · 0.45
SetVisibilityMethod · 0.45
RequestUpdateAllMethod · 0.45

Tested by

no test coverage detected