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

Method TreeToNodeSet

Modules/QtWidgets/src/QmitkDataStorageTreeModel.cpp:818–827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

816}
817
818void QmitkDataStorageTreeModel::TreeToNodeSet(TreeItem *parent, QList<mitk::DataNode::Pointer> &vec) const
819{
820 TreeItem *current;
821 for (int i = 0; i < parent->GetChildCount(); ++i)
822 {
823 current = parent->GetChild(i);
824 vec.push_back(current->GetDataNode());
825 this->TreeToNodeSet(current, vec);
826 }
827}
828
829QModelIndex QmitkDataStorageTreeModel::GetIndex(const mitk::DataNode *node) const
830{

Callers 1

GetNodeSetMethod · 0.95

Calls 3

GetChildCountMethod · 0.45
GetChildMethod · 0.45
GetDataNodeMethod · 0.45

Tested by

no test coverage detected