13 #ifndef QmitkIsoDoseLevelSetModel_h
14 #define QmitkIsoDoseLevelSetModel_h
16 #include <QAbstractTableModel>
41 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
42 QVariant data(
const QModelIndex &index,
int role)
const override;
43 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
44 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
45 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
46 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole)
override;
48 bool getShowAbsoluteDose()
const;
51 bool getVisibilityEditOnly()
const;
53 void switchVisibilityIsoLines(
bool activate);
54 void switchVisibilityColorWash(
bool activate);
55 void invertVisibilityIsoLines();
56 void invertVisibilityColorWash();
57 void swapVisibility();
60 void deleteLevel(
const QModelIndex &index);
69 void setReferenceDose(
double newReferenceDose);
73 void setShowAbsoluteDose(
bool showAbsoluteDose);
78 void setVisibilityEditOnly(
bool onlyVisibility);
81 mitk::IsoDoseLevelSet::Pointer m_DoseSet;
83 bool m_showAbsoluteDose;
84 bool m_visibilityEditOnly;