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;
55 int columnCount(
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);
116 mitk::DataNode* GetCurrentDataNode(
const QModelIndex &index)
const;
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;
129 #endif // QMITKPATIENTTABLEMODEL_H void NodePredicateChanged() override
QmitkPatientTableModel(QObject *parent=nullptr)
int columnCount(const QModelIndex &parent=QModelIndex()) const override
std::vector< DataNode::Pointer > DataNodeVector
void SetNodeType(const std::string &nodeType)
end override
void NodeRemoved(const mitk::DataNode *) override
void SetData() override
Overridden from 'QmitkAbstractSemanticRelationsStorageModel': This function retrieves all control poi...
QModelIndex parent(const QModelIndex &child) const override
int rowCount(const QModelIndex &parent=QModelIndex()) const override
void NodeChanged(const mitk::DataNode *) override
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
~QmitkPatientTableModel() override
void NodeAdded(const mitk::DataNode *) override
Qt::ItemFlags flags(const QModelIndex &index) const override
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
std::vector< InformationType > InformationTypeVector
The QmitkPatientTableModel is a subclass of the QmitkAbstractSemanticRelationsStorageModel and holds ...
std::vector< ExaminationPeriod > ExaminationPeriodVector
Class for nodes of the DataTree.
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override