Mantid
Loading...
Searching...
No Matches
IFunctionBrowser.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2016 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include "DllOption.h"
10
14
15#include <QList>
16#include <QPair>
17#include <QString>
18#include <QStringList>
19
20namespace MantidQt {
21namespace MantidWidgets {
22
28public:
29 virtual ~IFunctionBrowser() = default;
30 virtual QString getFunctionString() = 0;
31 virtual void updateParameters(const Mantid::API::IFunction &fun) = 0;
32 virtual void clear() = 0;
33 virtual void setErrorsEnabled(bool enabled) = 0;
34 virtual void clearErrors() = 0;
35 virtual void setFunction(const QString &funStr) = 0;
36 virtual void setNumberOfDatasets(int n) = 0;
37 virtual void setDatasets(const QStringList &datasetNames) = 0;
38 virtual void setDatasets(const QList<FunctionModelDataset> &datasets) = 0;
42 virtual bool isLocalParameterFixed(const QString &parName, int i) const = 0;
43 virtual double getLocalParameterValue(const QString &parName, int i) const = 0;
44 virtual QString getLocalParameterTie(const QString &parName, int i) const = 0;
45 virtual int getNumberOfDatasets() const = 0;
46 virtual QStringList getDatasetNames() const = 0;
47 virtual QStringList getDatasetDomainNames() const = 0;
48 virtual void setLocalParameterValue(const QString &parName, int i, double value) = 0;
49 virtual void setLocalParameterFixed(const QString &parName, int i, bool fixed) = 0;
50 virtual void setLocalParameterTie(const QString &parName, int i, QString tie) = 0;
51 virtual void setCurrentDataset(int i) = 0;
52 virtual int getCurrentDataset() const = 0;
53};
54
55} // namespace MantidWidgets
56} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
double value
The value of the point.
Definition: FitMW.cpp:51
IFunctionBrowser: interface for FunctionBrowser.
virtual void setLocalParameterValue(const QString &parName, int i, double value)=0
virtual int getNumberOfDatasets() const =0
virtual void setFunction(const QString &funStr)=0
virtual void setDatasets(const QStringList &datasetNames)=0
virtual void updateMultiDatasetParameters(const Mantid::API::IFunction &fun)=0
virtual void setLocalParameterTie(const QString &parName, int i, QString tie)=0
virtual int getCurrentDataset() const =0
virtual void updateParameters(const Mantid::API::IFunction &fun)=0
virtual void setErrorsEnabled(bool enabled)=0
virtual QString getLocalParameterTie(const QString &parName, int i) const =0
virtual void updateMultiDatasetParameters(const Mantid::API::ITableWorkspace &paramTable)=0
virtual void setDatasets(const QList< FunctionModelDataset > &datasets)=0
virtual void setLocalParameterFixed(const QString &parName, int i, bool fixed)=0
virtual Mantid::API::IFunction_sptr getGlobalFunction()=0
virtual QStringList getDatasetDomainNames() const =0
virtual bool isLocalParameterFixed(const QString &parName, int i) const =0
virtual QStringList getDatasetNames() const =0
virtual double getLocalParameterValue(const QString &parName, int i) const =0
This is an interface to a fitting function - a semi-abstarct class.
Definition: IFunction.h:163
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
Definition: IFunction.h:732