13 #ifndef QmitkFitParameterModel_h
14 #define QmitkFitParameterModel_h
16 #include <QAbstractTableModel>
35 using FitVectorType = std::vector<mitk::modelFit::ModelFitInfo::ConstPointer>;
40 const FitVectorType& getFits()
const;
46 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
47 QVariant data(
const QModelIndex& index,
int role)
const override;
48 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
49 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
50 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
51 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole)
override;
55 void setFits(
const FitVectorType& fits);
64 std::size_t getBookmarksCount()
const;
68 bool hasSingleFit()
const;