| 1569 | } |
| 1570 | |
| 1571 | void 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 | |
| 1583 | void mitk::MultiLabelSegmentation::SetAllLabelsVisibleByGroup(GroupIndexType group, bool visible) |
| 1584 | { |