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

Method SetAllLabelsVisibleByName

Modules/Multilabel/src/mitkLabelSetImage.cpp:1595–1605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1593}
1594
1595void mitk::MultiLabelSegmentation::SetAllLabelsVisibleByName(GroupIndexType group, const std::string_view name, bool visible)
1596{
1597 auto setVisibility = [visible, this](Label* l)
1598 {
1599 l->SetVisible(visible);
1600 this->UpdateLookupTable(l->GetValue());
1601 };
1602
1603 this->ApplyToLabels(this->GetLabelValuesByName(group, name), setVisibility);
1604 this->m_LookupTable->Modified();
1605}
1606
1607void mitk::MultiLabelSegmentation::SetAllLabelsLocked(bool locked)
1608{

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected