17#include <boost/optional.hpp>
22class CompositeFunction;
29namespace MantidWidgets {
31class FunctionTreeView;
32class FunctionMultiDomainPresenter;
45 const std::vector<std::string> &categories = std::vector<std::string>());
49 void clear()
override;
51 void setFunction(
const QString &funStr)
override;
55 QString getFunctionString()
override;
59 bool hasFunction()
const;
63 boost::optional<QString> currentFunctionIndex();
65 void setParameter(
const QString ¶mName,
double value);
67 void setParameterError(
const QString ¶mName,
double error);
69 double getParameter(
const QString ¶mName)
const;
71 void updateParameters(
const IFunction &fun)
override;
73 QStringList getGlobalParameters()
const;
74 void setGlobalParameters(
const QStringList &globals);
76 QStringList getLocalParameters()
const;
78 int getNumberOfDatasets()
const override;
80 QStringList getDatasetNames()
const override;
82 QStringList getDatasetDomainNames()
const override;
84 double getLocalParameterValue(
const QString &parName,
int i)
const override;
86 void setLocalParameterValue(
const QString &parName,
int i,
double value)
override;
88 void setLocalParameterValue(
const QString &parName,
int i,
double value,
double error);
90 double getLocalParameterError(
const QString &parName,
int i)
const;
92 bool isLocalParameterFixed(
const QString &parName,
int i)
const override;
94 void setLocalParameterFixed(
const QString &parName,
int i,
bool fixed)
override;
96 QString getLocalParameterTie(
const QString &parName,
int i)
const override;
98 void setLocalParameterTie(
const QString &parName,
int i, QString tie)
override;
102 void updateMultiDatasetParameters(
const IFunction &fun)
override;
104 void updateMultiDatasetAttributes(
const IFunction &fun);
107 void updateMultiDatasetParameters(
const ITableWorkspace ¶mTable)
override;
109 int getCurrentDataset()
const override;
111 void setColumnSizes(
int s0,
int s1,
int s2 = -1);
113 void setStretchLastColumn(
bool stretch);
115 void setErrorsEnabled(
bool enabled)
override;
117 void clearErrors()
override;
119 void setBackgroundA0(
double value);
121 void hideGlobalCheckbox();
123 void showGlobalCheckbox();
139 void setNumberOfDatasets(
int n)
override;
140 void setDatasets(
const QStringList &datasetNames)
override;
142 void resetLocalParameters();
143 void setCurrentDataset(
int i)
override;
144 void removeDatasets(
const QList<int> &indices);
145 void addDatasets(
const QStringList &names);
153 QString getFitFunctionString()
const;
#define EXPORT_OPT_MANTIDQT_COMMON
double value
The value of the point.
std::map< DeltaEMode::Type, std::string > index
This is an interface to a fitting function - a semi-abstarct class.
ITableWorkspace is an implementation of Workspace in which the data are organised in columns of same ...
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class
Helper class which provides the Collimation Length for SANS instruments.