13 #ifndef QMITKLESIONTREEITEM_H 14 #define QMITKLESIONTREEITEM_H 112 std::vector<ChildPointer> m_Children;
120 #endif // QMITKLESIONTREEITEM_H
std::shared_ptr< const QmitkLesionTreeItem > ChildConstPointer
int GetRow() const
Get the row of this item relative to its parent item using 'GetRowOfChild'.
mitk::LesionData & GetData()
Return the item data, which contains ...
std::weak_ptr< QmitkLesionTreeItem > ParentPointer
void AddChild(ChildPointer child)
Add a new child to the list of children of this item if it is not already a child item...
void SetData(const mitk::LesionData &lesionData)
Set the item data of this item.
ChildPointer GetChildInRow(int row) const
Return the child of this item at a specific position.
int GetRowOfChild(ChildConstPointer child) const
Get the row of the given child item relative to this item.
ParentPointer GetParent() const
Return the parent item.
void RemoveChild(ChildPointer child)
Remove a child from the list of children of this item.
This class holds the data of each lesion in the lesion tree view. The data is the lesion itself with ...
QmitkLesionTreeItem(mitk::LesionData lesionData=mitk::LesionData())
void SetParent(ParentPointer parent)
Set the parent item of this item.
vcl_size_t ChildCount() const
Return the number of child items.
std::shared_ptr< QmitkLesionTreeItem > ChildPointer