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

Method SetAllLabelsVisible

Modules/Multilabel/src/mitkLabelSetImage.cpp:1571–1581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1569}
1570
1571void mitk::MultiLabelSegmentation::SetAllLabelsVisible(bool visible)
1572{
1573 auto setVisibility = [visible,this](Label* l)
1574 {
1575 l->SetVisible(visible);
1576 this->UpdateLookupTable(l->GetValue());
1577 };
1578
1579 this->ApplyToLabels(this->GetAllLabelValues(), setVisibility);
1580 this->m_LookupTable->Modified();
1581}
1582
1583void mitk::MultiLabelSegmentation::SetAllLabelsVisibleByGroup(GroupIndexType group, bool visible)
1584{

Callers 2

DoReadMethod · 0.80

Calls 6

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

Tested by 1