Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <QmitkLesionTreeItem.h>
Public Types | |
using | ChildPointer = std::shared_ptr< QmitkLesionTreeItem > |
using | ChildConstPointer = std::shared_ptr< const QmitkLesionTreeItem > |
using | ParentPointer = std::weak_ptr< QmitkLesionTreeItem > |
Public Member Functions | |
QmitkLesionTreeItem (mitk::LesionData lesionData=mitk::LesionData()) | |
ChildPointer | GetChildInRow (int row) const |
Return the child of this item at a specific position. More... | |
ParentPointer | GetParent () const |
Return the parent item. More... | |
void | SetParent (ParentPointer parent) |
Set the parent item of this item. More... | |
mitk::LesionData & | GetData () |
Return the item data, which contains ... More... | |
int | GetRow () const |
Get the row of this item relative to its parent item using 'GetRowOfChild'. More... | |
int | GetRowOfChild (ChildConstPointer child) const |
Get the row of the given child item relative to this item. More... | |
vcl_size_t | ChildCount () const |
Return the number of child items. More... | |
void | AddChild (ChildPointer child) |
Add a new child to the list of children of this item if it is not already a child item. More... | |
void | RemoveChild (ChildPointer child) |
Remove a child from the list of children of this item. More... | |
void | SetData (const mitk::LesionData &lesionData) |
Set the item data of this item. More... | |
Definition at line 34 of file QmitkLesionTreeItem.h.
using QmitkLesionTreeItem::ChildConstPointer = std::shared_ptr<const QmitkLesionTreeItem> |
Definition at line 39 of file QmitkLesionTreeItem.h.
using QmitkLesionTreeItem::ChildPointer = std::shared_ptr<QmitkLesionTreeItem> |
Definition at line 38 of file QmitkLesionTreeItem.h.
using QmitkLesionTreeItem::ParentPointer = std::weak_ptr<QmitkLesionTreeItem> |
Definition at line 40 of file QmitkLesionTreeItem.h.
QmitkLesionTreeItem::QmitkLesionTreeItem | ( | mitk::LesionData | lesionData = mitk::LesionData() | ) |
Definition at line 19 of file QmitkLesionTreeItem.cpp.
void QmitkLesionTreeItem::AddChild | ( | ChildPointer | child | ) |
Add a new child to the list of children of this item if it is not already a child item.
child | The child item to add to this item. |
Definition at line 53 of file QmitkLesionTreeItem.cpp.
Referenced by ChildCount().
|
inline |
Return the number of child items.
Definition at line 89 of file QmitkLesionTreeItem.h.
References AddChild(), RemoveChild(), and SetData().
Referenced by QmitkLesionTreeModel::rowCount(), and QmitkStatisticsTreeModel::rowCount().
|
inline |
Return the child of this item at a specific position.
row | Determines the position of a child item to return. |
Definition at line 51 of file QmitkLesionTreeItem.h.
Referenced by QmitkLesionTreeModel::index(), and QmitkStatisticsTreeModel::index().
|
inline |
Return the item data, which contains ...
see mitk::LesionItemData
Definition at line 69 of file QmitkLesionTreeItem.h.
References GetRow(), and GetRowOfChild().
Referenced by QmitkLesionTreeModel::data(), and QmitkStatisticsTreeModel::data().
|
inline |
Return the parent item.
Definition at line 57 of file QmitkLesionTreeItem.h.
References SetParent().
Referenced by QmitkLesionTreeModel::data(), QmitkStatisticsTreeModel::data(), QmitkLesionTreeModel::parent(), and QmitkStatisticsTreeModel::parent().
int QmitkLesionTreeItem::GetRow | ( | ) | const |
Get the row of this item relative to its parent item using 'GetRowOfChild'.
Definition at line 29 of file QmitkLesionTreeItem.cpp.
Referenced by GetData().
int QmitkLesionTreeItem::GetRowOfChild | ( | ChildConstPointer | child | ) | const |
Get the row of the given child item relative to this item.
child | The child item whose row is to be determined. |
Definition at line 40 of file QmitkLesionTreeItem.cpp.
Referenced by GetData().
void QmitkLesionTreeItem::RemoveChild | ( | ChildPointer | child | ) |
Remove a child from the list of children of this item.
child | The child item to remove from this item. |
Definition at line 65 of file QmitkLesionTreeItem.cpp.
Referenced by ChildCount().
void QmitkLesionTreeItem::SetData | ( | const mitk::LesionData & | lesionData | ) |
Set the item data of this item.
value | LesionData that provides information about this item. |
Definition at line 74 of file QmitkLesionTreeItem.cpp.
Referenced by ChildCount().
void QmitkLesionTreeItem::SetParent | ( | ParentPointer | parent | ) |
Set the parent item of this item.
parent | The new parent item of this item. |
Definition at line 24 of file QmitkLesionTreeItem.cpp.
Referenced by GetParent().