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

Method SetWidgetPlaneVisibility

Modules/QtWidgets/src/QmitkStdMultiWidget.cpp:636–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634}
635
636void QmitkStdMultiWidget::SetWidgetPlaneVisibility(const char *widgetName, bool visible, mitk::BaseRenderer *renderer)
637{
638 auto dataStorage = GetDataStorage();
639 if (nullptr != dataStorage)
640 {
641 mitk::DataNode* dataNode = dataStorage->GetNamedNode(widgetName);
642 if (dataNode != nullptr)
643 {
644 dataNode->SetVisibility(visible, renderer);
645 }
646 }
647}
648
649void QmitkStdMultiWidget::SetWidgetPlanesVisibility(bool visible, mitk::BaseRenderer *renderer)
650{

Callers

nothing calls this directly

Calls 3

GetNamedNodeMethod · 0.80
GetDataStorageFunction · 0.50
SetVisibilityMethod · 0.45

Tested by

no test coverage detected