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

Method Update

Modules/Multilabel/src/mitkLabel.cpp:606–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

604
605
606void mitk::Label::Update(const Label* templateLabel, bool updateLabelValue)
607{
608 if (nullptr == templateLabel)
609 mitkThrow() << "Invalid call of Label::Update. Passed label is null.";
610
611 auto keys = templateLabel->GetPropertyKeys();
612 for (const auto& key : keys)
613 {
614 auto destProp = templateLabel->GetConstProperty(key)->Clone();
615 this->SetProperty(key, destProp); //The implementation of SetProperty ensures
616 //that only the content will be assigned if
617 //key does already exist.
618 }
619
620 if (updateLabelValue)
621 this->SetValue(templateLabel->GetValue());
622}
623
624void mitk::Label::SetDICOMCodeSequenceAsProperties(const PropertyKeyPath& basePath,
625 const DICOMCodeSequence& code,

Callers 15

DoPrepareMaskMethod · 0.45
GenerateMethod · 0.45
DoCalculateStatisticsMethod · 0.45
DoPrepareMaskMethod · 0.45
DoParameterFitMethod · 0.45
DoImageGenerationMethod · 0.45
WriteMethod · 0.45

Calls 6

SetPropertyMethod · 0.95
SetValueMethod · 0.95
GetPropertyKeysMethod · 0.45
CloneMethod · 0.45
GetConstPropertyMethod · 0.45
GetValueMethod · 0.45