Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
#include <QmitkAbstractSemanticRelationsStorageModel.h>
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::CaseID & | GetCaseID () 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::Lesion & | GetLesion () 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::NodePredicateBase * | GetNodePredicate () 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::SemanticRelationsDataStorageAccess > | m_SemanticRelationsDataStorageAccess |
std::unique_ptr< mitk::SemanticRelationsIntegration > | m_SemanticRelationsIntegration |
mitk::SemanticTypes::CaseID | m_CaseID |
QList< mitk::DataNode::Pointer > | m_SelectedDataNodes |
mitk::SemanticTypes::Lesion | m_Lesion |
Protected Attributes inherited from QmitkAbstractDataStorageModel | |
mitk::WeakPointer< mitk::DataStorage > | m_DataStorage |
mitk::NodePredicateBase::ConstPointer | m_NodePredicate |
Definition at line 32 of file QmitkAbstractSemanticRelationsStorageModel.h.
QmitkAbstractSemanticRelationsStorageModel::QmitkAbstractSemanticRelationsStorageModel | ( | QObject * | parent = nullptr | ) |
|
override |
|
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.
|
inline |
Definition at line 60 of file QmitkAbstractSemanticRelationsStorageModel.h.
|
inline |
Definition at line 68 of file QmitkAbstractSemanticRelationsStorageModel.h.
|
inline |
Definition at line 77 of file QmitkAbstractSemanticRelationsStorageModel.h.
|
signal |
void QmitkAbstractSemanticRelationsStorageModel::SetCaseID | ( | const mitk::SemanticTypes::CaseID & | caseID | ) |
Set the current case ID which is needed to access the semantic relations storage.
caseID | A case ID as string |
|
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.
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.
dataNodeSelection | The selected data nodes |
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.
lesion | The selected lesion |
|
overridevirtual |
Implements mitk::ISemanticRelationsObserver.
void QmitkAbstractSemanticRelationsStorageModel::UpdateModelData | ( | ) |
|
protected |
Definition at line 106 of file QmitkAbstractSemanticRelationsStorageModel.h.
|
protected |
Definition at line 108 of file QmitkAbstractSemanticRelationsStorageModel.h.
|
protected |
Definition at line 107 of file QmitkAbstractSemanticRelationsStorageModel.h.
|
protected |
Definition at line 103 of file QmitkAbstractSemanticRelationsStorageModel.h.
|
protected |
Definition at line 104 of file QmitkAbstractSemanticRelationsStorageModel.h.