Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkLesionTreeItem Class Reference

#include <QmitkLesionTreeItem.h>

Inheritance diagram for QmitkLesionTreeItem:
Collaboration diagram for QmitkLesionTreeItem:

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::LesionDataGetData ()
 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...
 
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...
 

Detailed Description

Definition at line 34 of file QmitkLesionTreeItem.h.

Member Typedef Documentation

◆ ChildConstPointer

Definition at line 39 of file QmitkLesionTreeItem.h.

◆ ChildPointer

Definition at line 38 of file QmitkLesionTreeItem.h.

◆ ParentPointer

Definition at line 40 of file QmitkLesionTreeItem.h.

Constructor & Destructor Documentation

◆ QmitkLesionTreeItem()

QmitkLesionTreeItem::QmitkLesionTreeItem ( mitk::LesionData  lesionData = mitk::LesionData())

Member Function Documentation

◆ AddChild()

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.

Parameters
childThe child item to add to this item.

◆ ChildCount()

size_t QmitkLesionTreeItem::ChildCount ( ) const
inline

Return the number of child items.

Returns
Number of child items.

Definition at line 89 of file QmitkLesionTreeItem.h.

◆ GetChildInRow()

ChildPointer QmitkLesionTreeItem::GetChildInRow ( int  row) const
inline

Return the child of this item at a specific position.

Parameters
rowDetermines the position of a child item to return.
Returns
The child of this item at a specific position.

Definition at line 51 of file QmitkLesionTreeItem.h.

◆ GetData()

mitk::LesionData& QmitkLesionTreeItem::GetData ( )
inline

Return the item data, which contains ...

see mitk::LesionItemData

Definition at line 69 of file QmitkLesionTreeItem.h.

◆ GetParent()

ParentPointer QmitkLesionTreeItem::GetParent ( ) const
inline

Return the parent item.

Returns
The parent item as std::weak_ptr.

Definition at line 57 of file QmitkLesionTreeItem.h.

◆ GetRow()

int QmitkLesionTreeItem::GetRow ( ) const

Get the row of this item relative to its parent item using 'GetRowOfChild'.

Returns
The row of this item relative to its parent item.

◆ GetRowOfChild()

int QmitkLesionTreeItem::GetRowOfChild ( ChildConstPointer  child) const

Get the row of the given child item relative to this item.

Parameters
childThe child item whose row is to be determined.
Returns
The row of the child item.

◆ RemoveChild()

void QmitkLesionTreeItem::RemoveChild ( ChildPointer  child)

Remove a child from the list of children of this item.

Parameters
childThe child item to remove from this item.

◆ SetData()

void QmitkLesionTreeItem::SetData ( const mitk::LesionData lesionData)

Set the item data of this item.

Parameters
lesionDataLesionData that provides information about this item.

◆ SetParent()

void QmitkLesionTreeItem::SetParent ( ParentPointer  parent)

Set the parent item of this item.

Parameters
parentThe new parent item of this item.

The documentation for this class was generated from the following file: