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

Method SetAllLabelsLockedByName

Modules/Multilabel/src/mitkLabelSetImage.cpp:1621–1626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1619}
1620
1621void mitk::MultiLabelSegmentation::SetAllLabelsLockedByName(GroupIndexType group, const std::string_view name, bool locked)
1622{
1623 auto setLock = [locked](Label* l) { l->SetLocked(locked); };
1624
1625 this->ApplyToLabels(this->GetLabelValuesByName(group, name), setLock);
1626}
1627
1628bool mitk::Equal(const mitk::MultiLabelSegmentation &leftHandSide,
1629 const mitk::MultiLabelSegmentation &rightHandSide,

Callers

nothing calls this directly

Calls 3

ApplyToLabelsMethod · 0.95
GetLabelValuesByNameMethod · 0.95
SetLockedMethod · 0.80

Tested by

no test coverage detected