Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MantidQt::MantidWidgets::FitScriptGeneratorModel Class Reference

This class stores the domain and fit data to be fitted to. More...

#include <FitScriptGeneratorModel.h>

Inheritance diagram for MantidQt::MantidWidgets::FitScriptGeneratorModel:
MantidQt::MantidWidgets::IFitScriptGeneratorModel

Public Member Functions

void addFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function) override
 
void addWorkspaceDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX, double endX) override
 
 FitScriptGeneratorModel ()
 
 FitScriptGeneratorModel (FitScriptGeneratorModel const &model)=delete
 
std::string generatePythonFitScript (std::tuple< std::string, std::string, std::string, std::string, std::string, bool > const &fitOptions, std::string const &filepath="") override
 
std::string getAdjustedFunctionIndex (std::string const &parameter) const override
 
std::string getDomainName (FitDomainIndex domainIndex) const override
 
std::string getEquivalentFunctionIndexForDomain (FitDomainIndex domainIndex, std::string const &functionIndex) const override
 
std::string getEquivalentFunctionIndexForDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &functionIndex) const override
 
std::string getEquivalentParameterTieForDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, std::string const &fullTie) const override
 
FittingMode getFittingMode () const noexcept override
 
std::string getFullParameter (FitDomainIndex domainIndex, std::string const &parameter) const override
 
std::string getFullTie (FitDomainIndex domainIndex, std::string const &tie) const override
 
Mantid::API::IFunction_sptr getFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex) const override
 
std::vector< GlobalParametergetGlobalParameters () const noexcept override
 
std::vector< GlobalTiegetGlobalTies () const noexcept override
 
std::string getParameterConstraint (FitDomainIndex domainIndex, std::string const &fullParameter) const override
 
std::string getParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter) const override
 
double getParameterValue (FitDomainIndex domainIndex, std::string const &fullParameter) const override
 
bool hasParameter (FitDomainIndex domainIndex, std::string const &fullParameter) const override
 
bool hasWorkspaceDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex) const override
 
bool isParameterFixed (FitDomainIndex domainIndex, std::string const &fullParameter) const override
 
bool isSimultaneousMode () const override
 
std::tuple< bool, std::string > isValid () const override
 
std::size_t numberOfDomains () const noexcept override
 
FitScriptGeneratorModeloperator= (FitScriptGeneratorModel const &model)=delete
 
void removeDomain (FitDomainIndex domainIndex) override
 
void removeFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function) override
 
void removeParameterConstraint (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter) override
 
void renameWorkspace (std::string const &workspaceName, std::string const &newName) override
 
void setFittingMode (FittingMode fittingMode) override
 
void setFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function) override
 
void setGlobalParameters (std::vector< std::string > const &parameters) override
 
void setOutputBaseName (std::string const &outputBaseName) override
 
void setParameterConstraint (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &constraint) override
 
void setParameterFixed (FitDomainIndex domainIndex, std::string const &fullParameter, bool fix) override
 
void setParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &tie) override
 
void setParameterValue (FitDomainIndex domainIndex, std::string const &fullParameter, double value) override
 
void subscribePresenter (IFitScriptGeneratorPresenter *presenter) override
 
void updateAttributeValue (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullAttribute, Mantid::API::IFunction::Attribute const &newValue) override
 
bool updateEndX (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double endX) override
 
void updateParameterConstraint (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &functionIndex, std::string const &constraint) override
 
void updateParameterTie (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, std::string const &tie) override
 
void updateParameterValue (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, double newValue) override
 
bool updateStartX (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX) override
 
 ~FitScriptGeneratorModel ()
 
- Public Member Functions inherited from MantidQt::MantidWidgets::IFitScriptGeneratorModel
virtual void addFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function)=0
 
virtual void addWorkspaceDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX, double endX)=0
 
virtual std::string generatePythonFitScript (std::tuple< std::string, std::string, std::string, std::string, std::string, bool > const &fitOptions, std::string const &filepath="")=0
 
virtual std::string getAdjustedFunctionIndex (std::string const &parameter) const =0
 
virtual std::string getDomainName (FitDomainIndex domainIndex) const =0
 
virtual std::string getEquivalentFunctionIndexForDomain (FitDomainIndex domainIndex, std::string const &functionIndex) const =0
 
virtual std::string getEquivalentFunctionIndexForDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &functionIndex) const =0
 
virtual std::string getEquivalentParameterTieForDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, std::string const &fullTie) const =0
 
virtual FittingMode getFittingMode () const =0
 
virtual std::string getFullParameter (FitDomainIndex domainIndex, std::string const &parameter) const =0
 
virtual std::string getFullTie (FitDomainIndex domainIndex, std::string const &tie) const =0
 
virtual Mantid::API::IFunction_sptr getFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex) const =0
 
virtual std::vector< GlobalParametergetGlobalParameters () const =0
 
virtual std::vector< GlobalTiegetGlobalTies () const =0
 
virtual std::string getParameterConstraint (FitDomainIndex domainIndex, std::string const &fullParameter) const =0
 
virtual std::string getParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter) const =0
 
virtual double getParameterValue (FitDomainIndex domainIndex, std::string const &fullParameter) const =0
 
virtual bool hasParameter (FitDomainIndex domainIndex, std::string const &fullParameter) const =0
 
virtual bool hasWorkspaceDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex) const =0
 
virtual bool isParameterFixed (FitDomainIndex domainIndex, std::string const &fullParameter) const =0
 
virtual bool isSimultaneousMode () const =0
 
virtual std::tuple< bool, std::string > isValid () const =0
 
virtual std::size_t numberOfDomains () const =0
 
virtual void removeDomain (FitDomainIndex domainIndex)=0
 
virtual void removeFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function)=0
 
virtual void removeParameterConstraint (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter)=0
 
virtual void renameWorkspace (std::string const &workspaceName, std::string const &newName)=0
 
virtual void setFittingMode (FittingMode fittingMode)=0
 
virtual void setFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function)=0
 
virtual void setGlobalParameters (std::vector< std::string > const &parameters)=0
 
virtual void setOutputBaseName (std::string const &outputBaseName)=0
 
virtual void setParameterConstraint (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &constraint)=0
 
virtual void setParameterFixed (FitDomainIndex domainIndex, std::string const &fullParameter, bool fix)=0
 
virtual void setParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &tie)=0
 
virtual void setParameterValue (FitDomainIndex domainIndex, std::string const &fullParameter, double value)=0
 
virtual void subscribePresenter (IFitScriptGeneratorPresenter *presenter)=0
 
virtual void updateAttributeValue (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullAttribute, Mantid::API::IFunction::Attribute const &newValue)=0
 
virtual bool updateEndX (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double endX)=0
 
virtual void updateParameterConstraint (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &functionIndex, std::string const &constraint)=0
 
virtual void updateParameterTie (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, std::string const &tie)=0
 
virtual void updateParameterValue (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, double newValue)=0
 
virtual bool updateStartX (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX)=0
 
virtual ~IFitScriptGeneratorModel ()=default
 

Private Member Functions

void addGlobalParameterTies (Mantid::API::MultiDomainFunction_sptr &function) const
 
void addGlobalTies (Mantid::API::MultiDomainFunction_sptr &function) const
 
bool checkFunctionExistsInAllDomains () const
 
bool checkFunctionIsSameForAllDomains () const
 
void checkGlobalParameterhasNoTies (std::string const &globalParameter) const
 
void checkGlobalTies ()
 
void checkParameterIsInAllDomains (std::string const &globalParameter) const
 
void checkParameterIsNotGlobal (std::string const &fullParameter) const
 
void clearGlobalTie (std::string const &fullParameter)
 
std::string constructGlobalParameterTie (GlobalParameter const &globalParameter) const
 
FitDomainIndex findDomainIndex (std::string const &workspaceName, WorkspaceIndex workspaceIndex) const
 
std::vector< GlobalTie >::const_iterator findGlobalTie (std::string const &fullParameter) const
 
std::vector< std::unique_ptr< FitDomain > >::const_iterator findWorkspaceDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex) const
 
std::string generatePermissibleWarnings () const
 
std::vector< double > getEndXs () const
 
std::string getEquivalentParameterTieForDomain (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &fullTie) const
 
std::string getFittingType () const
 
Mantid::API::IFunction_sptr getFunction () const
 
std::vector< std::string > getInputWorkspaces () const
 
Mantid::API::IFunction_sptr getMultiDomainFunction () const
 
template<typename Getter >
auto getParameterProperty (Getter &&func, FitDomainIndex domainIndex, std::string const &fullParameter) const
 
std::vector< double > getStartXs () const
 
std::vector< std::size_t > getWorkspaceIndices () const
 
bool hasGlobalTie (std::string const &fullParameter) const
 
bool isParameterValueWithinConstraints (FitDomainIndex domainIndex, std::string const &fullParameter, double value) const
 
template<typename T , typename Function >
std::vector< T > transformDomains (Function const &func) const
 
void tryToAdjustParameterInGlobalTieIfInvalidated (GlobalTie &globalTie)
 
void tryToAdjustTieInGlobalTieIfInvalidated (GlobalTie &globalTie)
 
void updateGlobalParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &fullTie)
 
void updateLocalParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &fullTie)
 
void updateParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &fullTie)
 
void updateParameterValueInGlobalTie (GlobalTie const &globalTie, double newValue)
 
void updateParameterValuesWithGlobalTieTo (std::string const &fullParameter, double newValue)
 
void updateParameterValuesWithLocalTieTo (FitDomainIndex domainIndex, std::string const &parameter, double newValue)
 
bool validGlobalTie (std::string const &fullParameter, std::string const &fullTie) const
 
bool validParameter (FitDomainIndex domainIndex, std::string const &fullParameter) const
 
bool validParameter (std::string const &fullParameter) const
 
bool validTie (std::string const &fullTie) const
 

Private Attributes

std::vector< std::unique_ptr< FitDomain > > m_fitDomains
 
FittingMode m_fittingMode
 
std::vector< GlobalParameterm_globalParameters
 
std::vector< GlobalTiem_globalTies
 
std::string m_outputBaseName
 
IFitScriptGeneratorPresenterm_presenter
 

Detailed Description

This class stores the domain and fit data to be fitted to.

This data is used to generate a python script for complex Mantid fitting.

Definition at line 34 of file FitScriptGeneratorModel.h.

Constructor & Destructor Documentation

◆ FitScriptGeneratorModel() [1/2]

MantidQt::MantidWidgets::FitScriptGeneratorModel::FitScriptGeneratorModel ( )

Definition at line 91 of file FitScriptGeneratorModel.cpp.

◆ FitScriptGeneratorModel() [2/2]

MantidQt::MantidWidgets::FitScriptGeneratorModel::FitScriptGeneratorModel ( FitScriptGeneratorModel const &  model)
delete

◆ ~FitScriptGeneratorModel()

MantidQt::MantidWidgets::FitScriptGeneratorModel::~FitScriptGeneratorModel ( )

Definition at line 95 of file FitScriptGeneratorModel.cpp.

References m_fitDomains, m_globalParameters, and m_globalTies.

Member Function Documentation

◆ addFunction()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::addFunction ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex,
std::string const &  function 
)
overridevirtual

◆ addGlobalParameterTies()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::addGlobalParameterTies ( Mantid::API::MultiDomainFunction_sptr function) const
private

◆ addGlobalTies()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::addGlobalTies ( Mantid::API::MultiDomainFunction_sptr function) const
private

Definition at line 750 of file FitScriptGeneratorModel.cpp.

References m_globalTies.

Referenced by getMultiDomainFunction().

◆ addWorkspaceDomain()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::addWorkspaceDomain ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex,
double  startX,
double  endX 
)
overridevirtual

◆ checkFunctionExistsInAllDomains()

bool MantidQt::MantidWidgets::FitScriptGeneratorModel::checkFunctionExistsInAllDomains ( ) const
private

Definition at line 605 of file FitScriptGeneratorModel.cpp.

References m_fitDomains.

Referenced by isValid().

◆ checkFunctionIsSameForAllDomains()

bool MantidQt::MantidWidgets::FitScriptGeneratorModel::checkFunctionIsSameForAllDomains ( ) const
private

Definition at line 610 of file FitScriptGeneratorModel.cpp.

References m_fitDomains, and numberOfDomains().

Referenced by generatePermissibleWarnings().

◆ checkGlobalParameterhasNoTies()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::checkGlobalParameterhasNoTies ( std::string const &  globalParameter) const
private

Definition at line 579 of file FitScriptGeneratorModel.cpp.

References hasGlobalTie(), m_fitDomains, and m_globalTies.

Referenced by setGlobalParameters().

◆ checkGlobalTies()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::checkGlobalTies ( )
private

◆ checkParameterIsInAllDomains()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::checkParameterIsInAllDomains ( std::string const &  globalParameter) const
private

Definition at line 570 of file FitScriptGeneratorModel.cpp.

References hasParameter(), and m_fitDomains.

Referenced by setGlobalParameters().

◆ checkParameterIsNotGlobal()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::checkParameterIsNotGlobal ( std::string const &  fullParameter) const
private

Definition at line 594 of file FitScriptGeneratorModel.cpp.

References getAdjustedFunctionIndex(), and m_globalParameters.

Referenced by updateParameterTie().

◆ clearGlobalTie()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::clearGlobalTie ( std::string const &  fullParameter)
private

◆ constructGlobalParameterTie()

std::string MantidQt::MantidWidgets::FitScriptGeneratorModel::constructGlobalParameterTie ( GlobalParameter const &  globalParameter) const
private

◆ findDomainIndex()

FitDomainIndex MantidQt::MantidWidgets::FitScriptGeneratorModel::findDomainIndex ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex 
) const
private

◆ findGlobalTie()

std::vector< GlobalTie >::const_iterator MantidQt::MantidWidgets::FitScriptGeneratorModel::findGlobalTie ( std::string const &  fullParameter) const
private

Definition at line 466 of file FitScriptGeneratorModel.cpp.

References m_globalTies.

Referenced by clearGlobalTie(), and hasGlobalTie().

◆ findWorkspaceDomain()

std::vector< std::unique_ptr< FitDomain > >::const_iterator MantidQt::MantidWidgets::FitScriptGeneratorModel::findWorkspaceDomain ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex 
) const
private

Definition at line 146 of file FitScriptGeneratorModel.cpp.

References m_fitDomains.

Referenced by findDomainIndex(), and hasWorkspaceDomain().

◆ generatePermissibleWarnings()

std::string MantidQt::MantidWidgets::FitScriptGeneratorModel::generatePermissibleWarnings ( ) const
private

◆ generatePythonFitScript()

std::string MantidQt::MantidWidgets::FitScriptGeneratorModel::generatePythonFitScript ( std::tuple< std::string, std::string, std::string, std::string, std::string, bool > const &  fitOptions,
std::string const &  filepath = "" 
)
overridevirtual

◆ getAdjustedFunctionIndex()

std::string MantidQt::MantidWidgets::FitScriptGeneratorModel::getAdjustedFunctionIndex ( std::string const &  parameter) const
overridevirtual

◆ getDomainName()

std::string MantidQt::MantidWidgets::FitScriptGeneratorModel::getDomainName ( FitDomainIndex  domainIndex) const
overridevirtual

◆ getEndXs()

std::vector< double > MantidQt::MantidWidgets::FitScriptGeneratorModel::getEndXs ( ) const
private

Definition at line 690 of file FitScriptGeneratorModel.cpp.

Referenced by generatePythonFitScript().

◆ getEquivalentFunctionIndexForDomain() [1/2]

std::string MantidQt::MantidWidgets::FitScriptGeneratorModel::getEquivalentFunctionIndexForDomain ( FitDomainIndex  domainIndex,
std::string const &  functionIndex 
) const
overridevirtual

◆ getEquivalentFunctionIndexForDomain() [2/2]

std::string MantidQt::MantidWidgets::FitScriptGeneratorModel::getEquivalentFunctionIndexForDomain ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex,
std::string const &  functionIndex 
) const
overridevirtual

◆ getEquivalentParameterTieForDomain() [1/2]

std::string MantidQt::MantidWidgets::FitScriptGeneratorModel::getEquivalentParameterTieForDomain ( FitDomainIndex  domainIndex,
std::string const &  fullParameter,
std::string const &  fullTie 
) const
private

◆ getEquivalentParameterTieForDomain() [2/2]

std::string MantidQt::MantidWidgets::FitScriptGeneratorModel::getEquivalentParameterTieForDomain ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex,
std::string const &  fullParameter,
std::string const &  fullTie 
) const
overridevirtual

◆ getFittingMode()

FittingMode MantidQt::MantidWidgets::FitScriptGeneratorModel::getFittingMode ( ) const
inlineoverridevirtualnoexcept

◆ getFittingType()

std::string MantidQt::MantidWidgets::FitScriptGeneratorModel::getFittingType ( ) const
private

◆ getFullParameter()

std::string MantidQt::MantidWidgets::FitScriptGeneratorModel::getFullParameter ( FitDomainIndex  domainIndex,
std::string const &  parameter 
) const
overridevirtual

◆ getFullTie()

std::string MantidQt::MantidWidgets::FitScriptGeneratorModel::getFullTie ( FitDomainIndex  domainIndex,
std::string const &  tie 
) const
overridevirtual

◆ getFunction() [1/2]

IFunction_sptr MantidQt::MantidWidgets::FitScriptGeneratorModel::getFunction ( ) const
private

◆ getFunction() [2/2]

IFunction_sptr MantidQt::MantidWidgets::FitScriptGeneratorModel::getFunction ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex 
) const
overridevirtual

◆ getGlobalParameters()

std::vector< GlobalParameter > MantidQt::MantidWidgets::FitScriptGeneratorModel::getGlobalParameters ( ) const
inlineoverridevirtualnoexcept

◆ getGlobalTies()

std::vector< GlobalTie > MantidQt::MantidWidgets::FitScriptGeneratorModel::getGlobalTies ( ) const
inlineoverridevirtualnoexcept

◆ getInputWorkspaces()

std::vector< std::string > MantidQt::MantidWidgets::FitScriptGeneratorModel::getInputWorkspaces ( ) const
private

Definition at line 675 of file FitScriptGeneratorModel.cpp.

Referenced by generatePythonFitScript().

◆ getMultiDomainFunction()

IFunction_sptr MantidQt::MantidWidgets::FitScriptGeneratorModel::getMultiDomainFunction ( ) const
private

◆ getParameterConstraint()

std::string MantidQt::MantidWidgets::FitScriptGeneratorModel::getParameterConstraint ( FitDomainIndex  domainIndex,
std::string const &  fullParameter 
) const
overridevirtual

◆ getParameterProperty()

template<typename Getter >
auto MantidQt::MantidWidgets::FitScriptGeneratorModel::getParameterProperty ( Getter &&  func,
FitDomainIndex  domainIndex,
std::string const &  fullParameter 
) const
private

◆ getParameterTie()

std::string MantidQt::MantidWidgets::FitScriptGeneratorModel::getParameterTie ( FitDomainIndex  domainIndex,
std::string const &  fullParameter 
) const
overridevirtual

◆ getParameterValue()

double MantidQt::MantidWidgets::FitScriptGeneratorModel::getParameterValue ( FitDomainIndex  domainIndex,
std::string const &  fullParameter 
) const
overridevirtual

◆ getStartXs()

std::vector< double > MantidQt::MantidWidgets::FitScriptGeneratorModel::getStartXs ( ) const
private

Definition at line 685 of file FitScriptGeneratorModel.cpp.

Referenced by generatePythonFitScript().

◆ getWorkspaceIndices()

std::vector< std::size_t > MantidQt::MantidWidgets::FitScriptGeneratorModel::getWorkspaceIndices ( ) const
private

Definition at line 680 of file FitScriptGeneratorModel.cpp.

Referenced by generatePythonFitScript().

◆ hasGlobalTie()

bool MantidQt::MantidWidgets::FitScriptGeneratorModel::hasGlobalTie ( std::string const &  fullParameter) const
private

◆ hasParameter()

bool MantidQt::MantidWidgets::FitScriptGeneratorModel::hasParameter ( FitDomainIndex  domainIndex,
std::string const &  fullParameter 
) const
overridevirtual

◆ hasWorkspaceDomain()

bool MantidQt::MantidWidgets::FitScriptGeneratorModel::hasWorkspaceDomain ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex 
) const
overridevirtual

◆ isParameterFixed()

bool MantidQt::MantidWidgets::FitScriptGeneratorModel::isParameterFixed ( FitDomainIndex  domainIndex,
std::string const &  fullParameter 
) const
overridevirtual

◆ isParameterValueWithinConstraints()

bool MantidQt::MantidWidgets::FitScriptGeneratorModel::isParameterValueWithinConstraints ( FitDomainIndex  domainIndex,
std::string const &  fullParameter,
double  value 
) const
private

◆ isSimultaneousMode()

bool MantidQt::MantidWidgets::FitScriptGeneratorModel::isSimultaneousMode ( ) const
overridevirtual

◆ isValid()

std::tuple< bool, std::string > MantidQt::MantidWidgets::FitScriptGeneratorModel::isValid ( ) const
overridevirtual

◆ numberOfDomains()

std::size_t MantidQt::MantidWidgets::FitScriptGeneratorModel::numberOfDomains ( ) const
inlineoverridevirtualnoexcept

◆ operator=()

FitScriptGeneratorModel & MantidQt::MantidWidgets::FitScriptGeneratorModel::operator= ( FitScriptGeneratorModel const &  model)
delete

◆ removeDomain()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::removeDomain ( FitDomainIndex  domainIndex)
overridevirtual

◆ removeFunction()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::removeFunction ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex,
std::string const &  function 
)
overridevirtual

◆ removeParameterConstraint()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::removeParameterConstraint ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex,
std::string const &  fullParameter 
)
overridevirtual

◆ renameWorkspace()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::renameWorkspace ( std::string const &  workspaceName,
std::string const &  newName 
)
overridevirtual

◆ setFittingMode()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::setFittingMode ( FittingMode  fittingMode)
overridevirtual

◆ setFunction()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::setFunction ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex,
std::string const &  function 
)
overridevirtual

◆ setGlobalParameters()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::setGlobalParameters ( std::vector< std::string > const &  parameters)
overridevirtual

◆ setOutputBaseName()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::setOutputBaseName ( std::string const &  outputBaseName)
overridevirtual

◆ setParameterConstraint()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::setParameterConstraint ( FitDomainIndex  domainIndex,
std::string const &  fullParameter,
std::string const &  constraint 
)
overridevirtual

◆ setParameterFixed()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::setParameterFixed ( FitDomainIndex  domainIndex,
std::string const &  fullParameter,
bool  fix 
)
overridevirtual

◆ setParameterTie()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::setParameterTie ( FitDomainIndex  domainIndex,
std::string const &  fullParameter,
std::string const &  tie 
)
overridevirtual

◆ setParameterValue()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::setParameterValue ( FitDomainIndex  domainIndex,
std::string const &  fullParameter,
double  value 
)
overridevirtual

◆ subscribePresenter()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::subscribePresenter ( IFitScriptGeneratorPresenter presenter)
overridevirtual

◆ transformDomains()

template<typename T , typename Function >
std::vector< T > MantidQt::MantidWidgets::FitScriptGeneratorModel::transformDomains ( Function const &  func) const
private

Definition at line 696 of file FitScriptGeneratorModel.cpp.

References m_fitDomains, and numberOfDomains().

◆ tryToAdjustParameterInGlobalTieIfInvalidated()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::tryToAdjustParameterInGlobalTieIfInvalidated ( GlobalTie globalTie)
private

◆ tryToAdjustTieInGlobalTieIfInvalidated()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::tryToAdjustTieInGlobalTieIfInvalidated ( GlobalTie globalTie)
private

◆ updateAttributeValue()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::updateAttributeValue ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex,
std::string const &  fullAttribute,
Mantid::API::IFunction::Attribute const &  newValue 
)
overridevirtual

◆ updateEndX()

bool MantidQt::MantidWidgets::FitScriptGeneratorModel::updateEndX ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex,
double  endX 
)
overridevirtual

◆ updateGlobalParameterTie()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::updateGlobalParameterTie ( FitDomainIndex  domainIndex,
std::string const &  fullParameter,
std::string const &  fullTie 
)
private

◆ updateLocalParameterTie()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::updateLocalParameterTie ( FitDomainIndex  domainIndex,
std::string const &  fullParameter,
std::string const &  fullTie 
)
private

◆ updateParameterConstraint()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::updateParameterConstraint ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex,
std::string const &  functionIndex,
std::string const &  constraint 
)
overridevirtual

◆ updateParameterTie() [1/2]

void MantidQt::MantidWidgets::FitScriptGeneratorModel::updateParameterTie ( FitDomainIndex  domainIndex,
std::string const &  fullParameter,
std::string const &  fullTie 
)
private

◆ updateParameterTie() [2/2]

void MantidQt::MantidWidgets::FitScriptGeneratorModel::updateParameterTie ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex,
std::string const &  fullParameter,
std::string const &  tie 
)
overridevirtual

◆ updateParameterValue()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::updateParameterValue ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex,
std::string const &  fullParameter,
double  newValue 
)
overridevirtual

◆ updateParameterValueInGlobalTie()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::updateParameterValueInGlobalTie ( GlobalTie const &  globalTie,
double  newValue 
)
private

◆ updateParameterValuesWithGlobalTieTo()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::updateParameterValuesWithGlobalTieTo ( std::string const &  fullParameter,
double  newValue 
)
private

Definition at line 275 of file FitScriptGeneratorModel.cpp.

References m_globalTies, and updateParameterValueInGlobalTie().

Referenced by updateParameterValue().

◆ updateParameterValuesWithLocalTieTo()

void MantidQt::MantidWidgets::FitScriptGeneratorModel::updateParameterValuesWithLocalTieTo ( FitDomainIndex  domainIndex,
std::string const &  parameter,
double  newValue 
)
private

◆ updateStartX()

bool MantidQt::MantidWidgets::FitScriptGeneratorModel::updateStartX ( std::string const &  workspaceName,
WorkspaceIndex  workspaceIndex,
double  startX 
)
overridevirtual

◆ validGlobalTie()

bool MantidQt::MantidWidgets::FitScriptGeneratorModel::validGlobalTie ( std::string const &  fullParameter,
std::string const &  fullTie 
) const
private

◆ validParameter() [1/2]

bool MantidQt::MantidWidgets::FitScriptGeneratorModel::validParameter ( FitDomainIndex  domainIndex,
std::string const &  fullParameter 
) const
private

◆ validParameter() [2/2]

bool MantidQt::MantidWidgets::FitScriptGeneratorModel::validParameter ( std::string const &  fullParameter) const
private

◆ validTie()

bool MantidQt::MantidWidgets::FitScriptGeneratorModel::validTie ( std::string const &  fullTie) const
private

Member Data Documentation

◆ m_fitDomains

std::vector<std::unique_ptr<FitDomain> > MantidQt::MantidWidgets::FitScriptGeneratorModel::m_fitDomains
private

◆ m_fittingMode

FittingMode MantidQt::MantidWidgets::FitScriptGeneratorModel::m_fittingMode
private

◆ m_globalParameters

std::vector<GlobalParameter> MantidQt::MantidWidgets::FitScriptGeneratorModel::m_globalParameters
private

◆ m_globalTies

std::vector<GlobalTie> MantidQt::MantidWidgets::FitScriptGeneratorModel::m_globalTies
private

◆ m_outputBaseName

std::string MantidQt::MantidWidgets::FitScriptGeneratorModel::m_outputBaseName
private

Definition at line 191 of file FitScriptGeneratorModel.h.

Referenced by isValid(), and setOutputBaseName().

◆ m_presenter

IFitScriptGeneratorPresenter* MantidQt::MantidWidgets::FitScriptGeneratorModel::m_presenter
private

The documentation for this class was generated from the following files: