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

Method GetParentNode

Modules/QtWidgets/src/QmitkDataStorageSimpleTreeModel.cpp:300–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300mitk::DataNode *QmitkDataStorageSimpleTreeModel::GetParentNode(const mitk::DataNode *node) const
301{
302 mitk::DataNode *dataNode = nullptr;
303
304 mitk::DataStorage::SetOfObjects::ConstPointer _Sources = m_DataStorage.Lock()->GetSources(node);
305
306 if (_Sources->Size() > 0)
307 dataNode = _Sources->front();
308
309 return dataNode;
310}
311
312void QmitkDataStorageSimpleTreeModel::AddNodeInternal(const mitk::DataNode *node)
313{

Callers 1

AddNodeInternalMethod · 0.95

Calls 4

GetSourcesMethod · 0.80
frontMethod · 0.80
LockMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected