Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
The QmitkPatientTableModel is a subclass of the QmitkAbstractSemanticRelationsStorageModel and holds the semantic relations data of the currently selected case. More...
#include <QmitkPatientTableModel.h>
Public Member Functions | |
QmitkPatientTableModel (QObject *parent=nullptr) | |
~QmitkPatientTableModel () override | |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
QModelIndex | parent (const QModelIndex &child) const override |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
int | columnCount (const QModelIndex &parent=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 |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
void | SetNodeType (const std::string &nodeType) |
end override More... | |
![]() | |
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 () |
![]() | |
~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 | 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 and information types of the current case and stores them to define the header of the table. Furthermore all images are retrieved and the pixmap of the images are generated and stored. More... | |
![]() | |
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... | |
![]() | |
QmitkAbstractDataStorageModel (QObject *parent=nullptr) | |
QmitkAbstractDataStorageModel (mitk::DataStorage *dataStorage, QObject *parent=nullptr) | |
Additional Inherited Members | |
![]() | |
void | ModelUpdated () |
![]() | |
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 |
![]() | |
mitk::WeakPointer< mitk::DataStorage > | m_DataStorage |
mitk::NodePredicateBase::ConstPointer | m_NodePredicate |
The QmitkPatientTableModel is a subclass of the QmitkAbstractSemanticRelationsStorageModel and holds the semantic relations data of the currently selected case.
The QmitkPatientTableModel uses the 'data' function to return either the data node of a table cell or the thumbnail of the underlying image. The horizontal header of the table shows the control points of the current case and the vertical header of the table shows the information types of the current case. Using the 'GetFilteredData'-function of the SemanticRelations-class the model is able to retrieve the correct data node for each table entry.
Additionally the model creates and holds the QPixmaps of the known data nodes in order to return a thumbnail, if needed.
Definition at line 39 of file QmitkPatientTableModel.h.
QmitkPatientTableModel::QmitkPatientTableModel | ( | QObject * | parent = nullptr | ) |
Definition at line 35 of file QmitkPatientTableModel.cpp.
|
override |
Definition at line 42 of file QmitkPatientTableModel.cpp.
|
override |
Definition at line 72 of file QmitkPatientTableModel.cpp.
|
override |
Definition at line 82 of file QmitkPatientTableModel.cpp.
References QmitkPatientTableHeaderView::HorizontalHeaderDataRole, QmitkDataNodeRawPointerRole, and QmitkDataNodeRole.
Referenced by QmitkPatientTableInspector::Initialize().
|
override |
Definition at line 154 of file QmitkPatientTableModel.cpp.
|
override |
Definition at line 140 of file QmitkPatientTableModel.cpp.
|
override |
Definition at line 47 of file QmitkPatientTableModel.cpp.
Referenced by SetData().
|
inlineoverrideprotectedvirtual |
Implements QmitkAbstractDataStorageModel.
Definition at line 72 of file QmitkPatientTableModel.h.
|
inlineoverrideprotectedvirtual |
Implements QmitkAbstractDataStorageModel.
Definition at line 73 of file QmitkPatientTableModel.h.
|
overrideprotectedvirtual |
Implements QmitkAbstractDataStorageModel.
Definition at line 172 of file QmitkPatientTableModel.cpp.
References QmitkAbstractSemanticRelationsStorageModel::UpdateModelData().
|
inlineoverrideprotectedvirtual |
Implements QmitkAbstractDataStorageModel.
Definition at line 74 of file QmitkPatientTableModel.h.
References SetData().
|
override |
Definition at line 57 of file QmitkPatientTableModel.cpp.
|
override |
Definition at line 62 of file QmitkPatientTableModel.cpp.
|
overrideprotectedvirtual |
Overridden from 'QmitkAbstractSemanticRelationsStorageModel': This function retrieves all control points and information types of the current case and stores them to define the header of the table. Furthermore all images are retrieved and the pixmap of the images are generated and stored.
Implements QmitkAbstractSemanticRelationsStorageModel.
Definition at line 177 of file QmitkPatientTableModel.cpp.
References mitk::RelationStorage::GetAllExaminationPeriodsOfCase(), mitk::RelationStorage::GetAllInformationTypesOfCase(), mitk::GetControlPointByUID(), QmitkSemanticRelationsUIHelper::GetPixmapFromImageNode(), index(), mitk::SemanticRelationsInference::InstanceExists(), mitk::SemanticRelationsInference::IsLesionPresent(), QmitkAbstractSemanticRelationsStorageModel::m_CaseID, QmitkAbstractSemanticRelationsStorageModel::m_Lesion, QmitkAbstractSemanticRelationsStorageModel::m_SemanticRelationsDataStorageAccess, mitk::RelationStorage::RenameExaminationPeriod(), and mitk::SortAllExaminationPeriods().
Referenced by NodeRemoved().
void QmitkPatientTableModel::SetNodeType | ( | const std::string & | nodeType | ) |
end override
Definition at line 166 of file QmitkPatientTableModel.cpp.
References QmitkAbstractSemanticRelationsStorageModel::UpdateModelData().
Referenced by QmitkPatientTableInspector::Initialize().