Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
#include <QmitkDataStorageTreeModelInternalItem.h>
Protected Attributes | |
QmitkDataStorageTreeModelInternalItem * | m_Parent |
std::vector< QmitkDataStorageTreeModelInternalItem * > | m_Children |
mitk::WeakPointer< mitk::DataNode > | m_DataNode |
Helper class to represent a tree structure of DataNodes
Definition at line 26 of file QmitkDataStorageTreeModelInternalItem.h.
QmitkDataStorageTreeModelInternalItem::QmitkDataStorageTreeModelInternalItem | ( | mitk::DataNode * | _DataNode, |
QmitkDataStorageTreeModelInternalItem * | _Parent = nullptr |
||
) |
Constructs a new QmitkDataStorageTreeModelInternalItem with the given DataNode (must not be 0)
|
virtual |
Removes itself as child from its parent-> Does not delete its children
void QmitkDataStorageTreeModelInternalItem::AddChild | ( | QmitkDataStorageTreeModelInternalItem * | item | ) |
add another item as a child of this (only if not already in that list)
void QmitkDataStorageTreeModelInternalItem::Delete | ( | ) |
Deletes the whole tree branch
QmitkDataStorageTreeModelInternalItem* QmitkDataStorageTreeModelInternalItem::Find | ( | const mitk::DataNode * | _DataNode | ) | const |
Find the QmitkDataStorageTreeModelInternalItem containing a special tree node (recursive tree function)
QmitkDataStorageTreeModelInternalItem* QmitkDataStorageTreeModelInternalItem::GetChild | ( | int | index | ) | const |
int QmitkDataStorageTreeModelInternalItem::GetChildCount | ( | ) | const |
Get the amount of children
std::vector<QmitkDataStorageTreeModelInternalItem *> QmitkDataStorageTreeModelInternalItem::GetChildren | ( | ) | const |
Get all children as vector
mitk::DataNode::Pointer QmitkDataStorageTreeModelInternalItem::GetDataNode | ( | ) | const |
Return the DataNode associated with this node
int QmitkDataStorageTreeModelInternalItem::GetIndex | ( | ) | const |
QmitkDataStorageTreeModelInternalItem* QmitkDataStorageTreeModelInternalItem::GetParent | ( | ) | const |
int QmitkDataStorageTreeModelInternalItem::IndexOfChild | ( | const QmitkDataStorageTreeModelInternalItem * | item | ) | const |
Find the index of an item
void QmitkDataStorageTreeModelInternalItem::InsertChild | ( | QmitkDataStorageTreeModelInternalItem * | item, |
int | index = -1 |
||
) |
inserts a child at the given position. if pos is not in range the element is added at the end
void QmitkDataStorageTreeModelInternalItem::RemoveChild | ( | QmitkDataStorageTreeModelInternalItem * | item | ) |
remove another item as child from this
void QmitkDataStorageTreeModelInternalItem::SetParent | ( | QmitkDataStorageTreeModelInternalItem * | _Parent | ) |
Sets the parent on the QmitkDataStorageTreeModelInternalItem.
|
protected |
Definition at line 93 of file QmitkDataStorageTreeModelInternalItem.h.
|
protected |
Definition at line 94 of file QmitkDataStorageTreeModelInternalItem.h.
|
protected |
Definition at line 92 of file QmitkDataStorageTreeModelInternalItem.h.