13 #ifndef QmitkFitPlotDataModel_h
14 #define QmitkFitPlotDataModel_h
16 #include <QAbstractTableModel>
30 using FitVectorType = std::vector<mitk::modelFit::ModelFitInfo::ConstPointer>;
36 const std::string& GetXName()
const;
38 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
39 QVariant data(
const QModelIndex& index,
int role)
const override;
40 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
41 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
42 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
43 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole)
override;
48 void SetXName(
const std::string& xName);
51 std::pair<std::string, const mitk::PlotDataCurve*> GetCurveByColumn(
int col)
const;
52 std::pair<bool, mitk::ModelFitPlotData::PositionalCollectionMap::value_type> GetPositionalCurvePoint(
const mitk::PlotDataCurve*)
const;