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

Method GetProperty

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

Source from the content-addressed store, hash-verified

222}
223
224mitk::BaseProperty *mitk::DataNode::GetProperty(const char *propertyKey, const mitk::BaseRenderer *renderer, bool fallBackOnDataProperties) const
225{
226 if (nullptr == propertyKey)
227 return nullptr;
228
229 if (nullptr != renderer)
230 {
231 auto it = m_MapOfPropertyLists.find(renderer->GetName());
232
233 if (m_MapOfPropertyLists.end() != it)
234 {
235 auto property = it->second->GetProperty(propertyKey);
236
237 if (nullptr != property)
238 return property;
239 }
240 }
241
242 auto property = m_PropertyList->GetProperty(propertyKey);
243
244 if (nullptr == property && fallBackOnDataProperties && m_Data.IsNotNull())
245 property = m_Data->GetProperty(propertyKey);
246
247 return property;
248}
249
250mitk::DataNode::GroupTagList mitk::DataNode::GetGroupTags() const
251{

Callers 4

SetFloatPropertyMethod · 0.95
SetDoublePropertyMethod · 0.95
GetConstPropertyMethod · 0.45
GetNonConstPropertyMethod · 0.45

Calls 4

IsNotNullMethod · 0.80
findMethod · 0.45
GetNameMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected