Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkLesionTreeModel Class Reference

#include <QmitkLesionTreeModel.h>

Inheritance diagram for QmitkLesionTreeModel:
Collaboration diagram for QmitkLesionTreeModel:

Public Member Functions

 QmitkLesionTreeModel (QObject *parent=nullptr)
 Initialize the root item of the model. The root item does not have a parent item. More...
 
QModelIndex index (int row, int column, const QModelIndex &itemIndex=QModelIndex()) const override
 
QModelIndex parent (const QModelIndex &itemIndex) const override
 
int rowCount (const QModelIndex &itemIndex=QModelIndex()) const override
 
int columnCount (const QModelIndex &itemIndex=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
const mitk::DataNodeGetLastSegmentation () const
 
- Public Member Functions inherited from QmitkAbstractSemanticRelationsStorageModel
 QmitkAbstractSemanticRelationsStorageModel (QObject *parent=nullptr)
 
 ~QmitkAbstractSemanticRelationsStorageModel () override
 
void Update (const mitk::SemanticTypes::CaseID &caseID) override
 
void SetCaseID (const mitk::SemanticTypes::CaseID &caseID)
 Set the current case ID which is needed to access the semantic relations storage. More...
 
const mitk::SemanticTypes::CaseIDGetCaseID () const
 
void SetLesion (const mitk::SemanticTypes::Lesion &lesion)
 Set the current lesion which can be used to show on which images the lesion is visible. More...
 
const mitk::SemanticTypes::LesionGetLesion () const
 
void SetDataNodeSelection (const QList< mitk::DataNode::Pointer > &dataNodeSelection)
 Set the current data node selection which can be used to show which lesions are visible on the node selection. More...
 
const QList< mitk::DataNode::Pointer > & GetSelectedDataNodes () const
 
void UpdateModelData ()
 
- Public Member Functions inherited from QmitkAbstractDataStorageModel
 ~QmitkAbstractDataStorageModel () override
 
void SetDataStorage (mitk::DataStorage *dataStorage)
 
mitk::DataStorage::Pointer GetDataStorage () const
 
void SetNodePredicate (const mitk::NodePredicateBase *nodePredicate)
 
const mitk::NodePredicateBaseGetNodePredicate () const
 

Protected Member Functions

void NodePredicateChanged () override
 
void NodeAdded (const mitk::DataNode *) override
 
void NodeChanged (const mitk::DataNode *) override
 
void NodeRemoved (const mitk::DataNode *) override
 
void SetData () override
 Overridden from 'QmitkAbstractSemanticRelationsStorageModel': This function retrieves all control points of the current case and stores them to define the header of the tree. Furthermore all lesions are retrieved and the lesion data is stored and show in the tree view. More...
 
- Protected Member Functions inherited from QmitkAbstractSemanticRelationsStorageModel
void DataStorageChanged () override
 Create a new 'SemanticRelationsDataStorageAccess' instance with the new data storage and update the model data. This functions is called inside the 'SetDataStorage'-function from the parent class. More...
 
- Protected Member Functions inherited from QmitkAbstractDataStorageModel
 QmitkAbstractDataStorageModel (QObject *parent=nullptr)
 
 QmitkAbstractDataStorageModel (mitk::DataStorage *dataStorage, QObject *parent=nullptr)
 

Additional Inherited Members

- Signals inherited from QmitkAbstractSemanticRelationsStorageModel
void ModelUpdated ()
 
- Protected Attributes inherited from QmitkAbstractSemanticRelationsStorageModel
std::unique_ptr< mitk::SemanticRelationsDataStorageAccessm_SemanticRelationsDataStorageAccess
 
std::unique_ptr< mitk::SemanticRelationsIntegrationm_SemanticRelationsIntegration
 
mitk::SemanticTypes::CaseID m_CaseID
 
QList< mitk::DataNode::Pointerm_SelectedDataNodes
 
mitk::SemanticTypes::Lesion m_Lesion
 
- Protected Attributes inherited from QmitkAbstractDataStorageModel
mitk::WeakPointer< mitk::DataStoragem_DataStorage
 
mitk::NodePredicateBase::ConstPointer m_NodePredicate
 

Detailed Description

Definition at line 37 of file QmitkLesionTreeModel.h.

Constructor & Destructor Documentation

◆ QmitkLesionTreeModel()

QmitkLesionTreeModel::QmitkLesionTreeModel ( QObject *  parent = nullptr)

Initialize the root item of the model. The root item does not have a parent item.

Member Function Documentation

◆ columnCount()

int QmitkLesionTreeModel::columnCount ( const QModelIndex &  itemIndex = QModelIndex()) const
override

◆ data()

QVariant QmitkLesionTreeModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override

◆ GetLastSegmentation()

const mitk::DataNode* QmitkLesionTreeModel::GetLastSegmentation ( ) const

◆ headerData()

QVariant QmitkLesionTreeModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
override

◆ index()

QModelIndex QmitkLesionTreeModel::index ( int  row,
int  column,
const QModelIndex &  itemIndex = QModelIndex() 
) const
override

◆ NodeAdded()

void QmitkLesionTreeModel::NodeAdded ( const mitk::DataNode )
overrideprotectedvirtual

◆ NodeChanged()

void QmitkLesionTreeModel::NodeChanged ( const mitk::DataNode )
inlineoverrideprotectedvirtual

Implements QmitkAbstractDataStorageModel.

Definition at line 71 of file QmitkLesionTreeModel.h.

◆ NodePredicateChanged()

void QmitkLesionTreeModel::NodePredicateChanged ( )
inlineoverrideprotectedvirtual

Implements QmitkAbstractDataStorageModel.

Definition at line 69 of file QmitkLesionTreeModel.h.

◆ NodeRemoved()

void QmitkLesionTreeModel::NodeRemoved ( const mitk::DataNode )
inlineoverrideprotectedvirtual

Implements QmitkAbstractDataStorageModel.

Definition at line 72 of file QmitkLesionTreeModel.h.

◆ parent()

QModelIndex QmitkLesionTreeModel::parent ( const QModelIndex &  itemIndex) const
override

◆ rowCount()

int QmitkLesionTreeModel::rowCount ( const QModelIndex &  itemIndex = QModelIndex()) const
override

◆ SetData()

void QmitkLesionTreeModel::SetData ( )
overrideprotectedvirtual

Overridden from 'QmitkAbstractSemanticRelationsStorageModel': This function retrieves all control points of the current case and stores them to define the header of the tree. Furthermore all lesions are retrieved and the lesion data is stored and show in the tree view.

Implements QmitkAbstractSemanticRelationsStorageModel.


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