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

Method GetFloatProperty

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

Source from the content-addressed store, hash-verified

288}
289
290bool mitk::DataNode::GetFloatProperty(const char *propertyKey,
291 float &floatValue,
292 const mitk::BaseRenderer *renderer) const
293{
294 mitk::FloatProperty::Pointer floatprop = dynamic_cast<mitk::FloatProperty *>(GetProperty(propertyKey, renderer));
295 if (floatprop.IsNull())
296 return false;
297
298 floatValue = floatprop->GetValue();
299 return true;
300}
301
302bool mitk::DataNode::GetDoubleProperty(const char *propertyKey,
303 double &doubleValue,

Callers 1

GetDoublePropertyMethod · 0.95

Calls 3

GetPropertyFunction · 0.50
IsNullMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected