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

Method SetNodeVisibility

Modules/QtWidgets/src/QmitkSynchronizedNodeSelectionWidget.cpp:577–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577void QmitkSynchronizedNodeSelectionWidget::SetNodeVisibility(mitk::DataNode::Pointer node, const bool visibility)
578{
579 auto baseRenderer = m_BaseRenderer.Lock();
580 if (baseRenderer.IsNull())
581 {
582 return;
583 }
584 node->SetVisibility(visibility, baseRenderer);
585
586 // Explicitly request an update since a renderer-specific property change does not mark the node as modified.
587 // see https://phabricator.mitk.org/T22322
588 mitk::RenderingManager::GetInstance()->RequestUpdate(baseRenderer->GetRenderWindow());
589}

Callers 1

SynchronizeWidgetMethod · 0.80

Calls 5

LockMethod · 0.45
IsNullMethod · 0.45
SetVisibilityMethod · 0.45
RequestUpdateMethod · 0.45
GetRenderWindowMethod · 0.45

Tested by

no test coverage detected