|
Medical Imaging Interaction Toolkit
2018.4.99-389bf124
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 * | 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 | ) |
Definition at line 18 of file QmitkAbstractSemanticRelationsStorageModel.cpp.
References m_SemanticRelationsIntegration.
|
override |
Definition at line 26 of file QmitkAbstractSemanticRelationsStorageModel.cpp.
References m_SemanticRelationsIntegration.
|
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.
Definition at line 77 of file QmitkAbstractSemanticRelationsStorageModel.cpp.
References mitk::WeakPointer< T >::Lock(), QmitkAbstractDataStorageModel::m_DataStorage, m_SemanticRelationsDataStorageAccess, and UpdateModelData().
|
inline |
Definition at line 60 of file QmitkAbstractSemanticRelationsStorageModel.h.
|
inline |
Definition at line 68 of file QmitkAbstractSemanticRelationsStorageModel.h.
Referenced by QmitkPatientTableInspector::Initialize().
|
inline |
Definition at line 77 of file QmitkAbstractSemanticRelationsStorageModel.h.
References QmitkAbstractDataStorageModel::DataStorageChanged().
|
signal |
Referenced by QmitkPatientTableInspector::Initialize(), and UpdateModelData().
| 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 |
Definition at line 43 of file QmitkAbstractSemanticRelationsStorageModel.cpp.
References m_CaseID, and UpdateModelData().
Referenced by QmitkPatientTableInspector::SetCaseID().
|
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(), QmitkLesionTreeModel::NodeRemoved(), and UpdateModelData().
| 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 |
Definition at line 55 of file QmitkAbstractSemanticRelationsStorageModel.cpp.
References m_SelectedDataNodes, and UpdateModelData().
| 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 |
Definition at line 49 of file QmitkAbstractSemanticRelationsStorageModel.cpp.
References m_Lesion, and UpdateModelData().
Referenced by QmitkPatientTableInspector::Initialize(), and QmitkPatientTableInspector::SetLesion().
|
overridevirtual |
Implements mitk::ISemanticRelationsObserver.
Definition at line 34 of file QmitkAbstractSemanticRelationsStorageModel.cpp.
References m_CaseID, and UpdateModelData().
| void QmitkAbstractSemanticRelationsStorageModel::UpdateModelData | ( | ) |
Definition at line 61 of file QmitkAbstractSemanticRelationsStorageModel.cpp.
References m_SemanticRelationsDataStorageAccess, ModelUpdated(), and SetData().
Referenced by QmitkStatisticsTreeModel::DataStorageChanged(), DataStorageChanged(), QmitkStatisticsTreeModel::NodeAdded(), QmitkStatisticsTreeModel::NodeChanged(), QmitkPatientTableModel::NodePredicateChanged(), QmitkStatisticsTreeModel::NodeRemoved(), SetCaseID(), SetDataNodeSelection(), SetLesion(), QmitkPatientTableModel::SetNodeType(), and Update().
|
protected |
Definition at line 106 of file QmitkAbstractSemanticRelationsStorageModel.h.
Referenced by SetCaseID(), QmitkStatisticsTreeModel::SetData(), QmitkLesionTreeModel::SetData(), QmitkPatientTableModel::SetData(), and Update().
|
protected |
Definition at line 108 of file QmitkAbstractSemanticRelationsStorageModel.h.
Referenced by QmitkPatientTableModel::SetData(), and SetLesion().
|
protected |
Definition at line 107 of file QmitkAbstractSemanticRelationsStorageModel.h.
Referenced by QmitkLesionTreeModel::SetData(), and SetDataNodeSelection().
|
protected |
Definition at line 103 of file QmitkAbstractSemanticRelationsStorageModel.h.
Referenced by QmitkStatisticsTreeModel::DataStorageChanged(), DataStorageChanged(), QmitkPatientTableModel::SetData(), and UpdateModelData().
|
protected |
Definition at line 104 of file QmitkAbstractSemanticRelationsStorageModel.h.
Referenced by QmitkAbstractSemanticRelationsStorageModel(), and ~QmitkAbstractSemanticRelationsStorageModel().