| 222 | } |
| 223 | |
| 224 | mitk::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 | |
| 250 | mitk::DataNode::GroupTagList mitk::DataNode::GetGroupTags() const |
| 251 | { |
no test coverage detected