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

Method SetUSProperty

Modules/Core/src/Rendering/mitkAnnotation.cpp:46–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void mitk::Annotation::SetUSProperty(const std::string &propertyKey, us::Any value)
47{
48 if (this->m_ServiceRegistration)
49 {
50 us::ServiceProperties props;
51 std::vector<std::string> propertyKeys;
52 m_ServiceRegistration.GetReference().GetPropertyKeys(propertyKeys);
53 for (const std::string &key : propertyKeys)
54 {
55 props[key] = m_ServiceRegistration.GetReference().GetProperty(key);
56 }
57 props[propertyKey] = value;
58 m_ServiceRegistration.SetProperties(props);
59 }
60}
61
62void mitk::Annotation::SetProperty(const std::string &propertyKey, const BaseProperty::Pointer &propertyValue)
63{

Callers 1

AnnotationModifiedMethod · 0.95

Calls 4

GetPropertyKeysMethod · 0.45
GetReferenceMethod · 0.45
GetPropertyMethod · 0.45
SetPropertiesMethod · 0.45

Tested by

no test coverage detected