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

Method GetBoolProperty

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

Source from the content-addressed store, hash-verified

268}
269
270bool mitk::DataNode::GetBoolProperty(const char *propertyKey, bool &boolValue, const mitk::BaseRenderer *renderer) const
271{
272 mitk::BoolProperty::Pointer boolprop = dynamic_cast<mitk::BoolProperty *>(GetProperty(propertyKey, renderer));
273 if (boolprop.IsNull())
274 return false;
275
276 boolValue = boolprop->GetValue();
277 return true;
278}
279
280bool mitk::DataNode::GetIntProperty(const char *propertyKey, int &intValue, const mitk::BaseRenderer *renderer) const
281{

Callers 3

UpdateMethod · 0.45

Calls 3

GetPropertyFunction · 0.50
IsNullMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected