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

Method SetAllLabelsVisibleByGroup

Modules/Multilabel/src/mitkLabelSetImage.cpp:1583–1593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1581}
1582
1583void mitk::MultiLabelSegmentation::SetAllLabelsVisibleByGroup(GroupIndexType group, bool visible)
1584{
1585 auto setVisibility = [visible, this](Label* l)
1586 {
1587 l->SetVisible(visible);
1588 this->UpdateLookupTable(l->GetValue());
1589 };
1590
1591 this->ApplyToLabels(this->GetLabelValuesByGroup(group), setVisibility);
1592 this->m_LookupTable->Modified();
1593}
1594
1595void mitk::MultiLabelSegmentation::SetAllLabelsVisibleByName(GroupIndexType group, const std::string_view name, bool visible)
1596{

Callers

nothing calls this directly

Calls 6

UpdateLookupTableMethod · 0.95
ApplyToLabelsMethod · 0.95
GetLabelValuesByGroupMethod · 0.95
SetVisibleMethod · 0.45
GetValueMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected