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

Method GetIntProperty

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

Source from the content-addressed store, hash-verified

278}
279
280bool mitk::DataNode::GetIntProperty(const char *propertyKey, int &intValue, const mitk::BaseRenderer *renderer) const
281{
282 mitk::IntProperty::Pointer intprop = dynamic_cast<mitk::IntProperty *>(GetProperty(propertyKey, renderer));
283 if (intprop.IsNull())
284 return false;
285
286 intValue = intprop->GetValue();
287 return true;
288}
289
290bool mitk::DataNode::GetFloatProperty(const char *propertyKey,
291 float &floatValue,

Callers 4

SetAutoTopMostImageMethod · 0.45
UpdateMethod · 0.45

Calls 3

GetPropertyFunction · 0.50
IsNullMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected