|
Mantid
|
The interface to a function view. More...
#include <IFunctionView.h>
Signals | |
| void | attributePropertyChanged (std::string const &attrName) |
| Function attribute gets changed. | |
| void | copyToClipboardRequest () |
| User requested copy function to clipboard. | |
| void | currentFunctionChanged () |
| User selects a different (sub)function (or one of it's sub-properties) | |
| void | functionAdded (std::string const &funStr) |
| User adds a function. | |
| void | functionHelpRequest () |
| User requested function help. | |
| void | functionRemoved (std::string const &functionIndex) |
| User removes a function. | |
| void | functionRemovedString (std::string const &funStr) |
| User removes a function. | |
| void | functionReplaced (std::string const &funStr) |
| User replaces the whole function (eg, by pasting it from clipboard) | |
| void | globalsChanged (const std::vector< std::string > &) |
| User changed the list of global parameters. | |
| void | localParameterButtonClicked (std::string const ¶meterName) |
| In multi-dataset context a button value editor was clicked. | |
| void | parameterChanged (std::string const ¶meterName) |
| Function parameter gets changed. | |
| void | parameterConstraintAdded (std::string const &functionIndex, std::string const &constraint) |
| User sets a constraint. | |
| void | parameterConstraintRemoved (std::string const ¶meterName) |
| User removes a constraint. | |
| void | parameterTieChanged (std::string const ¶meterName, std::string const &tie) |
| User sets a tie. | |
Public Member Functions | |
| virtual void | clear ()=0 |
| virtual void | clearErrors ()=0 |
| virtual std::optional< std::string > | currentFunctionIndex () const =0 |
| virtual IFunction::Attribute | getAttribute (std::string const &attrName) const =0 |
| virtual double | getParameter (std::string const ¶meterName) const =0 |
| virtual IFunction_sptr | getSelectedFunction ()=0 |
| virtual bool | hasFunction () const =0 |
| IFunctionView (QWidget *parent=nullptr) | |
| template<typename T > | |
| void | setAttributeValue (std::string const &attributeName, T &value) |
| virtual void | setErrorsEnabled (bool enabled)=0 |
| virtual void | setFunction (IFunction_sptr fun)=0 |
| virtual void | setGlobalParameters (const std::vector< std::string > &)=0 |
| virtual void | setParameter (std::string const ¶meterName, double value)=0 |
| virtual void | setParameterConstraint (std::string const ¶meterName, std::string const &constraint)=0 |
| virtual void | setParameterError (std::string const ¶meterName, double error)=0 |
| virtual void | setParameterTie (std::string const ¶meterName, std::string const &tie)=0 |
| virtual void | showFunctionHelp (std::string const &) const =0 |
| virtual | ~IFunctionView ()=default |
Protected Member Functions | |
| virtual void | setBooleanAttribute (std::string const ¶meterName, bool value)=0 |
| virtual void | setDoubleAttribute (std::string const ¶meterName, double value)=0 |
| virtual void | setIntAttribute (std::string const ¶meterName, int value)=0 |
| virtual void | setStringAttribute (std::string const ¶meterName, std::string &value)=0 |
| virtual void | setVectorAttribute (std::string const ¶meterName, std::vector< double > &val)=0 |
The interface to a function view.
Definition at line 26 of file IFunctionView.h.
|
inline |
Definition at line 29 of file IFunctionView.h.
|
virtualdefault |
|
signal |
Function attribute gets changed.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::attributeChanged().
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::clear().
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::clearErrors().
|
signal |
User requested copy function to clipboard.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::copyToClipboard().
|
signal |
User selects a different (sub)function (or one of it's sub-properties)
Referenced by MantidQt::MantidWidgets::FunctionTreeView::updateCurrentFunctionIndex().
|
pure virtual |
|
signal |
User adds a function.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::addFunctionEnd().
|
signal |
User requested function help.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::createActions().
|
signal |
User removes a function.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::removeFunction().
|
signal |
User removes a function.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::removeFunction().
|
signal |
User replaces the whole function (eg, by pasting it from clipboard)
Referenced by MantidQt::MantidWidgets::FunctionTreeView::attributeChanged(), and MantidQt::MantidWidgets::FunctionTreeView::pasteFromClipboard().
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewChangedAttribute().
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewChangedParameter().
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewRequestedFunctionHelp().
|
signal |
User changed the list of global parameters.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::addFunctionEnd(), MantidQt::MantidWidgets::FunctionTreeView::globalChanged(), and MantidQt::MantidWidgets::FunctionTreeView::removeFunction().
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
|
signal |
In multi-dataset context a button value editor was clicked.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::parameterButtonClicked().
|
signal |
Function parameter gets changed.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::parameterPropertyChanged().
|
signal |
User sets a constraint.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::addConstraints(), MantidQt::MantidWidgets::FunctionTreeView::addConstraints10(), MantidQt::MantidWidgets::FunctionTreeView::addConstraints50(), MantidQt::MantidWidgets::FunctionTreeView::constraintChanged(), and MantidQt::MantidWidgets::FunctionTreeView::removeConstraint().
|
signal |
User removes a constraint.
Referenced by MantidQt::MantidWidgets::FunctionTreeView::removeConstraint(), and MantidQt::MantidWidgets::FunctionTreeView::removeConstraints().
|
signal |
|
inline |
Definition at line 47 of file IFunctionView.h.
References value.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::updateViewAttributesFromModel().
|
protectedpure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
|
protectedpure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setErrorsEnabled().
|
pure virtual |
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setGlobalParameters(), MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewAddedFunction(), and MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewRemovedFunction().
|
protectedpure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setBackgroundA0(), MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setLocalParameterValue(), MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setLocalParameterValue(), MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setParameter(), and MantidQt::MantidWidgets::FunctionMultiDomainPresenter::updateViewFromModel().
|
pure virtual |
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setLocalParameterValue(), MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setParameterError(), and MantidQt::MantidWidgets::FunctionMultiDomainPresenter::updateViewFromModel().
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setLocalParameterFixed(), MantidQt::MantidWidgets::FunctionMultiDomainPresenter::setLocalParameterTie(), and MantidQt::MantidWidgets::FunctionMultiDomainPresenter::updateViewFromModel().
|
protectedpure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
|
protectedpure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
|
pure virtual |
Implemented in MantidQt::MantidWidgets::FunctionTreeView.
Referenced by MantidQt::MantidWidgets::FunctionMultiDomainPresenter::viewRequestedFunctionHelp().