| 102 | } |
| 103 | |
| 104 | mitk::DataNode *mitk::DataStorage::GetNode(const NodePredicateBase *condition) const |
| 105 | { |
| 106 | if (condition == nullptr) |
| 107 | return nullptr; |
| 108 | |
| 109 | DataStorage::SetOfObjects::ConstPointer rs = this->GetSubset(condition); |
| 110 | if (rs->Size() >= 1) |
| 111 | return rs->GetElement(0); |
| 112 | else |
| 113 | return nullptr; |
| 114 | } |
| 115 | |
| 116 | mitk::DataNode *mitk::DataStorage::GetNamedDerivedNode(const char *name, |
| 117 | const DataNode *sourceNode, |