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

Method SetFloatProperty

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

Source from the content-addressed store, hash-verified

429}
430
431void mitk::DataNode::SetFloatProperty(const char *propertyKey,
432 float floatValue,
433 const mitk::BaseRenderer *renderer /*=nullptr*/)
434{
435 if (dynamic_cast<DoubleProperty *>(this->GetProperty(propertyKey, renderer)) != nullptr)
436 {
437 MITK_WARN << "Setting float property " << propertyKey
438 << " although a double property with the same name already exists";
439 }
440 GetPropertyList(renderer)->SetProperty(propertyKey, mitk::FloatProperty::New(floatValue));
441}
442
443void mitk::DataNode::SetDoubleProperty(const char *propertyKey, double doubleValue, const mitk::BaseRenderer *renderer)
444{

Callers

nothing calls this directly

Calls 3

GetPropertyMethod · 0.95
NewFunction · 0.50
SetPropertyMethod · 0.45

Tested by

no test coverage detected