Medical Imaging Interaction Toolkit  2022.04.99-b2814023
Medical Imaging Interaction Toolkit
QmitkAbstractSemanticRelationsStorageModel Class Referenceabstract

#include <QmitkAbstractSemanticRelationsStorageModel.h>

Inheritance diagram for QmitkAbstractSemanticRelationsStorageModel:
Collaboration diagram for QmitkAbstractSemanticRelationsStorageModel:

Signals

void ModelUpdated ()
 

Public Member Functions

 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 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...
 
virtual void SetData ()=0
 This function is called if the model data is updated. It can be used by subclasses to define the way the data of a specific model is generated. It typically consists of access to the semantic relations storage to retrieve certain information. More...
 
- Protected Member Functions inherited from QmitkAbstractDataStorageModel
virtual void NodePredicateChanged ()=0
 
virtual void NodeAdded (const mitk::DataNode *node)=0
 
virtual void NodeChanged (const mitk::DataNode *node)=0
 
virtual void NodeRemoved (const mitk::DataNode *node)=0
 
 QmitkAbstractDataStorageModel (QObject *parent=nullptr)
 
 QmitkAbstractDataStorageModel (mitk::DataStorage *dataStorage, QObject *parent=nullptr)
 

Protected Attributes

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 32 of file QmitkAbstractSemanticRelationsStorageModel.h.

Constructor & Destructor Documentation

◆ QmitkAbstractSemanticRelationsStorageModel()

QmitkAbstractSemanticRelationsStorageModel::QmitkAbstractSemanticRelationsStorageModel ( QObject *  parent = nullptr)

◆ ~QmitkAbstractSemanticRelationsStorageModel()

QmitkAbstractSemanticRelationsStorageModel::~QmitkAbstractSemanticRelationsStorageModel ( )
override

Member Function Documentation

◆ DataStorageChanged()

void QmitkAbstractSemanticRelationsStorageModel::DataStorageChanged ( )
overrideprotectedvirtual

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.

Implements QmitkAbstractDataStorageModel.

Reimplemented in QmitkStatisticsTreeModel.

◆ GetCaseID()

const mitk::SemanticTypes::CaseID& QmitkAbstractSemanticRelationsStorageModel::GetCaseID ( ) const
inline

Definition at line 60 of file QmitkAbstractSemanticRelationsStorageModel.h.

◆ GetLesion()

const mitk::SemanticTypes::Lesion& QmitkAbstractSemanticRelationsStorageModel::GetLesion ( ) const
inline

Definition at line 68 of file QmitkAbstractSemanticRelationsStorageModel.h.

◆ GetSelectedDataNodes()

const QList<mitk::DataNode::Pointer>& QmitkAbstractSemanticRelationsStorageModel::GetSelectedDataNodes ( ) const
inline

◆ ModelUpdated

void QmitkAbstractSemanticRelationsStorageModel::ModelUpdated ( )
signal

◆ SetCaseID()

void QmitkAbstractSemanticRelationsStorageModel::SetCaseID ( const mitk::SemanticTypes::CaseID caseID)

Set the current case ID which is needed to access the semantic relations storage.

Parameters
caseIDA case ID as string

◆ SetData()

virtual void QmitkAbstractSemanticRelationsStorageModel::SetData ( )
protectedpure virtual

This function is called if the model data is updated. It can be used by subclasses to define the way the data of a specific model is generated. It typically consists of access to the semantic relations storage to retrieve certain information.

Implemented in QmitkPatientTableModel, QmitkLesionTreeModel, and QmitkStatisticsTreeModel.

Referenced by QmitkStatisticsTreeModel::NodePredicateChanged(), and QmitkLesionTreeModel::NodeRemoved().

◆ SetDataNodeSelection()

void QmitkAbstractSemanticRelationsStorageModel::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.

Parameters
dataNodeSelectionThe selected data nodes

◆ SetLesion()

void QmitkAbstractSemanticRelationsStorageModel::SetLesion ( const mitk::SemanticTypes::Lesion lesion)

Set the current lesion which can be used to show on which images the lesion is visible.

Parameters
lesionThe selected lesion

◆ Update()

void QmitkAbstractSemanticRelationsStorageModel::Update ( const mitk::SemanticTypes::CaseID caseID)
overridevirtual

◆ UpdateModelData()

void QmitkAbstractSemanticRelationsStorageModel::UpdateModelData ( )

Member Data Documentation

◆ m_CaseID

mitk::SemanticTypes::CaseID QmitkAbstractSemanticRelationsStorageModel::m_CaseID
protected

◆ m_Lesion

mitk::SemanticTypes::Lesion QmitkAbstractSemanticRelationsStorageModel::m_Lesion
protected

◆ m_SelectedDataNodes

QList<mitk::DataNode::Pointer> QmitkAbstractSemanticRelationsStorageModel::m_SelectedDataNodes
protected

◆ m_SemanticRelationsDataStorageAccess

std::unique_ptr<mitk::SemanticRelationsDataStorageAccess> QmitkAbstractSemanticRelationsStorageModel::m_SemanticRelationsDataStorageAccess
protected

◆ m_SemanticRelationsIntegration

std::unique_ptr<mitk::SemanticRelationsIntegration> QmitkAbstractSemanticRelationsStorageModel::m_SemanticRelationsIntegration
protected

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