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

Method SetAllLabelsLockedByGroup

Modules/Multilabel/src/mitkLabelSetImage.cpp:1614–1619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1612}
1613
1614void mitk::MultiLabelSegmentation::SetAllLabelsLockedByGroup(GroupIndexType group, bool locked)
1615{
1616 auto setLock = [locked](Label* l) { l->SetLocked(locked); };
1617
1618 this->ApplyToLabels(this->GetLabelValuesByGroup(group), setLock);
1619}
1620
1621void mitk::MultiLabelSegmentation::SetAllLabelsLockedByName(GroupIndexType group, const std::string_view name, bool locked)
1622{

Callers

nothing calls this directly

Calls 3

ApplyToLabelsMethod · 0.95
GetLabelValuesByGroupMethod · 0.95
SetLockedMethod · 0.80

Tested by

no test coverage detected