Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef QmitkPatientTableModel_h
14 #define QmitkPatientTableModel_h
28 #include <QStandardItemModel>
51 QModelIndex
index(
int row,
int column,
const QModelIndex&
parent = QModelIndex())
const override;
52 QModelIndex
parent(
const QModelIndex& child)
const override;
54 int rowCount(
const QModelIndex&
parent = QModelIndex())
const override;
57 QVariant
data(
const QModelIndex&
index,
int role = Qt::DisplayRole)
const override;
59 QVariant
headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
60 Qt::ItemFlags
flags(
const QModelIndex&
index)
const override;
84 void SetHeaderModel();
86 void SetLesionPresences();
96 void SetPixmapOfNode(
const mitk::DataNode* dataNode, QPixmap* pixmapFromImage);
106 void SetLesionPresenceOfNode(
const mitk::DataNode* dataNode,
bool lesionPresence);
118 std::map<mitk::DataNode::ConstPointer, QPixmap> m_PixmapMap;
119 std::map<mitk::DataNode::ConstPointer, bool> m_LesionPresence;
124 std::string m_SelectedNodeType;
126 QStandardItemModel* m_HeaderModel;
QmitkPatientTableModel(QObject *parent=nullptr)
~QmitkPatientTableModel() override
void NodePredicateChanged() override
int columnCount(const QModelIndex &parent=QModelIndex()) const override
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
void SetNodeType(const std::string &nodeType)
end override
int rowCount(const QModelIndex &parent=QModelIndex()) const override
std::vector< InformationType > InformationTypeVector
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
void SetData() override
Overridden from 'QmitkAbstractSemanticRelationsStorageModel': This function retrieves all control poi...
void NodeRemoved(const mitk::DataNode *) override
QModelIndex parent(const QModelIndex &child) const override
void NodeAdded(const mitk::DataNode *) override
The QmitkPatientTableModel is a subclass of the QmitkAbstractSemanticRelationsStorageModel and holds ...
Qt::ItemFlags flags(const QModelIndex &index) const override
void NodeChanged(const mitk::DataNode *) override
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
std::vector< DataNode::Pointer > DataNodeVector
std::vector< ExaminationPeriod > ExaminationPeriodVector
Class for nodes of the DataTree.