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

Method SetDoubleProperty

Modules/Core/src/DataManagement/mitkDataNode.cpp:443–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443void mitk::DataNode::SetDoubleProperty(const char *propertyKey, double doubleValue, const mitk::BaseRenderer *renderer)
444{
445 if (dynamic_cast<FloatProperty *>(this->GetProperty(propertyKey, renderer)) != nullptr)
446 {
447 MITK_WARN << "Setting double property " << propertyKey
448 << " although a float property with the same name already exists";
449 }
450 GetPropertyList(renderer)->SetProperty(propertyKey, mitk::DoubleProperty::New(doubleValue));
451}
452
453void mitk::DataNode::SetStringProperty(const char *propertyKey,
454 const char *stringValue,

Callers

nothing calls this directly

Calls 3

GetPropertyMethod · 0.95
NewFunction · 0.50
SetPropertyMethod · 0.45

Tested by

no test coverage detected