|
Mantid
|
Class FitPropertyBrowser implements QtPropertyBrowser to display and control fitting function parameters and settings. More...
#include <FitPropertyBrowser.h>
Public Slots | |
| virtual void | clear () |
| Slot. | |
| void | clearBrowser () |
| void | executeClearCustomSetups () |
| void | executeCustomSetupRemove (const QString &name) |
| void | executeDisplayMenu (const QString &) |
| virtual void | executeFitMenu (const QString &) |
| void | executePeakFindingAlgMenu (const QString &) |
| void | executeSetupManageMenu (const QString &) |
| void | executeSetupMenu (const QString &) |
| virtual void | fit () |
| Do the fit. | |
| virtual void | removePropertiesFromSettingsBrowser (const QStringList &propsToRemove) |
| Function to toggle the visibility of a settings group property exposed to python. | |
| virtual void | sequentialFit () |
| void | setPeakToolOn (bool on) |
| virtual void | toggleSettingsBrowserVisible () |
| Function to toggle the visibility of the settings browser. | |
| virtual void | toggleWsListVisible () |
| void | undoFit () |
| Slot. | |
| void | workspaceDoubleClicked (QListWidgetItem *item) |
Signals | |
| void | algorithmFailed () |
| void | algorithmFinished (const QString &) |
| void | algorithmStarted (const QString &) |
| void | changedParameterOf (const QString &prefix) |
| void | changeWindowTitle (const QString &) |
| void | currentChanged () const |
| void | endXChanged (double) |
| void | errorsEnabled (bool enabled) |
| void | executeFit (QString, QHash< QString, QString >, Mantid::API::AlgorithmObserver *) |
| void | fitResultsChanged (const QString &status) |
| void | fittingDone (const QString &) |
| signal which can optionally be caught for customization after a fit has been done | |
| void | fitUndone () |
| void | functionChanged () |
| void | functionCleared () |
| void | functionFactoryUpdateReceived () |
| void | functionLoaded (const QString &) |
| void | functionRemoved () |
| void | itemDoubleClicked (QListWidgetItem *item) |
| void | multifitFinished () |
| void | parameterChanged (const Mantid::API::IFunction *) |
| void | plotCurrentGuess () |
| void | plotGuess () |
| void | removeCurrentGuess () |
| void | removeFitCurves () |
| void | removeGuess () |
| void | removePlotSignal (MantidQt::MantidWidgets::PropertyHandler *) |
| void | sequentialFitDone () const |
| void | startXChanged (double) |
| void | updatePlotSpectrum (int index) |
| void | workspaceClicked (const QString &wsName) |
| void | workspaceIndexChanged (int index) |
| void | workspaceNameChanged (const QString &) |
| void | wsChangePPAssign (const QString &) |
| void | xRangeChanged (double, double) |
Public Member Functions | |
| void | addAllowedSpectra (const QString &wsName, const QList< int > &wsIndices) |
| void | addAllowedTableWorkspace (const QString &wsName) |
| void | addAutoBackground () |
| Creates and adds the autobackground. | |
| void | addFitResultWorkspacesToTableWidget () |
| Adds the fit result workspaces to the QListWidget in the browser. | |
| QString | addFunction (const QString &fnName) |
| A specialisation of addFunction to be used in the workbench. | |
| PropertyHandler * | addFunction (const std::string &fnName) |
| Create a new function. | |
| void | addHandle (const std::string &wsName, const std::shared_ptr< Mantid::API::Workspace > &ws) override |
| workspace was added | |
| void | allowSequentialFits (bool allow) override |
| Allow or disallow sequential fits (depending on whether other conditions are met) | |
| double | centre () const |
| Centre of the current peak. | |
| std::shared_ptr< Mantid::API::CompositeFunction > | compositeFunction () const |
| Get Composite Function. | |
| bool | convolveMembers () const |
| Get the "ConvolveMembers" option. | |
| std::string | costFunction () const |
| Get the cost function. | |
| int | count () const |
| Get count. | |
| bool | createAndAddFunction (const Mantid::API::MatrixWorkspace_sptr inputWS, const size_t peakIndex, const std::unique_ptr< FindPeakStrategyGeneric > &findPeakStrategy) |
| void | createCompositeFunction (const QString &str="") |
| Create CompositeFunction from string. | |
| PropertyHandler * | currentHandler () const |
| Get the current function. | |
| const std::string & | defaultBackgroundType () const |
| Get the default background type. | |
| const std::string & | defaultFunctionType () const |
| Get the default function type. | |
| std::string | defaultPeakType () |
| Get the default peak type. | |
| double | endX () const |
| Get the end X. | |
| void | findPeaks (const std::unique_ptr< FindPeakStrategyGeneric > findPeakStrategy) |
| void | finishHandle (const Mantid::API::IAlgorithm *alg) override |
| Called when the Fit is finished. | |
| FitPropertyBrowser (QWidget *parent=nullptr, QObject *mantidui=nullptr) | |
| Constructor. | |
| double | fwhm () const |
| Width of the current peak. | |
| QString | getAutoBackgroundString () const |
| std::string | getCentreParameterNameOf (const QString &prefix) |
| QString | getConstraintsString () const |
| Creates the "Constraints" property value for the Fit algorithm. | |
| int | getDecimals () const |
| Number of decimal places in double properties. | |
| QString | getErrColumnName () const |
| Get the name of the Error column. | |
| std::string | getExcludeRange () const |
| Get the excluded range for the fit. | |
| const std::string & | getFitAlgorithmOutputStatus () const |
| ================================================================================================= Get Fit Algorithm output statuss | |
| const std::string & | getFitAlgorithmParameters () const |
| ================================================================================================= Get Fit Algorithm parameters | |
| QMenu * | getFitMenu () const |
| Return the Fit menu. | |
| Mantid::API::IFunction_sptr | getFittingFunction () const |
| Return the fitting function. | |
| Mantid::API::IFunction_sptr | getFunctionAtIndex (std::size_t const &index) const |
| Return a function at a specific index in the composite function. | |
| std::string | getFunctionString () const |
| Get the function as a string. | |
| PropertyHandler * | getHandler () const |
| Get handler to the root composite function. | |
| QString | getOldExpressionAsString (const QString ¶meterName) const |
| Get the tie expression stored in the function in case the new expression is invalid and the GUI needs to be reset. | |
| QStringList | getParameterNames () const |
| Get function parameter names. | |
| QList< double > | getParameterValues () const |
| Get function parameter values. | |
| double | getPeakCentreOf (const QString &prefix) |
| double | getPeakFwhmOf (const QString &prefix) |
| PropertyHandler * | getPeakHandler (const QString &prefix) |
| double | getPeakHeightOf (const QString &prefix) |
| QStringList | getPeakPrefixes () const |
| int | getPeakRadius () const |
| Get the peak radius for peak functions. | |
| QString | getTieString () const |
| Creates the "Ties" property value for the Fit algorithm. | |
| std::string | getWidthParameterNameOf (const QString &prefix) |
| std::shared_ptr< Mantid::API::Workspace > | getWorkspace () const |
| Get the workspace. | |
| QListWidget * | getWorkspaceList () const |
| Return the Fit menu. | |
| const QStringList & | getWorkspaceNames () |
| Returns the list of workspaces that are currently been worked on by the fit property browser. | |
| QString | getXColumnName () const |
| Get the name of the X column. | |
| QVector< double > | getXRange () |
| Get the X limits of the workspace. | |
| QString | getYColumnName () const |
| Get the name of the Y column. | |
| double | height () const |
| Height of the current peak. | |
| bool | ignoreInvalidData () const |
| Get the ignore invalid data option. | |
| virtual void | init () |
| Initialise layout. | |
| bool | isAutoBack () const |
| bool | isFitEnabled () const |
| Returns true if the function is ready for a fit. | |
| bool | isHistogramFit () const |
| Get "HistogramFit" option. | |
| bool | isParameterExplicitlySetOf (const QString &prefix, const std::string ¶m) |
| bool | isPeak () const |
| Is the current function a peak? | |
| bool | isUndoEnabled () const |
| Tells if undo can be done. | |
| void | loadFunction (const QString &funcString) |
| Load function. | |
| int | maxIterations () const |
| Get the max number of iterations. | |
| std::string | minimizer (bool withProperties=false) const |
| Get the minimizer. | |
| void | normaliseData (bool on) |
| Set if the data must be normalised before fitting. | |
| virtual std::string | outputName () const |
| Get the output name. | |
| bool | plotCompositeMembers () const |
| Returns true if a composite's member functions should be plotted also. | |
| bool | plotDiff () const |
| Returns true if the difference plot should be drawn. | |
| void | postDeleteHandle (const std::string &wsName) override |
| workspace was removed | |
| bool | rawData () const override |
| Returns true if the fit should be done against binned (bunched) data. | |
| void | refitAutoBackground () |
| const QStringList & | registeredBackgrounds () const |
| Return a list of registered backgrounds. | |
| const QStringList & | registeredFunctions () const |
| Return a list of registered functions. | |
| const QStringList & | registeredOthers () const |
| Return a list of registered other functions. | |
| const QStringList & | registeredPeaks () const |
| Return a list of registered peaks. | |
| virtual void | removeFunction (PropertyHandler *handler) |
| Removes the function held by the property handler. | |
| void | removeWorkspace (const std::string &wsName) |
| void | removeWorkspaceAndSpectra (const std::string &wsName) |
| void | renameHandle (const std::string &oldName, const std::string &newName) override |
| Handler of the Rename notifications. | |
| void | saveFunction (const QString &fnName) |
| save function | |
| void | sendParameterChanged (const Mantid::API::IFunction *f) |
| void | sendParameterChanged (const QString &prefix) |
| void | sequentialFitFinished () |
| void | setADSObserveEnabled (bool enabled) |
| void | setAutoBackgroundName (const QString &aName) |
| Remember a background function name to be used for creating auto-background. | |
| void | setCentre (double value) |
| Set centre of the current peak. | |
| void | setCurrentFunction (PropertyHandler *h) const |
| Set new current function. | |
| void | setDecimals (int d) |
| void | setDefaultBackgroundType (const std::string &fnType) |
| Set the default background type. | |
| void | setDefaultFunctionType (const std::string &fnType) |
| Set the default function type. | |
| void | setDefaultPeakType (const std::string &fnType) |
| Set the default peak type. | |
| void | setEndX (double end) override |
| Set the end X. | |
| virtual void | setFitEnabled (bool enable) |
| Enable/disable the Fit buttons;. | |
| void | setFwhm (double value) |
| Set width of the current peak. | |
| void | setHeight (double value) |
| Set height of the current peak. | |
| void | setIgnoreInvalidData (bool on) |
| Set the ignore invalid data option. | |
| void | setOutputName (const std::string &) |
| Set the output name. | |
| void | setPeakCentreOf (const QString &prefix, double value) |
| void | setPeakFwhmOf (const QString &prefix, double value) |
| void | setPeakHeightOf (const QString &prefix, double value) |
| void | setStartX (double start) override |
| Set the start X. | |
| void | setTextPlotGuess (const QString &text) |
| alter text of Plot Guess | |
| void | setTip (const QString &txt) |
| Display a tip. | |
| void | setWorkspaceIndex (int i) override |
| Set workspace index. | |
| virtual void | setWorkspaceName (const QString &wsName) override |
| Set the input workspace name. | |
| void | setXRange (double start, double end) |
| Set both start and end X. | |
| int | sizeOfFunctionsGroup () const |
| double | startX () const |
| Get the start X. | |
| std::shared_ptr< const Mantid::API::IFunction > | theFunction () const |
| Get the current function. | |
| void | updateAttributes () |
| Update the function attributes. | |
| void | updateParameters () |
| Update the function parameters. | |
| int | workspaceIndex () const |
| Get workspace index. | |
| std::string | workspaceName () const |
| Get the input workspace name. | |
| ~FitPropertyBrowser () override | |
| Destructor. | |
Public Member Functions inherited from Mantid::API::AlgorithmObserver | |
| AlgorithmObserver () | |
| Default constructor. | |
| AlgorithmObserver (const IAlgorithm_const_sptr &alg) | |
| Constructs AlgorithmObserver and connects all its handlers to algorithm alg. | |
| virtual void | errorHandle (const IAlgorithm *alg, const std::string &what) |
| void | observeAll (const IAlgorithm_const_sptr &alg) |
| Connect to algorithm alg and observe all its notifications. | |
| void | observeError (const IAlgorithm_const_sptr &alg) |
| Connect to algorithm alg and observe its error notification. | |
| void | observeFinish (const IAlgorithm_const_sptr &alg) |
| Connect to algorithm alg and observe its finish notification. | |
| void | observeProgress (const IAlgorithm_const_sptr &alg) |
| Connect to algorithm alg and observe its progress notification. | |
| void | observeStart (const IAlgorithm_const_sptr &alg) |
| Connect to algorithm alg and observe its start notification. | |
| void | observeStarting () |
| Connect to AlgorithmManager and observe its starting notifications. | |
| virtual void | progressHandle (const IAlgorithm *alg, double p, const std::string &msg, const double estimatedTime, const int progressPrecision) |
| virtual void | startHandle (const IAlgorithm *alg) |
| virtual void | startingHandle (IAlgorithm_sptr alg) |
| void | stopObserving (const IAlgorithm_const_sptr &alg) |
| Disconnect from algorithm alg. | |
| void | stopObserving (const Mantid::API::IAlgorithm *alg) |
| void | stopObservingManager () |
| Disconnect from the algorithm manager. | |
| virtual | ~AlgorithmObserver () |
| Virtual destructor. | |
Public Member Functions inherited from MantidQt::API::WorkspaceObserver | |
| void | observeAdd (bool on=true) |
| Observe additions. | |
| void | observeADSClear (bool on=true) |
| Observe clearances. | |
| void | observeAfterReplace (bool on=true) |
| Observe replacements. | |
| void | observePostDelete (bool on=true) |
| Observe workspace deletes. | |
| void | observePreDelete (bool on=true) |
| Observe workspace deletes. | |
| void | observeRename (bool on=true) |
| Observe renaming. | |
| WorkspaceObserver () | |
| Default constructor. | |
| virtual | ~WorkspaceObserver () |
| Destructor. | |
Public Member Functions inherited from MantidQt::MantidWidgets::IWorkspaceFitControl | |
| virtual | ~IWorkspaceFitControl ()=default |
Protected Slots | |
| virtual void | boolChanged (QtProperty *prop) |
| Called when a bool property is changed. | |
| virtual void | doubleChanged (QtProperty *prop) |
| Called when a double property changed. | |
| void | enactAttributeChange (QtProperty *prop, PropertyHandler *h, const bool vectorAttribute=false) |
| virtual void | enumChanged (QtProperty *prop) |
| Called when the function name property changed. | |
| virtual void | intChanged (QtProperty *prop) |
| Called when an int property changed. | |
| virtual void | populateFunctionNames () |
| Get the registered function names. | |
Protected Member Functions | |
| QtProperty * | addDoubleProperty (const QString &name, QtDoublePropertyManager *manager=nullptr) const |
| Create a double property and set some settings. | |
| virtual void | addWorkspaceIndexToBrowser () |
| Adds the workspace index property to the browser. | |
| void | createCompositeFunction (const Mantid::API::IFunction_sptr &func) |
| Create CompositeFunction from pointer. | |
| void | createEditors (QWidget *w) |
| Create editors and assign them to the managers. | |
| void | doFit (int maxIterations) |
| Do the fitting. | |
| bool | getShouldBeNormalised () |
| void | hideEvent (QHideEvent *e) override |
| actions to do before the browser is hidden | |
| void | initBasicLayout (QWidget *w) |
| Initialise the layout, except for the fit button in the menu bar. | |
| void | initLayout (QWidget *w) |
| Initialise the layout. | |
| void | minimizerChanged () |
| Called when the minimizer changes. Creates minimizes's properties. | |
| void | modifyFitMenu (QAction *fitAction, bool enabled) |
| virtual void | populateFitMenuButton (QSignalMapper *fitMapper, QMenu *fitMenu) |
| Populate the fit button. | |
| void | populateWorkspaceNames () |
| Get and store available workspace names. | |
| void | setWorkspace (const Mantid::API::IFunction_sptr &function) const |
| Sets the workspace to a function. | |
| void | setWorkspaceProperties () |
| Display properties relevant to the selected workspace. | |
| void | showEvent (QShowEvent *e) override |
| actions to do before the browser made visible | |
| Mantid::API::IFunction_sptr | tryCreateFitFunction (const QString &str) |
| Catches unexpected not found exceptions. | |
| void | updateBrowserFromFitResults (const Mantid::API::IFunction_sptr &finalFunction) |
| Set the parameters to the fit outcome. | |
| void | updateDecimals () |
| impose a number of decimal places on all defined Double properties | |
Protected Member Functions inherited from MantidQt::API::WorkspaceObserver | |
| void | _addHandle (Mantid::API::WorkspaceAddNotification_ptr pNf) |
| Poco notification handler for DataService::DeleteNotification. | |
| void | _afterReplaceHandle (Mantid::API::WorkspaceAfterReplaceNotification_ptr pNf) |
| Poco notification handler for DataService::AfterReplaceNotification. | |
| void | _clearADSHandle (Mantid::API::ClearADSNotification_ptr) |
| ADS clear notification. | |
| void | _postDeleteHandle (Mantid::API::WorkspacePostDeleteNotification_ptr pNf) |
| Poco notification handler for DataService::PostDeleteNotification. | |
| void | _preDeleteHandle (Mantid::API::WorkspacePreDeleteNotification_ptr pNf) |
| Poco notification handler for DataService::PostDeleteNotification. | |
| void | _renameHandle (Mantid::API::WorkspaceRenameNotification_ptr pNf) |
| Poco notification handler for DataService::RenameNotification. | |
| virtual void | addHandle (const std::string &wsName, const Mantid::API::Workspace_sptr &ws) |
| Handler of the add notifications. | |
| virtual void | afterReplaceHandle (const std::string &wsName, const Mantid::API::Workspace_sptr &ws) |
| Handler of the AfterReplace notifications. | |
| virtual void | clearADSHandle () |
| Handle an ADS clear notification. | |
| virtual void | preDeleteHandle (const std::string &wsName, const Mantid::API::Workspace_sptr &ws) |
| Handler of the delete notifications. | |
Protected Attributes | |
| QtBoolPropertyManager * | m_boolManager |
| QtTreePropertyBrowser * | m_browser |
| bool | m_changeSlotsEnabled |
| If false the change-slots (such as enumChanged(), doubleChanged()) are disabled. | |
| QtEnumPropertyManager * | m_columnManager |
| std::shared_ptr< Mantid::API::CompositeFunction > | m_compositeFunction |
| A copy of the edited function. | |
| QtProperty * | m_convolveMembers |
| QtProperty * | m_costFunction |
| QStringList | m_costFunctions |
| A list of available cost functions. | |
| QtBrowserItem * | m_customSettingsGroup |
| Group for custom options available on muon analysis widget. | |
| QtDoublePropertyManager * | m_doubleManager |
| QtProperty * | m_endX |
| QtEnumPropertyManager * | m_enumManager |
| QtProperty * | m_errColumn |
| QtProperty * | m_evaluationType |
| QStringList | m_evaluationTypes |
| A list of possible function evaluation types. | |
| QtProperty * | m_excludeRange |
| QtStringPropertyManager * | m_filenameManager |
| QAction * | m_fitActionEvaluate |
| QAction * | m_fitActionFit |
| QAction * | m_fitActionSeqFit |
| QAction * | m_fitActionUndoFit |
| QtStringPropertyManager * | m_formulaManager |
| QtBrowserItem * | m_functionsGroup |
| Group for functions. | |
| QtGroupPropertyManager * | m_groupManager |
| Property managers: | |
| bool | m_guessOutputName |
| if true the output name will be guessed every time workspace name is changeed | |
| QtProperty * | m_ignoreInvalidData |
| std::vector< double > | m_initialParameters |
| To keep a copy of the initial parameters in case for undo fit. | |
| QtIntPropertyManager * | m_intManager |
| QtProperty * | m_maxIterations |
| QtProperty * | m_minimizer |
| QList< QtProperty * > | m_minimizerProperties |
| QStringList | m_minimizers |
| A list of available minimizers. | |
| QtProperty * | m_output |
| ParameterPropertyManager * | m_parameterManager |
| QtProperty * | m_peakRadius |
| QtProperty * | m_plotCompositeMembers |
| QtProperty * | m_plotDiff |
| QtProperty * | m_rawData |
| QStringList | m_registeredBackgrounds |
| A list of registered backgrounds. | |
| QStringList | m_registeredFunctions |
| A list of registered functions. | |
| QStringList | m_registeredOther |
| A list of registered functions that are neither peaks nor backgrounds. | |
| QStringList | m_registeredPeaks |
| A list of registered peaks. | |
| QtBrowserItem * | m_settingsGroup |
| Group for input/output settings. | |
| QtProperty * | m_showParamErrors |
| QtProperty * | m_startX |
| QtStringPropertyManager * | m_stringManager |
| QtDoublePropertyManager * | m_vectorDoubleManager |
| QtGroupPropertyManager * | m_vectorManager |
| QtIntPropertyManager * | m_vectorSizeManager |
| QtProperty * | m_workspace |
| QtProperty * | m_workspaceIndex |
| QStringList | m_workspaceNames |
| A list of available workspaces. | |
| QtProperty * | m_xColumn |
| QtProperty * | m_yColumn |
Protected Attributes inherited from MantidQt::API::WorkspaceObserver | |
| Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspaceAddNotification > | m_addObserver |
| Poco::NObserver for DataServise::AddNotification. | |
| Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspaceAfterReplaceNotification > | m_afterReplaceObserver |
| Poco::NObserver for DataServise::AfterReplaceNotification. | |
| Poco::NObserver< WorkspaceObserver, Mantid::API::ClearADSNotification > | m_clearADSObserver |
| Clear notification observer. | |
| Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspacePostDeleteNotification > | m_postDeleteObserver |
| Poco::NObserver for DataServise::DeleteNotification. | |
| Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspacePreDeleteNotification > | m_preDeleteObserver |
| Poco::NObserver for DataServise::DeleteNotification. | |
| Poco::NObserver< WorkspaceObserver, Mantid::API::WorkspaceRenameNotification > | m_renameObserver |
| Poco::NObserver for DataServise::RenameNotification. | |
Private Slots | |
| void | acceptFit () |
| void | addBothBounds () |
| Slot.Adds lower and upper bounds to the selected parameter property. | |
| void | addBothBounds10 () |
| Slot.Sets the lower and upper bounds of the selected parameter to 10% of its value. | |
| void | addBothBounds50 () |
| Slot.Sets the lower and upper bounds of the selected parameter to 50% of its value. | |
| void | addConstraint (int f, bool lo, bool up) |
| Slot. | |
| void | addFixTie () |
| Slot. | |
| void | addFunction () |
| Slot. | |
| void | addLowerBound () |
| Slot. | |
| void | addLowerBound10 () |
| Slot. | |
| void | addLowerBound50 () |
| Slot. | |
| void | addTie () |
| Slot. | |
| void | addTieToFunction () |
| Slot. | |
| void | addUpperBound () |
| Slot.Adds upper bound to the selected parameter property. | |
| void | addUpperBound10 () |
| Slot.Adds upper bound to the selected parameter property. | |
| void | addUpperBound50 () |
| Slot.Adds upper bound to the selected parameter property. | |
| void | browserHelp () |
| Open a web page with description of FitPropertyBrowser. | |
| void | clearAllPlots () |
| void | clearFitResultStatus () |
| Clear the Fit status display. | |
| void | closeFit () |
| void | columnChanged (QtProperty *prop) |
| ================================================================================================= Slot connected to the change signals of properties m_xColumn, m_yColumn, and m_errColumn. | |
| void | copy () |
| Copy the function string to the clipboard. | |
| void | currentItemChanged (QtBrowserItem *) |
| Slot. | |
| void | deleteFunction () |
| Slot. | |
| void | deleteTie () |
| Slot. | |
| void | executeCustomSetupLoad (const QString &name) |
| void | filenameChanged (QtProperty *prop) |
| Called when a filename property changed. | |
| void | functionHelp () |
| Open a web page with description of the current function. | |
| void | loadFunction () |
| void | loadFunctionFromString () |
| void | parameterChanged (QtProperty *prop) |
| Called when one of the parameter values gets changed. | |
| void | paste () |
| Paste a function string from the clipboard. | |
| void | plotGuessAll () |
| Slot. | |
| void | plotGuessCurrent () |
| Slot. | |
| void | plotOrRemoveGuessAll () |
| void | popupMenu (const QPoint &) |
| void | processMultiBGResults () |
| Process and create some output if it is a MultiBG fit. | |
| void | removeBounds () |
| Slot.Removes lower and upper bounds from the selected parameter property. | |
| void | removeGuessAll () |
| Slot. | |
| void | removeGuessCurrent () |
| Slot. | |
| void | reset () |
| reset the function part, renew function, all handlers are new | |
| void | saveFunction () |
| void | setupMultifit () |
| Call MultifitSetupDialog to populate MultiBG function. | |
| void | showFitResultStatus (const QString &status) |
| Display the status string returned from Fit. | |
| void | stringChanged (QtProperty *prop) |
| Called when a string property changed. | |
| void | updateStructureTooltips () |
| Update structure tooltips for all functions. | |
| void | vectorDoubleChanged (QtProperty *prop) |
| Slot. | |
| void | vectorSizeChanged (QtProperty *prop) |
| Slot. | |
Private Member Functions | |
| QtProperty * | addStringListProperty (const QString &name, const std::vector< std::string > &allowed_values) const |
| Create a string list property. | |
| QtProperty * | addStringProperty (const QString &name) const |
| Create a string property and set some settings. | |
| void | checkFunction () |
| Check that the properties match the function. | |
| QPushButton * | createFitMenuButton (QWidget *w) |
| Initialise the layout for the fit button. | |
| void | disableUndo () |
| disable undo when the function changes | |
| QtBrowserItem * | findItem (QtBrowserItem *parent, QtProperty *prop) const |
| Find QtBrowserItem for a property prop among the chidren of. | |
| int | getAllowedIndex (int currentIndex) const |
| Return the nearest allowed workspace index. | |
| QString | getStringPropertyValue (QtProperty *prop) const |
| QtProperty * | getTieProperty (QtProperty *parProp) const |
| Returns the tie property for a parameter property, or NULL. | |
| void | handleFactoryUpdate (Mantid::API::FunctionFactoryUpdateNotification_ptr) |
| Callback for FunctionFactory update notifications. | |
| void | hasConstraints (QtProperty *parProp, bool &hasTie, bool &hasFix, bool &hasBounds) const |
| Does a parameter have a tie. | |
| virtual bool | isWorkspaceValid (Mantid::API::Workspace_sptr) const |
| Check if the workspace can be used in the fit. | |
| void | setCurrentFunction (const Mantid::API::IFunction_const_sptr &f) const |
| Set new current function. | |
| void | setStringPropertyValue (QtProperty *prop, const QString &value) const |
| Set a value to a string property. | |
| void | updateSetupMenus () |
| Update setup menus according to how these are set in settings. | |
| virtual void | workspaceChange (const QString &wsName) |
| Sets the new workspace to the current one. | |
Private Attributes | |
| QMap< QString, QList< int > > | m_allowedSpectra |
| If non-empty it contains references to the spectra allowed to be fitted in this browser: keys are workspace names, values are lists of workspace indices. | |
| QString | m_allowedTableWorkspace |
| If set it contains the table workspace name to be fitted in this browser: | |
| bool | m_auto_back |
| If true background function will be included automatically. | |
| PropertyHandler * | m_autoBackground |
| The autobackground handler. | |
| QString | m_autoBgAttributes |
| List of attributes of the autobackground function as name=value pairs separated by spaces. | |
| QString | m_autoBgName |
| Name of the autobackground function. | |
| PropertyHandler * | m_currentHandler |
| QStringList | m_dataTypes |
| A list of available data types. | |
| int | m_decimals |
| Number of decimal places in double properties. | |
| std::string | m_defaultBackground |
| Default background name. | |
| std::string | m_defaultFunction |
| Default function name. | |
| std::string | m_defaultPeak |
| Default peak name. | |
| QAction * | m_displayActionClearAll |
| QAction * | m_displayActionPlotGuess |
| QAction * | m_displayActionQuality |
| std::string | m_fitAlgOutputStatus |
| std::string | m_fitAlgParameters |
| QSignalMapper * | m_fitMapper |
| Make sure m_groupMember belongs to the group. | |
| QMenu * | m_fitMenu |
| SelectFunctionDialog * | m_fitSelector |
| QTreeWidget * | m_fitTree |
| bool | m_hideWsListWidget |
| bool to display ws list or not | |
| QObject * | m_mantidui |
| holds effectively a MantidUI for connecting | |
| int | m_oldWorkspaceIndex |
| Store workspace index to revert to in case validation fails. | |
| bool | m_peakToolOn |
| Shows if the PeakPickerTool is on. | |
| QAction * | m_setupActionCustomSetup |
| Setup menu. | |
| QAction * | m_setupActionRemove |
| bool | m_shouldBeNormalised |
| Should the data be normalised before fitting? | |
| QLabel * | m_status |
| To display fit status. | |
| std::string | m_storedWorkspaceName |
| store current workspace name | |
| QMap< QString, QtStringPropertyManager * > | m_stringManagers |
| String property managers for special case attributes such as Filename or Formula <attribute_name,string_manager> | |
| QLabel * | m_tip |
| To display a tip text. | |
| Poco::NObserver< FitPropertyBrowser, Mantid::API::FunctionFactoryUpdateNotification > | m_updateObserver |
| Observes algorithm factory update notifications. | |
| QString | m_windowBaseString |
| QLabel * | m_workspaceLabel |
| QListWidget * | m_wsListWidget |
Friends | |
| class | CreateAttributeProperty |
| class | PropertyHandler |
| class | SequentialFitDialog |
| class | SetAttribute |
| class | SetAttributeProperty |
Class FitPropertyBrowser implements QtPropertyBrowser to display and control fitting function parameters and settings.
Definition at line 66 of file FitPropertyBrowser.h.
| MantidQt::MantidWidgets::FitPropertyBrowser::FitPropertyBrowser | ( | QWidget * | parent = nullptr, |
| QObject * | mantidui = nullptr |
||
| ) |
Constructor.
| parent | :: The parent widget - must be an ApplicationWindow |
| mantidui | :: The UI form for MantidPlot |
Definition at line 80 of file FitPropertyBrowser.cpp.
References m_autoBgName, m_boolManager, m_columnManager, m_defaultBackground, m_defaultFunction, m_defaultPeak, m_doubleManager, m_enumManager, m_filenameManager, m_formulaManager, m_groupManager, m_intManager, m_parameterManager, m_stringManager, m_vectorDoubleManager, m_vectorManager, m_vectorSizeManager, m_workspace, and setAutoBackgroundName().
|
override |
Destructor.
Definition at line 684 of file FitPropertyBrowser.cpp.
References m_boolManager, m_browser, m_columnManager, m_compositeFunction, m_doubleManager, m_enumManager, m_filenameManager, m_formulaManager, m_intManager, m_parameterManager, m_stringManager, m_updateObserver, m_vectorDoubleManager, and m_vectorSizeManager.
|
privateslot |
Definition at line 742 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addFunction(), closeFit(), MantidQt::MantidWidgets::PropertyHandler::findCompositeFunction(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), functionChanged(), MantidQt::MantidWidgets::SelectFunctionDialog::getFunction(), getHandler(), m_browser, and m_fitSelector.
Referenced by addFunction().
| void MantidQt::MantidWidgets::FitPropertyBrowser::addAllowedSpectra | ( | const QString & | wsName, |
| const QList< int > & | wsIndices | ||
| ) |
Definition at line 3248 of file FitPropertyBrowser.cpp.
References intChanged(), m_allowedSpectra, m_workspaceIndex, name, and populateWorkspaceNames().
| void MantidQt::MantidWidgets::FitPropertyBrowser::addAllowedTableWorkspace | ( | const QString & | wsName | ) |
Definition at line 3279 of file FitPropertyBrowser.cpp.
References m_allowedTableWorkspace, and name.
| void MantidQt::MantidWidgets::FitPropertyBrowser::addAutoBackground | ( | ) |
Creates and adds the autobackground.
Definition at line 2657 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addFunction(), MantidQt::MantidWidgets::PropertyHandler::calcBaseAll(), currentHandler(), MantidQt::MantidWidgets::PropertyHandler::fit(), Mantid::API::FunctionHandler::function(), getHandler(), MantidQt::MantidWidgets::PropertyHandler::hasPlot(), m_autoBackground, m_autoBgAttributes, m_autoBgName, name, plotCurrentGuess(), MantidQt::MantidWidgets::PropertyHandler::removeFunction(), MantidQt::MantidWidgets::PropertyHandler::setAttribute(), setCurrentFunction(), and value.
Referenced by createCompositeFunction().
|
privateslot |
Slot.Adds lower and upper bounds to the selected parameter property.
Definition at line 2401 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
privateslot |
Slot.Sets the lower and upper bounds of the selected parameter to 10% of its value.
Definition at line 2390 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
privateslot |
Slot.Sets the lower and upper bounds of the selected parameter to 50% of its value.
Definition at line 2396 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
privateslot |
Slot.
Adds lower bound to the selected parameter property and sets it f % below parameter's current value
Definition at line 2342 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addConstraint(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), getHandler(), m_browser, and Mantid::Geometry::x.
Referenced by addBothBounds(), addBothBounds10(), addBothBounds50(), addLowerBound(), addLowerBound10(), addLowerBound50(), addUpperBound(), addUpperBound10(), and addUpperBound50().
|
protected |
Create a double property and set some settings.
| name | :: The name of the new property |
| manager | :: The current property manager |
Definition at line 2452 of file FitPropertyBrowser.cpp.
References m_decimals, m_doubleManager, and name.
Referenced by MantidQt::MantidWidgets::PropertyHandler::addConstraint(), MantidQt::MantidWidgets::CreateAttributeProperty::apply(), MantidQt::MantidWidgets::CreateAttributeProperty::apply(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), MantidQt::MantidWidgets::PropertyHandler::initParameters(), and minimizerChanged().
| void MantidQt::MantidWidgets::FitPropertyBrowser::addFitResultWorkspacesToTableWidget | ( | ) |
Adds the fit result workspaces to the QListWidget in the browser.
Definition at line 519 of file FitPropertyBrowser.cpp.
References m_hideWsListWidget, m_workspaceLabel, m_wsListWidget, name, and outputName().
|
privateslot |
Slot.
Adds a tie. The current item must be a function parameter
Definition at line 2223 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::findHandler(), MantidQt::MantidWidgets::PropertyHandler::fix(), getHandler(), MantidQt::MantidWidgets::PropertyHandler::isParameter(), and m_browser.
Referenced by popupMenu().
|
privateslot |
Slot.
Called to add a new function
Definition at line 727 of file FitPropertyBrowser.cpp.
References acceptFit(), closeFit(), MantidQt::MantidWidgets::PropertyHandler::findCompositeFunction(), getHandler(), m_browser, and m_fitSelector.
Referenced by addFunction(), createAndAddFunction(), and popupMenu().
| QString MantidQt::MantidWidgets::FitPropertyBrowser::addFunction | ( | const QString & | fnName | ) |
A specialisation of addFunction to be used in the workbench.
It returns an id of the added function as a string of "f-dot" indices. This provides function identification that doesn't use PropertyHandlers and can be used on the python side.
| fnName | :: Name of a function to add. |
Definition at line 3297 of file FitPropertyBrowser.cpp.
References addFunction().
| PropertyHandler * MantidQt::MantidWidgets::FitPropertyBrowser::addFunction | ( | const std::string & | fnName | ) |
Create a new function.
Definition at line 709 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addFunction(), functionChanged(), and getHandler().
|
override |
workspace was added
Definition at line 1810 of file FitPropertyBrowser.cpp.
References isWorkspaceValid(), m_allowedSpectra, m_allowedTableWorkspace, m_enumManager, m_workspace, m_workspaceNames, and workspaceName().
|
privateslot |
Slot.
Adds lower bound to the selected parameter property
Definition at line 2359 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
privateslot |
Slot.
Adds lower bound to the selected parameter property
Definition at line 2364 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
privateslot |
Slot.
Adds lower bound to the selected parameter property
Definition at line 2369 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
private |
Create a string list property.
Create a string list property and selects a property manager for it based on the property name.
| name | :: The name of the new property |
| allowed_values | :: A list of the values allowed by the validator |
Definition at line 2487 of file FitPropertyBrowser.cpp.
References m_enumManager, and name.
Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply().
|
private |
Create a string property and set some settings.
Create a string property and selects a property manager for it based on the property name.
| name | :: The name of the new property |
!! dont forget to change the manager !!!
Definition at line 2466 of file FitPropertyBrowser.cpp.
References m_filenameManager, m_formulaManager, m_stringManager, and name.
Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply().
|
privateslot |
Slot.
Adds a tie. Full expression to be entered <name>=<formula>
Definition at line 2149 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addTie(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), Mantid::API::FunctionHandler::function(), MantidQt::MantidWidgets::PropertyHandler::functionPrefix(), getHandler(), MantidQt::MantidWidgets::PropertyHandler::isParameter(), and m_browser.
Referenced by popupMenu().
|
privateslot |
Slot.
Ties a parameter to a parameter with the same name of a different function
Definition at line 2177 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addTie(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), Mantid::API::FunctionHandler::function(), getHandler(), Mantid::API::ParameterReference::getLocalFunction(), Mantid::API::ParameterReference::getLocalIndex(), MantidQt::MantidWidgets::PropertyHandler::isParameter(), m_browser, m_compositeFunction, and Mantid::API::IFunction::parameterName().
Referenced by popupMenu().
|
privateslot |
Slot.Adds upper bound to the selected parameter property.
Definition at line 2384 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
privateslot |
Slot.Adds upper bound to the selected parameter property.
Definition at line 2374 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
privateslot |
Slot.Adds upper bound to the selected parameter property.
Definition at line 2379 of file FitPropertyBrowser.cpp.
References addConstraint().
Referenced by popupMenu().
|
protectedvirtual |
Adds the workspace index property to the browser.
Definition at line 3045 of file FitPropertyBrowser.cpp.
References m_browser, m_settingsGroup, m_workspace, and m_workspaceIndex.
Referenced by setWorkspaceProperties().
|
signal |
Referenced by doFit().
|
signal |
Referenced by finishHandle().
|
signal |
Referenced by doFit().
|
overridevirtual |
Allow or disallow sequential fits (depending on whether other conditions are met)
================================================================================================= Allow/disallow sequential fits, depending on whether other conditions are met
| allow | :: [input] Allow or disallow |
Implements MantidQt::MantidWidgets::IWorkspaceFitControl.
Definition at line 3226 of file FitPropertyBrowser.cpp.
References m_compositeFunction, and m_fitActionSeqFit.
|
protectedvirtualslot |
Called when a bool property is changed.
Called when a bool property changed.
| prop | :: A pointer to the property |
Definition at line 1287 of file FitPropertyBrowser.cpp.
References enactAttributeChange(), errorsEnabled(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), getHandler(), m_boolManager, m_changeSlotsEnabled, m_ignoreInvalidData, m_parameterManager, m_plotCompositeMembers, m_plotDiff, and m_showParamErrors.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::boolChanged(), and initBasicLayout().
|
privateslot |
Open a web page with description of FitPropertyBrowser.
================================================================================================= Show online browser help
Definition at line 3217 of file FitPropertyBrowser.cpp.
References MantidQt::API::HelpWindow::showPage().
Referenced by popupMenu().
| double MantidQt::MantidWidgets::FitPropertyBrowser::centre | ( | ) | const |
Centre of the current peak.
Definition at line 1515 of file FitPropertyBrowser.cpp.
References m_currentHandler, and MantidQt::MantidWidgets::PropertyHandler::pfun().
|
signal |
|
signal |
Referenced by finishHandle(), and initBasicLayout().
|
private |
Check that the properties match the function.
Definition at line 2522 of file FitPropertyBrowser.cpp.
|
virtualslot |
Slot.
Removes all functions.
Definition at line 2086 of file FitPropertyBrowser.cpp.
References clearBrowser(), createCompositeFunction(), functionCleared(), getHandler(), and MantidQt::MantidWidgets::PropertyHandler::removeAllPlots().
Referenced by executeSetupMenu(), findPeaks(), and popupMenu().
|
privateslot |
Definition at line 2445 of file FitPropertyBrowser.cpp.
References removeFitCurves().
Referenced by executeDisplayMenu().
|
slot |
Definition at line 2093 of file FitPropertyBrowser.cpp.
References m_functionsGroup.
Referenced by clear(), loadFunction(), and reset().
|
privateslot |
Clear the Fit status display.
Definition at line 1751 of file FitPropertyBrowser.cpp.
References m_status.
Referenced by initBasicLayout(), and undoFit().
|
privateslot |
Definition at line 758 of file FitPropertyBrowser.cpp.
References m_fitSelector.
Referenced by acceptFit(), and addFunction().
|
privateslot |
================================================================================================= Slot connected to the change signals of properties m_xColumn, m_yColumn, and m_errColumn.
| prop | :: Property that changed. |
Definition at line 3090 of file FitPropertyBrowser.cpp.
References m_columnManager, m_doubleManager, m_endX, m_startX, m_xColumn, and workspaceName().
Referenced by initBasicLayout().
|
inline |
Get Composite Function.
Definition at line 127 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction(), MantidQt::MantidWidgets::PropertyHandler::addTie(), MantidQt::MantidWidgets::MultifitSetupDialog::cellChanged(), doFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), MantidQt::MantidWidgets::SequentialFitDialog::getFitResults(), getOldExpressionAsString(), isUndoEnabled(), MantidQt::MantidWidgets::MultifitSetupDialog::MultifitSetupDialog(), processMultiBGResults(), removeFunction(), MantidQt::MantidWidgets::PropertyHandler::removeTie(), MantidQt::MantidWidgets::PropertyHandler::renameChildren(), MantidQt::MantidWidgets::PropertyHandler::setAttribute(), MantidQt::MantidWidgets::PropertyHandler::setAttribute(), MantidQt::MantidWidgets::PropertyHandler::setAttribute(), stringChanged(), undoFit(), and updateBrowserFromFitResults().
| bool MantidQt::MantidWidgets::FitPropertyBrowser::convolveMembers | ( | ) | const |
Get the "ConvolveMembers" option.
Definition at line 1190 of file FitPropertyBrowser.cpp.
References m_boolManager, and m_convolveMembers.
Referenced by doFit().
|
privateslot |
Copy the function string to the clipboard.
Definition at line 2623 of file FitPropertyBrowser.cpp.
References theFunction().
Referenced by executeSetupManageMenu(), and popupMenu().
| std::string MantidQt::MantidWidgets::FitPropertyBrowser::costFunction | ( | ) | const |
Get the cost function.
Definition at line 1182 of file FitPropertyBrowser.cpp.
References m_costFunction, m_costFunctions, and m_enumManager.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), and doFit().
| int MantidQt::MantidWidgets::FitPropertyBrowser::count | ( | ) | const |
Get count.
Get number of functions in CompositeFunction.
Definition at line 1572 of file FitPropertyBrowser.cpp.
References m_compositeFunction.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::checkFitEnabled(), MantidQt::MantidWidgets::SequentialFitDialog::getFitResults(), isPeak(), and popupMenu().
| bool MantidQt::MantidWidgets::FitPropertyBrowser::createAndAddFunction | ( | const Mantid::API::MatrixWorkspace_sptr | inputWS, |
| const size_t | peakIndex, | ||
| const std::unique_ptr< FindPeakStrategyGeneric > & | findPeakStrategy | ||
| ) |
Definition at line 3301 of file FitPropertyBrowser.cpp.
References addFunction(), defaultPeakType(), endX(), startX(), and workspaceIndex().
Referenced by findPeaks().
|
protected |
Create CompositeFunction from pointer.
Create CompositeFunction from function pointer.
| func | :: [input] Pointer to function |
Definition at line 764 of file FitPropertyBrowser.cpp.
References addAutoBackground(), disableUndo(), functionChanged(), functionRemoved(), m_auto_back, m_autoBackground, m_compositeFunction, setCurrentFunction(), setFitEnabled(), and setWorkspace().
| void MantidQt::MantidWidgets::FitPropertyBrowser::createCompositeFunction | ( | const QString & | str = "" | ) |
Create CompositeFunction from string.
| str | :: [input] Function string |
Definition at line 799 of file FitPropertyBrowser.cpp.
References createCompositeFunction(), and tryCreateFitFunction().
Referenced by clear(), createCompositeFunction(), initBasicLayout(), loadFunction(), paste(), and reset().
|
protected |
Create editors and assign them to the managers.
Associates a particular widget factory to each property manager. Thus, the factory will automatically create widgets befitting to edit the properties that we define.
| w | :: widget showing the properties tree and the actions buttons |
Definition at line 553 of file FitPropertyBrowser.cpp.
References m_boolManager, m_browser, m_columnManager, m_doubleManager, m_enumManager, m_filenameManager, m_formulaManager, m_intManager, m_parameterManager, m_stringManager, m_vectorDoubleManager, and m_vectorSizeManager.
Referenced by init(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::init().
|
private |
Initialise the layout for the fit button.
This initialization includes:
| w | widget parenting the action menus and the property tree browser |
Definition at line 277 of file FitPropertyBrowser.cpp.
References executeFitMenu(), m_fitMapper, m_fitMenu, m_tip, and populateFitMenuButton().
Referenced by initBasicLayout().
|
signal |
Referenced by currentItemChanged(), and setCurrentFunction().
| PropertyHandler * MantidQt::MantidWidgets::FitPropertyBrowser::currentHandler | ( | ) | const |
Get the current function.
Definition at line 1575 of file FitPropertyBrowser.cpp.
References m_currentHandler.
Referenced by addAutoBackground(), and functionHelp().
|
privateslot |
Slot.
Responds to changing the current item
Definition at line 2042 of file FitPropertyBrowser.cpp.
References currentChanged(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), getHandler(), and m_currentHandler.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and initBasicLayout().
| const std::string & MantidQt::MantidWidgets::FitPropertyBrowser::defaultBackgroundType | ( | ) | const |
Get the default background type.
Definition at line 1067 of file FitPropertyBrowser.cpp.
References m_defaultBackground.
| const std::string & MantidQt::MantidWidgets::FitPropertyBrowser::defaultFunctionType | ( | ) | const |
Get the default function type.
Definition at line 1047 of file FitPropertyBrowser.cpp.
References m_defaultFunction.
| std::string MantidQt::MantidWidgets::FitPropertyBrowser::defaultPeakType | ( | ) |
Get the default peak type.
Definition at line 1053 of file FitPropertyBrowser.cpp.
References Mantid::API::g_log, m_defaultPeak, m_registeredPeaks, setDefaultPeakType(), and Mantid::Kernel::Logger::warning().
Referenced by createAndAddFunction().
|
privateslot |
Slot.
Called to remove a function
Definition at line 1038 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::findHandler(), getHandler(), m_browser, and removeFunction().
Referenced by popupMenu().
|
privateslot |
Slot.
Deletes a tie.
Definition at line 2237 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::findHandler(), Mantid::API::FunctionHandler::function(), getHandler(), Mantid::API::ParameterReference::getLocalFunction(), Mantid::API::ParameterReference::getLocalIndex(), MantidQt::MantidWidgets::PropertyHandler::getTies(), m_browser, m_compositeFunction, Mantid::API::IFunction::parameterName(), and MantidQt::MantidWidgets::PropertyHandler::removeTie().
Referenced by popupMenu().
|
private |
disable undo when the function changes
Definition at line 2127 of file FitPropertyBrowser.cpp.
References m_fitActionUndoFit, and m_initialParameters.
Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction(), createCompositeFunction(), enumChanged(), and undoFit().
|
protected |
Do the fitting.
Creates an instance of Fit algorithm, sets its properties and launches it.
Definition at line 1598 of file FitPropertyBrowser.cpp.
References algorithmFailed(), algorithmStarted(), compositeFunction(), convolveMembers(), costFunction(), endX(), Mantid::API::g_log, getErrColumnName(), getExcludeRange(), getPeakRadius(), getWorkspace(), getXColumnName(), getYColumnName(), ignoreInvalidData(), isHistogramFit(), m_fitActionUndoFit, m_fitAlgParameters, m_initialParameters, m_shouldBeNormalised, maxIterations(), minimizer(), Mantid::API::AlgorithmObserver::observeFinish(), outputName(), startX(), Mantid::Kernel::Logger::warning(), workspaceIndex(), and workspaceName().
Referenced by executeFitMenu(), and fit().
|
protectedvirtualslot |
Called when a double property changed.
| prop | :: A pointer to the property |
Definition at line 1362 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addConstraint(), enactAttributeChange(), endX(), endXChanged(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), getHandler(), MantidQt::MantidWidgets::PropertyHandler::getParameterProperty(), m_changeSlotsEnabled, m_compositeFunction, m_doubleManager, m_endX, m_startX, MantidQt::MantidWidgets::PropertyHandler::setAttribute(), setWorkspace(), startX(), startXChanged(), value, and xRangeChanged().
Referenced by initBasicLayout(), and setXRange().
|
protectedslot |
Definition at line 1403 of file FitPropertyBrowser.cpp.
References Mantid::API::g_log, MantidQt::MantidWidgets::PropertyHandler::setAttribute(), MantidQt::MantidWidgets::PropertyHandler::setVectorAttribute(), and Mantid::Kernel::Logger::warning().
Referenced by boolChanged(), doubleChanged(), intChanged(), vectorDoubleChanged(), and vectorSizeChanged().
| double MantidQt::MantidWidgets::FitPropertyBrowser::endX | ( | ) | const |
Get the end X.
Definition at line 1926 of file FitPropertyBrowser.cpp.
References m_doubleManager, and m_endX.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), MantidQt::MantidWidgets::PropertyHandler::addFunction(), MantidQt::MantidWidgets::PropertyHandler::centre(), MantidQt::MantidWidgets::PropertyHandler::changeType(), createAndAddFunction(), doFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), MantidQt::MantidWidgets::PropertyHandler::EstimateFwhm(), findPeaks(), MantidQt::MantidWidgets::PropertyHandler::fit(), MantidQt::MantidWidgets::PropertyHandler::setFunctionWorkspace(), setupMultifit(), and setWorkspace().
|
signal |
Referenced by doubleChanged(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged().
|
protectedvirtualslot |
Called when the function name property changed.
| prop | :: A pointer to the function name property m_functionName |
Definition at line 1246 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::changeType(), disableUndo(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), functionChanged(), getHandler(), intChanged(), m_changeSlotsEnabled, m_compositeFunction, m_enumManager, m_evaluationType, m_minimizer, m_storedWorkspaceName, m_workspace, m_workspaceIndex, minimizerChanged(), MantidQt::MantidWidgets::PropertyHandler::parentHandler(), setCurrentFunction(), setWorkspaceProperties(), workspaceChange(), and workspaceName().
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), and initBasicLayout().
|
signal |
Referenced by boolChanged().
|
slot |
Definition at line 624 of file FitPropertyBrowser.cpp.
References updateSetupMenus().
Referenced by executeSetupManageMenu().
|
privateslot |
Definition at line 608 of file FitPropertyBrowser.cpp.
References loadFunction(), and name.
Referenced by updateSetupMenus().
|
slot |
Definition at line 616 of file FitPropertyBrowser.cpp.
References name, and updateSetupMenus().
Referenced by updateSetupMenus().
|
slot |
Definition at line 652 of file FitPropertyBrowser.cpp.
References clearAllPlots(), and plotOrRemoveGuessAll().
Referenced by initBasicLayout().
|
signal |
|
virtualslot |
Definition at line 640 of file FitPropertyBrowser.cpp.
References doFit(), fit(), sequentialFit(), and undoFit().
Referenced by createFitMenuButton(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::executeFitMenu().
|
slot |
Definition at line 660 of file FitPropertyBrowser.cpp.
References findPeaks().
Referenced by initBasicLayout().
|
slot |
Definition at line 672 of file FitPropertyBrowser.cpp.
References copy(), executeClearCustomSetups(), loadFunctionFromString(), and saveFunction().
Referenced by initBasicLayout().
|
slot |
Definition at line 667 of file FitPropertyBrowser.cpp.
References clear().
Referenced by initBasicLayout().
|
privateslot |
Called when a filename property changed.
| prop | :: A pointer to the property |
Definition at line 1506 of file FitPropertyBrowser.cpp.
References getHandler(), and m_changeSlotsEnabled.
|
private |
Find QtBrowserItem for a property prop among the chidren of.
Definition at line 2023 of file FitPropertyBrowser.cpp.
References findItem().
Referenced by findItem().
| void MantidQt::MantidWidgets::FitPropertyBrowser::findPeaks | ( | const std::unique_ptr< FindPeakStrategyGeneric > | findPeakStrategy | ) |
Definition at line 2739 of file FitPropertyBrowser.cpp.
References clear(), createAndAddFunction(), endX(), startX(), workspaceIndex(), and workspaceName().
Referenced by executePeakFindingAlgMenu().
|
overridevirtual |
Called when the Fit is finished.
Reimplemented from Mantid::API::AlgorithmObserver.
Reimplemented in MantidQt::MantidWidgets::MuonFitPropertyBrowser.
Definition at line 1695 of file FitPropertyBrowser.cpp.
References algorithmFinished(), changeWindowTitle(), Mantid::Kernel::IPropertyManager::existsProperty(), fitResultsChanged(), fittingDone(), Mantid::Kernel::IPropertyManager::getProperty(), Mantid::Kernel::IPropertyManager::getPropertyValue(), m_compositeFunction, m_displayActionQuality, m_fitAlgOutputStatus, multifitFinished(), name, and updateBrowserFromFitResults().
|
virtualslot |
Do the fit.
Definition at line 3056 of file FitPropertyBrowser.cpp.
References doFit(), m_intManager, and m_maxIterations.
Referenced by executeFitMenu(), and popupMenu().
|
signal |
Referenced by finishHandle(), and initBasicLayout().
|
signal |
signal which can optionally be caught for customization after a fit has been done
Referenced by finishHandle().
|
signal |
Referenced by undoFit().
|
signal |
|
signal |
Referenced by clear().
|
signal |
Referenced by handleFactoryUpdate(), and initBasicLayout().
|
privateslot |
Open a web page with description of the current function.
================================================================================================= Show online function help
Definition at line 3207 of file FitPropertyBrowser.cpp.
References currentHandler(), MantidQt::MantidWidgets::PropertyHandler::ifun(), and MantidQt::API::HelpWindow::showFitFunction().
Referenced by popupMenu().
|
signal |
Referenced by loadFunction().
|
signal |
Referenced by createCompositeFunction(), and removeFunction().
| double MantidQt::MantidWidgets::FitPropertyBrowser::fwhm | ( | ) | const |
Width of the current peak.
Definition at line 1553 of file FitPropertyBrowser.cpp.
References m_currentHandler, and MantidQt::MantidWidgets::PropertyHandler::pfun().
|
private |
Return the nearest allowed workspace index.
If the current workspace index is set to a disallowed value this function returns the nearest allowed index.
Otherwise the current index is returned.
Definition at line 2528 of file FitPropertyBrowser.cpp.
References getWorkspace(), m_allowedSpectra, m_oldWorkspaceIndex, workspace, and workspaceName().
Referenced by intChanged(), and setWorkspaceIndex().
|
inline |
Definition at line 243 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::init().
| std::string MantidQt::MantidWidgets::FitPropertyBrowser::getCentreParameterNameOf | ( | const QString & | prefix | ) |
Definition at line 3368 of file FitPropertyBrowser.cpp.
References getPeakHandler().
| QString MantidQt::MantidWidgets::FitPropertyBrowser::getConstraintsString | ( | ) | const |
Creates the "Constraints" property value for the Fit algorithm.
|
inline |
Number of decimal places in double properties.
Definition at line 246 of file FitPropertyBrowser.h.
| QString MantidQt::MantidWidgets::FitPropertyBrowser::getErrColumnName | ( | ) | const |
Get the name of the Error column.
Definition at line 2005 of file FitPropertyBrowser.cpp.
References getWorkspace(), m_columnManager, and m_errColumn.
Referenced by doFit().
| std::string MantidQt::MantidWidgets::FitPropertyBrowser::getExcludeRange | ( | ) | const |
Get the excluded range for the fit.
Get the excluded range.
Definition at line 1208 of file FitPropertyBrowser.cpp.
References m_excludeRange, and m_stringManager.
Referenced by doFit().
| const std::string & MantidQt::MantidWidgets::FitPropertyBrowser::getFitAlgorithmOutputStatus | ( | ) | const |
================================================================================================= Get Fit Algorithm output statuss
Definition at line 3202 of file FitPropertyBrowser.cpp.
References m_fitAlgOutputStatus.
| const std::string & MantidQt::MantidWidgets::FitPropertyBrowser::getFitAlgorithmParameters | ( | ) | const |
================================================================================================= Get Fit Algorithm parameters
Definition at line 3197 of file FitPropertyBrowser.cpp.
References m_fitAlgParameters.
|
inline |
Return the Fit menu.
This gives Python access to events emitted by this menu.
Definition at line 280 of file FitPropertyBrowser.h.
| Mantid::API::IFunction_sptr MantidQt::MantidWidgets::FitPropertyBrowser::getFittingFunction | ( | ) | const |
Return the fitting function.
Return the function that will be passed to Fit.
Definition at line 1678 of file FitPropertyBrowser.cpp.
References getFunctionAtIndex(), and m_compositeFunction.
Referenced by getFunctionString().
| Mantid::API::IFunction_sptr MantidQt::MantidWidgets::FitPropertyBrowser::getFunctionAtIndex | ( | std::size_t const & | index | ) | const |
Return a function at a specific index in the composite function.
Return the function within a composite function at the position specified.
Definition at line 1691 of file FitPropertyBrowser.cpp.
References index, and m_compositeFunction.
Referenced by getFittingFunction(), processMultiBGResults(), and setupMultifit().
| std::string MantidQt::MantidWidgets::FitPropertyBrowser::getFunctionString | ( | ) | const |
Get the function as a string.
Definition at line 1731 of file FitPropertyBrowser.cpp.
References getFittingFunction().
| PropertyHandler * MantidQt::MantidWidgets::FitPropertyBrowser::getHandler | ( | ) | const |
Get handler to the root composite function.
Definition at line 705 of file FitPropertyBrowser.cpp.
References m_compositeFunction.
Referenced by acceptFit(), addAutoBackground(), addConstraint(), addFixTie(), addFunction(), addFunction(), addTie(), addTieToFunction(), boolChanged(), clear(), currentItemChanged(), deleteFunction(), deleteTie(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), enumChanged(), filenameChanged(), MantidQt::MantidWidgets::PropertyHandler::fit(), MantidQt::MantidWidgets::SequentialFitDialog::getFitResults(), getPeakHandler(), getPeakPrefixes(), intChanged(), loadFunction(), parameterChanged(), plotOrRemoveGuessAll(), popupMenu(), removeBounds(), removeFunction(), setCurrentFunction(), setXRange(), stringChanged(), undoFit(), updateAttributes(), updateBrowserFromFitResults(), updateParameters(), updateStructureTooltips(), vectorDoubleChanged(), and vectorSizeChanged().
| QString MantidQt::MantidWidgets::FitPropertyBrowser::getOldExpressionAsString | ( | const QString & | parameterName | ) | const |
Get the tie expression stored in the function in case the new expression is invalid and the GUI needs to be reset.
| parameterName | :: A pointer to the parameter name |
Definition at line 1483 of file FitPropertyBrowser.cpp.
References compositeFunction().
Referenced by stringChanged().
| QStringList MantidQt::MantidWidgets::FitPropertyBrowser::getParameterNames | ( | ) | const |
Get function parameter names.
================================================================================================= Get parameter names
Definition at line 3184 of file FitPropertyBrowser.cpp.
References theFunction().
| QList< double > MantidQt::MantidWidgets::FitPropertyBrowser::getParameterValues | ( | ) | const |
Get function parameter values.
================================================================================================= Get function parameter values
Definition at line 3170 of file FitPropertyBrowser.cpp.
References theFunction().
| double MantidQt::MantidWidgets::FitPropertyBrowser::getPeakCentreOf | ( | const QString & | prefix | ) |
Definition at line 3336 of file FitPropertyBrowser.cpp.
References getPeakHandler().
| double MantidQt::MantidWidgets::FitPropertyBrowser::getPeakFwhmOf | ( | const QString & | prefix | ) |
Definition at line 3358 of file FitPropertyBrowser.cpp.
References getPeakHandler().
| PropertyHandler * MantidQt::MantidWidgets::FitPropertyBrowser::getPeakHandler | ( | const QString & | prefix | ) |
Definition at line 3317 of file FitPropertyBrowser.cpp.
References getHandler(), index, and n.
Referenced by getCentreParameterNameOf(), getPeakCentreOf(), getPeakFwhmOf(), getPeakHeightOf(), getWidthParameterNameOf(), isParameterExplicitlySetOf(), setPeakCentreOf(), setPeakFwhmOf(), and setPeakHeightOf().
| double MantidQt::MantidWidgets::FitPropertyBrowser::getPeakHeightOf | ( | const QString & | prefix | ) |
Definition at line 3347 of file FitPropertyBrowser.cpp.
References getPeakHandler().
| QStringList MantidQt::MantidWidgets::FitPropertyBrowser::getPeakPrefixes | ( | ) | const |
Definition at line 3378 of file FitPropertyBrowser.cpp.
References getHandler().
| int MantidQt::MantidWidgets::FitPropertyBrowser::getPeakRadius | ( | ) | const |
Get the peak radius for peak functions.
Definition at line 1205 of file FitPropertyBrowser.cpp.
References m_intManager, and m_peakRadius.
Referenced by doFit().
|
inlineprotected |
Definition at line 459 of file FitPropertyBrowser.h.
|
private |
Definition at line 2512 of file FitPropertyBrowser.cpp.
Referenced by MantidQt::MantidWidgets::SetAttribute::apply().
|
private |
Returns the tie property for a parameter property, or NULL.
Returns the tie property for a parameter property, or nullptr.
| parProp | :: parameter property |
Definition at line 2312 of file FitPropertyBrowser.cpp.
References Mantid::Geometry::x.
| QString MantidQt::MantidWidgets::FitPropertyBrowser::getTieString | ( | ) | const |
Creates the "Ties" property value for the Fit algorithm.
| std::string MantidQt::MantidWidgets::FitPropertyBrowser::getWidthParameterNameOf | ( | const QString & | prefix | ) |
Definition at line 3363 of file FitPropertyBrowser.cpp.
References getPeakHandler().
| std::shared_ptr< Mantid::API::Workspace > MantidQt::MantidWidgets::FitPropertyBrowser::getWorkspace | ( | ) | const |
Get the workspace.
Definition at line 1074 of file FitPropertyBrowser.cpp.
References workspaceName().
Referenced by MantidQt::MantidWidgets::PropertyHandler::calcBase(), doFit(), MantidQt::MantidWidgets::PropertyHandler::EstimateFwhm(), getAllowedIndex(), getErrColumnName(), getXColumnName(), getXRange(), getYColumnName(), and MantidQt::MantidWidgets::PropertyHandler::setCentre().
|
inline |
Return the Fit menu.
This gives Python access to events emitted by this menu.
Definition at line 284 of file FitPropertyBrowser.h.
| const QStringList & MantidQt::MantidWidgets::FitPropertyBrowser::getWorkspaceNames | ( | ) |
Returns the list of workspaces that are currently been worked on by the fit property browser.
Returns the list of workspace names the fit property browser is working on.
Definition at line 2830 of file FitPropertyBrowser.cpp.
References m_workspaceNames.
| QString MantidQt::MantidWidgets::FitPropertyBrowser::getXColumnName | ( | ) | const |
Get the name of the X column.
Definition at line 1975 of file FitPropertyBrowser.cpp.
References getWorkspace(), m_columnManager, and m_xColumn.
Referenced by doFit().
| QVector< double > MantidQt::MantidWidgets::FitPropertyBrowser::getXRange | ( | ) |
Get the X limits of the workspace.
Definition at line 1947 of file FitPropertyBrowser.cpp.
References getWorkspace(), m_columnManager, m_xColumn, and workspaceIndex().
| QString MantidQt::MantidWidgets::FitPropertyBrowser::getYColumnName | ( | ) | const |
Get the name of the Y column.
Definition at line 1990 of file FitPropertyBrowser.cpp.
References getWorkspace(), m_columnManager, and m_yColumn.
Referenced by doFit().
|
private |
Callback for FunctionFactory update notifications.
Called when the function factory has been updated.
| notice | A Poco notification object |
Definition at line 2326 of file FitPropertyBrowser.cpp.
References functionFactoryUpdateReceived().
|
private |
Does a parameter have a tie.
Does a parameter have a tie, is fixed, or has bounds.
| parProp | :: The property for a function parameter |
| hasTie | :: Parameter has a tie |
| hasFix | :: Parameter is fixed |
| hasBounds | :: Parameter has bounds |
Definition at line 2290 of file FitPropertyBrowser.cpp.
Referenced by popupMenu().
| double MantidQt::MantidWidgets::FitPropertyBrowser::height | ( | ) | const |
Height of the current peak.
Definition at line 1534 of file FitPropertyBrowser.cpp.
References m_currentHandler, and MantidQt::MantidWidgets::PropertyHandler::pfun().
|
overrideprotected |
actions to do before the browser is hidden
Disconnect from the AnalysisDataService when hiden.
Definition at line 1798 of file FitPropertyBrowser.cpp.
References setADSObserveEnabled().
| bool MantidQt::MantidWidgets::FitPropertyBrowser::ignoreInvalidData | ( | ) | const |
Get the ignore invalid data option.
Definition at line 1176 of file FitPropertyBrowser.cpp.
References m_boolManager, and m_ignoreInvalidData.
Referenced by doFit().
|
virtual |
Initialise layout.
Initialise the fit property browser.
Reimplemented in MantidQt::MantidWidgets::MuonFitPropertyBrowser.
Definition at line 149 of file FitPropertyBrowser.cpp.
References addDoubleProperty(), createEditors(), initLayout(), m_boolManager, m_browser, m_columnManager, m_convolveMembers, m_costFunction, m_costFunctions, m_endX, m_enumManager, m_errColumn, m_evaluationType, m_evaluationTypes, m_excludeRange, m_functionsGroup, m_groupManager, m_ignoreInvalidData, m_intManager, m_mantidui, m_maxIterations, m_minimizer, m_minimizers, m_output, m_parameterManager, m_peakRadius, m_plotCompositeMembers, m_plotDiff, m_settingsGroup, m_showParamErrors, m_startX, m_stringManager, m_workspace, m_workspaceIndex, m_xColumn, m_yColumn, setIgnoreInvalidData(), updateDecimals(), and xRangeChanged().
|
protected |
Initialise the layout, except for the fit button in the menu bar.
This initialization includes:
| w | widget parenting the action menus and the property tree browser |
Definition at line 331 of file FitPropertyBrowser.cpp.
References boolChanged(), changeWindowTitle(), clearFitResultStatus(), columnChanged(), createCompositeFunction(), createFitMenuButton(), currentItemChanged(), doubleChanged(), enumChanged(), executeDisplayMenu(), executePeakFindingAlgMenu(), executeSetupManageMenu(), executeSetupMenu(), fitResultsChanged(), functionChanged(), functionFactoryUpdateReceived(), intChanged(), itemDoubleClicked(), m_boolManager, m_browser, m_changeSlotsEnabled, m_columnManager, m_displayActionClearAll, m_displayActionPlotGuess, m_displayActionQuality, m_doubleManager, m_enumManager, m_filenameManager, m_formulaManager, m_groupManager, m_intManager, m_parameterManager, m_setupActionCustomSetup, m_setupActionRemove, m_status, m_stringManager, m_tip, m_updateObserver, m_vectorDoubleManager, m_vectorSizeManager, m_workspaceLabel, m_wsListWidget, multifitFinished(), parameterChanged(), populateFunctionNames(), popupMenu(), processMultiBGResults(), showFitResultStatus(), stringChanged(), updateSetupMenus(), updateStructureTooltips(), vectorDoubleChanged(), vectorSizeChanged(), and workspaceDoubleClicked().
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and initLayout().
|
protected |
Initialise the layout.
This initialization includes:
| w | widget parenting the action menus and the property tree browser |
Definition at line 267 of file FitPropertyBrowser.cpp.
References initBasicLayout().
Referenced by init().
|
protectedvirtualslot |
Called when an int property changed.
| prop | :: A pointer to the property |
Definition at line 1314 of file FitPropertyBrowser.cpp.
References enactAttributeChange(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), getAllowedIndex(), getHandler(), index, m_changeSlotsEnabled, m_compositeFunction, m_intManager, m_maxIterations, m_oldWorkspaceIndex, m_peakRadius, m_workspaceIndex, sendParameterChanged(), MantidQt::MantidWidgets::PropertyHandler::setAttribute(), MantidQt::MantidWidgets::PropertyHandler::setFunctionWorkspace(), setWorkspaceIndex(), updatePlotSpectrum(), workspaceIndex(), and workspaceIndexChanged().
Referenced by addAllowedSpectra(), enumChanged(), and initBasicLayout().
|
inline |
Definition at line 240 of file FitPropertyBrowser.h.
| bool MantidQt::MantidWidgets::FitPropertyBrowser::isFitEnabled | ( | ) | const |
Returns true if the function is ready for a fit.
Definition at line 2144 of file FitPropertyBrowser.cpp.
References m_fitActionFit.
Referenced by popupMenu().
| bool MantidQt::MantidWidgets::FitPropertyBrowser::isHistogramFit | ( | ) | const |
Get "HistogramFit" option.
Definition at line 1193 of file FitPropertyBrowser.cpp.
References m_enumManager, m_evaluationType, and m_evaluationTypes.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), and doFit().
| bool MantidQt::MantidWidgets::FitPropertyBrowser::isParameterExplicitlySetOf | ( | const QString & | prefix, |
| const std::string & | param | ||
| ) |
Definition at line 3373 of file FitPropertyBrowser.cpp.
References getPeakHandler().
| bool MantidQt::MantidWidgets::FitPropertyBrowser::isPeak | ( | ) | const |
Is the current function a peak?
Definition at line 1912 of file FitPropertyBrowser.cpp.
References count(), m_currentHandler, and MantidQt::MantidWidgets::PropertyHandler::pfun().
| bool MantidQt::MantidWidgets::FitPropertyBrowser::isUndoEnabled | ( | ) | const |
Tells if undo can be done.
Definition at line 2133 of file FitPropertyBrowser.cpp.
References compositeFunction(), and m_initialParameters.
Referenced by popupMenu().
|
privatevirtual |
Check if the workspace can be used in the fit.
The accepted types are MatrixWorkspaces or TableWorkspaces
| ws | :: The workspace |
Reimplemented in MantidQt::MantidWidgets::MuonFitPropertyBrowser.
Definition at line 1906 of file FitPropertyBrowser.cpp.
Referenced by addHandle(), and populateWorkspaceNames().
|
signal |
Referenced by initBasicLayout().
|
privateslot |
Definition at line 2581 of file FitPropertyBrowser.cpp.
References loadFunction(), and name.
Referenced by executeCustomSetupLoad(), loadFunction(), loadFunctionFromString(), popupMenu(), and setupMultifit().
| void MantidQt::MantidWidgets::FitPropertyBrowser::loadFunction | ( | const QString & | funcString | ) |
Load function.
Definition at line 2605 of file FitPropertyBrowser.cpp.
References clearBrowser(), createCompositeFunction(), functionLoaded(), getHandler(), m_auto_back, and MantidQt::MantidWidgets::PropertyHandler::removeAllPlots().
|
privateslot |
Definition at line 2597 of file FitPropertyBrowser.cpp.
References loadFunction().
Referenced by executeSetupManageMenu().
| int MantidQt::MantidWidgets::FitPropertyBrowser::maxIterations | ( | ) | const |
Get the max number of iterations.
Definition at line 1202 of file FitPropertyBrowser.cpp.
References m_intManager, and m_maxIterations.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), and doFit().
| std::string MantidQt::MantidWidgets::FitPropertyBrowser::minimizer | ( | bool | withProperties = false | ) | const |
Get the minimizer.
Definition at line 1145 of file FitPropertyBrowser.cpp.
References m_boolManager, m_doubleManager, m_enumManager, m_intManager, m_minimizer, m_minimizerProperties, m_minimizers, m_stringManager, and value.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), doFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), and minimizerChanged().
|
protected |
Called when the minimizer changes. Creates minimizes's properties.
================================================================================================= Called when the minimizer changes.
Creates minimizes's properties.
Definition at line 3114 of file FitPropertyBrowser.cpp.
References addDoubleProperty(), m_boolManager, m_doubleManager, m_intManager, m_minimizerProperties, m_settingsGroup, m_stringManager, and minimizer().
Referenced by enumChanged().
|
protected |
Definition at line 3236 of file FitPropertyBrowser.cpp.
References m_fitMenu.
|
signal |
Referenced by finishHandle(), and initBasicLayout().
|
inline |
Set if the data must be normalised before fitting.
Definition at line 174 of file FitPropertyBrowser.h.
|
virtual |
Get the output name.
Reimplemented in MantidQt::MantidWidgets::MuonFitPropertyBrowser.
Definition at line 1137 of file FitPropertyBrowser.cpp.
References m_output, and m_stringManager.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), addFitResultWorkspacesToTableWidget(), doFit(), and stringChanged().
|
signal |
Referenced by initBasicLayout(), setCentre(), setFwhm(), and setHeight().
|
privateslot |
Called when one of the parameter values gets changed.
This could be caused either by user setting the value or programmatically.
| prop | :: Parameter property which value got changed |
Definition at line 1423 of file FitPropertyBrowser.cpp.
References getHandler(), m_changeSlotsEnabled, and MantidQt::MantidWidgets::PropertyHandler::setParameter().
|
privateslot |
Paste a function string from the clipboard.
Definition at line 2628 of file FitPropertyBrowser.cpp.
References createCompositeFunction().
| bool MantidQt::MantidWidgets::FitPropertyBrowser::plotCompositeMembers | ( | ) | const |
Returns true if a composite's member functions should be plotted also.
Definition at line 2809 of file FitPropertyBrowser.cpp.
References m_boolManager, and m_plotCompositeMembers.
|
signal |
Referenced by addAutoBackground(), and plotGuessCurrent().
| bool MantidQt::MantidWidgets::FitPropertyBrowser::plotDiff | ( | ) | const |
Returns true if the difference plot should be drawn.
Definition at line 2806 of file FitPropertyBrowser.cpp.
References m_boolManager, and m_plotDiff.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::init().
|
signal |
Referenced by plotGuessAll().
|
privateslot |
Slot.
Sends a signal to plot the guess for the whole function
Definition at line 2424 of file FitPropertyBrowser.cpp.
References plotGuess().
Referenced by plotOrRemoveGuessAll(), and popupMenu().
|
privateslot |
Slot.
Sends a signal to plot the guess for the current (selected) function
Definition at line 2419 of file FitPropertyBrowser.cpp.
References plotCurrentGuess().
Referenced by popupMenu().
|
privateslot |
Definition at line 2437 of file FitPropertyBrowser.cpp.
References getHandler(), plotGuessAll(), and removeGuessAll().
Referenced by executeDisplayMenu().
|
protectedvirtual |
Populate the fit button.
This initialization includes:
| fitMapper | the QMap to the fit mapper |
| fitMenu | the QMenu for the fit button |
Definition at line 297 of file FitPropertyBrowser.cpp.
References m_fitActionEvaluate, m_fitActionFit, m_fitActionSeqFit, and m_fitActionUndoFit.
Referenced by createFitMenuButton().
|
protectedvirtualslot |
Get the registered function names.
Reimplemented in MantidQt::MantidWidgets::MuonFitPropertyBrowser.
Definition at line 1213 of file FitPropertyBrowser.cpp.
References Mantid::API::g_log, m_registeredBackgrounds, m_registeredFunctions, m_registeredOther, m_registeredPeaks, and Mantid::Kernel::Logger::warning().
Referenced by initBasicLayout().
|
protected |
Get and store available workspace names.
Definition at line 1757 of file FitPropertyBrowser.cpp.
References isWorkspaceValid(), m_allowedSpectra, m_allowedTableWorkspace, m_enumManager, m_workspace, m_workspaceNames, name, and setWorkspaceIndex().
Referenced by addAllowedSpectra(), setWorkspaceName(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::setWorkspaceName(), and showEvent().
|
privateslot |
Definition at line 821 of file FitPropertyBrowser.cpp.
References addBothBounds(), addBothBounds10(), addBothBounds50(), addFixTie(), addFunction(), addLowerBound(), addLowerBound10(), addLowerBound50(), addTie(), addTieToFunction(), addUpperBound(), addUpperBound10(), addUpperBound50(), browserHelp(), clear(), copy(), count(), deleteFunction(), deleteTie(), MantidQt::MantidWidgets::PropertyHandler::findCompositeFunction(), MantidQt::MantidWidgets::PropertyHandler::findFunction(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), fit(), functionHelp(), getHandler(), hasConstraints(), MantidQt::MantidWidgets::PropertyHandler::hasPlot(), isFitEnabled(), MantidQt::MantidWidgets::PropertyHandler::isParameter(), isUndoEnabled(), loadFunction(), m_browser, m_compositeFunction, m_functionsGroup, m_peakToolOn, m_settingsGroup, plotGuessAll(), plotGuessCurrent(), removeBounds(), removeGuessAll(), removeGuessCurrent(), saveFunction(), setupMultifit(), undoFit(), and workspaceName().
Referenced by initBasicLayout().
|
overridevirtual |
workspace was removed
Reimplemented from MantidQt::API::WorkspaceObserver.
Definition at line 1840 of file FitPropertyBrowser.cpp.
References removeWorkspace().
|
privateslot |
Process and create some output if it is a MultiBG fit.
Definition at line 2870 of file FitPropertyBrowser.cpp.
References compositeFunction(), getFunctionAtIndex(), group, Mantid::Kernel::SingletonHolder< T >::Instance(), name, and workspaceName().
Referenced by initBasicLayout().
|
overridevirtual |
Returns true if the fit should be done against binned (bunched) data.
Implements MantidQt::MantidWidgets::IWorkspaceFitControl.
Definition at line 2811 of file FitPropertyBrowser.cpp.
References m_boolManager, and m_rawData.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::boolChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::getUnnormName(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::setNormalization().
| void MantidQt::MantidWidgets::FitPropertyBrowser::refitAutoBackground | ( | ) |
Definition at line 2699 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::fit(), and m_autoBackground.
|
inline |
Return a list of registered backgrounds.
Definition at line 208 of file FitPropertyBrowser.h.
|
inline |
Return a list of registered functions.
Definition at line 204 of file FitPropertyBrowser.h.
|
inline |
Return a list of registered other functions.
Definition at line 210 of file FitPropertyBrowser.h.
|
inline |
Return a list of registered peaks.
Definition at line 206 of file FitPropertyBrowser.h.
|
privateslot |
Slot.Removes lower and upper bounds from the selected parameter property.
Definition at line 2406 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::findHandler(), getHandler(), m_browser, and MantidQt::MantidWidgets::PropertyHandler::removeConstraint().
Referenced by popupMenu().
|
signal |
Referenced by removeGuessCurrent().
|
signal |
Referenced by clearAllPlots().
|
virtual |
Removes the function held by the property handler.
Definition at line 715 of file FitPropertyBrowser.cpp.
References compositeFunction(), functionChanged(), functionRemoved(), getHandler(), MantidQt::MantidWidgets::PropertyHandler::removeFunction(), and removePlotSignal().
Referenced by deleteFunction().
|
signal |
Referenced by removeGuessAll().
|
privateslot |
Slot.
Sends a signal to remove the guess for the whole function
Definition at line 2435 of file FitPropertyBrowser.cpp.
References removeGuess().
Referenced by plotOrRemoveGuessAll(), and popupMenu().
|
privateslot |
Slot.
Sends a signal to remove the guess for the current (selected) function
Definition at line 2430 of file FitPropertyBrowser.cpp.
References removeCurrentGuess().
Referenced by popupMenu().
|
signal |
|
virtualslot |
Function to toggle the visibility of a settings group property exposed to python.
Definition at line 3073 of file FitPropertyBrowser.cpp.
References m_settingsGroup.
| void MantidQt::MantidWidgets::FitPropertyBrowser::removeWorkspace | ( | const std::string & | wsName | ) |
Definition at line 1842 of file FitPropertyBrowser.cpp.
References m_enumManager, m_workspace, m_workspaceLabel, m_workspaceNames, m_wsListWidget, and workspaceName().
Referenced by postDeleteHandle(), and removeWorkspaceAndSpectra().
| void MantidQt::MantidWidgets::FitPropertyBrowser::removeWorkspaceAndSpectra | ( | const std::string & | wsName | ) |
Definition at line 3272 of file FitPropertyBrowser.cpp.
References m_allowedSpectra, and removeWorkspace().
|
overridevirtual |
Handler of the Rename notifications.
Could be overriden in inherited classes. The default handler is provided (doing nothing).
| oldName | :: The old name of a workspace |
| newName | :: The new name of a workspace |
Reimplemented from MantidQt::API::WorkspaceObserver.
Definition at line 1877 of file FitPropertyBrowser.cpp.
References m_allowedSpectra, m_enumManager, m_workspace, m_workspaceNames, m_wsListWidget, and workspaceChange().
|
privateslot |
reset the function part, renew function, all handlers are new
Definition at line 2634 of file FitPropertyBrowser.cpp.
References clearBrowser(), createCompositeFunction(), and theFunction().
Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction().
|
privateslot |
Definition at line 2558 of file FitPropertyBrowser.cpp.
References saveFunction().
Referenced by executeSetupManageMenu(), popupMenu(), and saveFunction().
| void MantidQt::MantidWidgets::FitPropertyBrowser::saveFunction | ( | const QString & | fnName | ) |
save function
Definition at line 2567 of file FitPropertyBrowser.cpp.
References theFunction(), and updateSetupMenus().
|
inline |
Definition at line 233 of file FitPropertyBrowser.h.
Referenced by intChanged(), and MantidQt::MantidWidgets::PropertyHandler::setParameter().
|
inline |
Definition at line 236 of file FitPropertyBrowser.h.
|
virtualslot |
Definition at line 2731 of file FitPropertyBrowser.cpp.
References m_mantidui, SequentialFitDialog, and workspaceName().
Referenced by executeFitMenu().
|
signal |
|
inline |
Definition at line 315 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::finishHandle().
| void MantidQt::MantidWidgets::FitPropertyBrowser::setADSObserveEnabled | ( | bool | enabled | ) |
Definition at line 1803 of file FitPropertyBrowser.cpp.
References MantidQt::API::WorkspaceObserver::observeAdd(), MantidQt::API::WorkspaceObserver::observePostDelete(), and MantidQt::API::WorkspaceObserver::observeRename().
Referenced by hideEvent(), and showEvent().
| void MantidQt::MantidWidgets::FitPropertyBrowser::setAutoBackgroundName | ( | const QString & | aName | ) |
Remember a background function name to be used for creating auto-background.
| aName | :: A name of the auto-background. The may be followed by function attributes as name=value pairs separated by spaces. |
Definition at line 2711 of file FitPropertyBrowser.cpp.
References m_auto_back, m_autoBgAttributes, m_autoBgName, and name.
Referenced by FitPropertyBrowser().
| void MantidQt::MantidWidgets::FitPropertyBrowser::setCentre | ( | double | value | ) |
Set centre of the current peak.
| value | :: The new centre value |
Definition at line 1525 of file FitPropertyBrowser.cpp.
References Mantid::API::FunctionHandler::function(), m_currentHandler, parameterChanged(), MantidQt::MantidWidgets::PropertyHandler::setCentre(), MantidQt::MantidWidgets::PropertyHandler::updateParameters(), and value.
|
private |
Set new current function.
| f | :: New current function |
Definition at line 1591 of file FitPropertyBrowser.cpp.
References getHandler(), and setCurrentFunction().
| void MantidQt::MantidWidgets::FitPropertyBrowser::setCurrentFunction | ( | PropertyHandler * | h | ) | const |
Set new current function.
| h | :: New current function |
Definition at line 1580 of file FitPropertyBrowser.cpp.
References currentChanged(), MantidQt::MantidWidgets::PropertyHandler::item(), m_browser, and m_currentHandler.
Referenced by addAutoBackground(), MantidQt::MantidWidgets::PropertyHandler::addFunction(), createCompositeFunction(), enumChanged(), and setCurrentFunction().
| void MantidQt::MantidWidgets::FitPropertyBrowser::setDecimals | ( | int | d | ) |
Definition at line 2798 of file FitPropertyBrowser.cpp.
References Mantid::Geometry::d, m_decimals, and updateDecimals().
| void MantidQt::MantidWidgets::FitPropertyBrowser::setDefaultBackgroundType | ( | const std::string & | fnType | ) |
Set the default background type.
Definition at line 1069 of file FitPropertyBrowser.cpp.
References m_defaultBackground, and setDefaultFunctionType().
Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction(), and MantidQt::MantidWidgets::PropertyHandler::changeType().
| void MantidQt::MantidWidgets::FitPropertyBrowser::setDefaultFunctionType | ( | const std::string & | fnType | ) |
Set the default function type.
Definition at line 1050 of file FitPropertyBrowser.cpp.
References m_defaultFunction.
Referenced by setDefaultBackgroundType(), and setDefaultPeakType().
| void MantidQt::MantidWidgets::FitPropertyBrowser::setDefaultPeakType | ( | const std::string & | fnType | ) |
Set the default peak type.
Definition at line 1062 of file FitPropertyBrowser.cpp.
References m_defaultPeak, and setDefaultFunctionType().
Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction(), MantidQt::MantidWidgets::PropertyHandler::changeType(), and defaultPeakType().
|
overridevirtual |
Set the end X.
Implements MantidQt::MantidWidgets::IWorkspaceFitControl.
Definition at line 1929 of file FitPropertyBrowser.cpp.
References m_doubleManager, m_endX, and value.
Referenced by setWorkspaceName().
|
virtual |
Enable/disable the Fit buttons;.
Reimplemented in MantidQt::MantidWidgets::MuonFitPropertyBrowser.
Definition at line 2138 of file FitPropertyBrowser.cpp.
References m_fitActionFit, and m_fitActionSeqFit.
Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction(), createCompositeFunction(), and MantidQt::MantidWidgets::PropertyHandler::removeFunction().
| void MantidQt::MantidWidgets::FitPropertyBrowser::setFwhm | ( | double | value | ) |
Set width of the current peak.
| value | :: The new width value |
Definition at line 1563 of file FitPropertyBrowser.cpp.
References Mantid::API::FunctionHandler::function(), m_currentHandler, parameterChanged(), MantidQt::MantidWidgets::PropertyHandler::setFwhm(), MantidQt::MantidWidgets::PropertyHandler::updateParameters(), and value.
| void MantidQt::MantidWidgets::FitPropertyBrowser::setHeight | ( | double | value | ) |
Set height of the current peak.
| value | :: The new height value |
Definition at line 1544 of file FitPropertyBrowser.cpp.
References Mantid::API::FunctionHandler::function(), m_currentHandler, parameterChanged(), MantidQt::MantidWidgets::PropertyHandler::setHeight(), MantidQt::MantidWidgets::PropertyHandler::updateParameters(), and value.
| void MantidQt::MantidWidgets::FitPropertyBrowser::setIgnoreInvalidData | ( | bool | on | ) |
Set the ignore invalid data option.
Definition at line 1179 of file FitPropertyBrowser.cpp.
References m_boolManager, and m_ignoreInvalidData.
Referenced by init().
| void MantidQt::MantidWidgets::FitPropertyBrowser::setOutputName | ( | const std::string & | name | ) |
Set the output name.
Definition at line 1140 of file FitPropertyBrowser.cpp.
References m_output, m_stringManager, and name.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), and stringChanged().
| void MantidQt::MantidWidgets::FitPropertyBrowser::setPeakCentreOf | ( | const QString & | prefix, |
| double | value | ||
| ) |
Definition at line 3330 of file FitPropertyBrowser.cpp.
References getPeakHandler(), and value.
| void MantidQt::MantidWidgets::FitPropertyBrowser::setPeakFwhmOf | ( | const QString & | prefix, |
| double | value | ||
| ) |
Definition at line 3352 of file FitPropertyBrowser.cpp.
References getPeakHandler(), and value.
| void MantidQt::MantidWidgets::FitPropertyBrowser::setPeakHeightOf | ( | const QString & | prefix, |
| double | value | ||
| ) |
Definition at line 3341 of file FitPropertyBrowser.cpp.
References getPeakHandler(), and value.
|
slot |
Definition at line 2778 of file FitPropertyBrowser.cpp.
References m_displayActionPlotGuess, and m_peakToolOn.
|
overridevirtual |
Set the start X.
Implements MantidQt::MantidWidgets::IWorkspaceFitControl.
Definition at line 1923 of file FitPropertyBrowser.cpp.
References m_doubleManager, m_startX, and value.
Referenced by setWorkspaceName().
|
private |
Set a value to a string property.
| prop | :: A pointer to the property |
| value | :: New value for the property |
Definition at line 2505 of file FitPropertyBrowser.cpp.
References value.
Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply(), and MantidQt::MantidWidgets::SetAttributeProperty::apply().
| void MantidQt::MantidWidgets::FitPropertyBrowser::setTextPlotGuess | ( | const QString & | text | ) |
alter text of Plot Guess
Definition at line 2813 of file FitPropertyBrowser.cpp.
References m_displayActionPlotGuess.
| void MantidQt::MantidWidgets::FitPropertyBrowser::setTip | ( | const QString & | txt | ) |
Display a tip.
| txt | :: The text to display |
Definition at line 2336 of file FitPropertyBrowser.cpp.
References m_tip.
|
privateslot |
Call MultifitSetupDialog to populate MultiBG function.
Definition at line 2835 of file FitPropertyBrowser.cpp.
References endX(), getFunctionAtIndex(), loadFunction(), startX(), and workspaceName().
Referenced by popupMenu().
|
protected |
Sets the workspace to a function.
Definition at line 2641 of file FitPropertyBrowser.cpp.
References endX(), startX(), workspaceIndex(), and workspaceName().
Referenced by MantidQt::MantidWidgets::PropertyHandler::addFunction(), createCompositeFunction(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), and setXRange().
|
overridevirtual |
Set workspace index.
Implements MantidQt::MantidWidgets::IWorkspaceFitControl.
Definition at line 1127 of file FitPropertyBrowser.cpp.
References getAllowedIndex(), index, m_intManager, and m_workspaceIndex.
Referenced by intChanged(), populateWorkspaceNames(), setWorkspaceName(), and setWorkspaceProperties().
|
overridevirtual |
Set the input workspace name.
Implements MantidQt::MantidWidgets::IWorkspaceFitControl.
Reimplemented in MantidQt::MantidWidgets::MuonFitPropertyBrowser.
Definition at line 1096 of file FitPropertyBrowser.cpp.
References m_enumManager, m_workspace, m_workspaceNames, populateWorkspaceNames(), setEndX(), setStartX(), setWorkspaceIndex(), and workspaceIndex().
|
protected |
Display properties relevant to the selected workspace.
Display properties relevant to the selected workspace: WorkspaceIndex, StartX, and EndX for a MatrixWorkspace; XColumn, YColumn, and ErrColumn for a TableWorkspace.
Definition at line 2944 of file FitPropertyBrowser.cpp.
References addWorkspaceIndexToBrowser(), m_browser, m_columnManager, m_customSettingsGroup, m_errColumn, m_evaluationType, m_settingsGroup, m_storedWorkspaceName, m_workspace, m_workspaceIndex, m_xColumn, m_yColumn, name, setWorkspaceIndex(), workspaceName(), and Mantid::Geometry::x.
Referenced by enumChanged().
| void MantidQt::MantidWidgets::FitPropertyBrowser::setXRange | ( | double | start, |
| double | end | ||
| ) |
Set both start and end X.
Definition at line 1931 of file FitPropertyBrowser.cpp.
References doubleChanged(), getHandler(), m_compositeFunction, m_doubleManager, m_endX, m_startX, MantidQt::MantidWidgets::PropertyHandler::setAttribute(), and setWorkspace().
|
overrideprotected |
actions to do before the browser made visible
Connect to the AnalysisDataService when shown.
Definition at line 1786 of file FitPropertyBrowser.cpp.
References populateWorkspaceNames(), and setADSObserveEnabled().
|
privateslot |
Display the status string returned from Fit.
| status | :: A status string as returned by OutputStatus Fit property. |
Definition at line 1738 of file FitPropertyBrowser.cpp.
References m_status.
Referenced by initBasicLayout().
| int MantidQt::MantidWidgets::FitPropertyBrowser::sizeOfFunctionsGroup | ( | ) | const |
Definition at line 3244 of file FitPropertyBrowser.cpp.
| double MantidQt::MantidWidgets::FitPropertyBrowser::startX | ( | ) | const |
Get the start X.
Definition at line 1920 of file FitPropertyBrowser.cpp.
References m_doubleManager, and m_startX.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), MantidQt::MantidWidgets::PropertyHandler::addFunction(), MantidQt::MantidWidgets::PropertyHandler::centre(), MantidQt::MantidWidgets::PropertyHandler::changeType(), createAndAddFunction(), doFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), MantidQt::MantidWidgets::PropertyHandler::EstimateFwhm(), findPeaks(), MantidQt::MantidWidgets::PropertyHandler::fit(), MantidQt::MantidWidgets::PropertyHandler::setFunctionWorkspace(), setupMultifit(), and setWorkspace().
|
signal |
Referenced by doubleChanged(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged().
|
privateslot |
Called when a string property changed.
| prop | :: A pointer to the property |
Definition at line 1433 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::addTie(), compositeFunction(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), functionChanged(), MantidQt::MantidWidgets::PropertyHandler::functionPrefix(), getHandler(), getOldExpressionAsString(), MantidQt::MantidWidgets::PropertyHandler::getParameterProperty(), m_changeSlotsEnabled, m_guessOutputName, m_output, m_stringManager, outputName(), setOutputName(), and workspaceName().
Referenced by initBasicLayout().
| Mantid::API::IFunction_const_sptr MantidQt::MantidWidgets::FitPropertyBrowser::theFunction | ( | ) | const |
Get the current function.
Definition at line 2520 of file FitPropertyBrowser.cpp.
References m_compositeFunction.
Referenced by copy(), getParameterNames(), getParameterValues(), reset(), and saveFunction().
|
virtualslot |
Function to toggle the visibility of the settings browser.
Definition at line 3061 of file FitPropertyBrowser.cpp.
References m_browser, and m_settingsGroup.
|
virtualslot |
Definition at line 3083 of file FitPropertyBrowser.cpp.
References m_hideWsListWidget.
|
protected |
Catches unexpected not found exceptions.
Definition at line 812 of file FitPropertyBrowser.cpp.
Referenced by createCompositeFunction().
|
slot |
Slot.
Undoes the fit: restores the parameters to their initial values.
Definition at line 2113 of file FitPropertyBrowser.cpp.
References MantidQt::MantidWidgets::PropertyHandler::clearErrors(), clearFitResultStatus(), compositeFunction(), disableUndo(), fitUndone(), getHandler(), m_initialParameters, and updateParameters().
Referenced by executeFitMenu(), and popupMenu().
| void MantidQt::MantidWidgets::FitPropertyBrowser::updateAttributes | ( | ) |
Update the function attributes.
Update the function attributes which have changed.
Definition at line 2081 of file FitPropertyBrowser.cpp.
References getHandler(), and MantidQt::MantidWidgets::PropertyHandler::updateAttributes().
|
protected |
Set the parameters to the fit outcome.
Definition at line 2101 of file FitPropertyBrowser.cpp.
References compositeFunction(), getHandler(), MantidQt::MantidWidgets::PropertyHandler::updateErrors(), and updateParameters().
Referenced by finishHandle().
|
protected |
impose a number of decimal places on all defined Double properties
Definition at line 2786 of file FitPropertyBrowser.cpp.
References m_decimals, and m_doubleManager.
Referenced by init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and setDecimals().
| void MantidQt::MantidWidgets::FitPropertyBrowser::updateParameters | ( | ) |
Update the function parameters.
Update the function parameter properties.
Definition at line 2076 of file FitPropertyBrowser.cpp.
References getHandler(), and MantidQt::MantidWidgets::PropertyHandler::updateParameters().
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::getFitResults(), undoFit(), and updateBrowserFromFitResults().
|
signal |
Referenced by intChanged().
|
private |
Update setup menus according to how these are set in settings.
Definition at line 578 of file FitPropertyBrowser.cpp.
References executeCustomSetupLoad(), executeCustomSetupRemove(), m_setupActionCustomSetup, and m_setupActionRemove.
Referenced by executeClearCustomSetups(), executeCustomSetupRemove(), initBasicLayout(), and saveFunction().
|
privateslot |
Update structure tooltips for all functions.
Recursively updates structure tooltips for all the functions.
Definition at line 635 of file FitPropertyBrowser.cpp.
References getHandler(), and MantidQt::MantidWidgets::PropertyHandler::updateStructureTooltip().
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and initBasicLayout().
|
privateslot |
Slot.
Responds to changing a vector attribute member
| prop | :: A property managed by m_vectorDoubleManager. |
Definition at line 2055 of file FitPropertyBrowser.cpp.
References enactAttributeChange(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), and getHandler().
Referenced by initBasicLayout().
|
privateslot |
Slot.
Responds to changing a vector attribute size
| prop | :: A property managed by m_vectorSizeManager. |
Definition at line 2066 of file FitPropertyBrowser.cpp.
References enactAttributeChange(), MantidQt::MantidWidgets::PropertyHandler::findHandler(), and getHandler().
Referenced by initBasicLayout().
|
privatevirtual |
Sets the new workspace to the current one.
Sets a new workspace.
Definition at line 2818 of file FitPropertyBrowser.cpp.
References m_guessOutputName, m_output, m_stringManager, workspaceName(), workspaceNameChanged(), and wsChangePPAssign().
Referenced by enumChanged(), and renameHandle().
|
signal |
Referenced by workspaceDoubleClicked().
|
slot |
Definition at line 541 of file FitPropertyBrowser.cpp.
References workspaceClicked().
Referenced by initBasicLayout().
| int MantidQt::MantidWidgets::FitPropertyBrowser::workspaceIndex | ( | ) | const |
Get workspace index.
Definition at line 1124 of file FitPropertyBrowser.cpp.
References m_intManager, and m_workspaceIndex.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), MantidQt::MantidWidgets::PropertyHandler::addFunction(), MantidQt::MantidWidgets::SequentialFitDialog::addWorkspaces(), MantidQt::MantidWidgets::PropertyHandler::calcBase(), MantidQt::MantidWidgets::PropertyHandler::changeType(), createAndAddFunction(), doFit(), MantidQt::MantidWidgets::PropertyHandler::EstimateFwhm(), findPeaks(), MantidQt::MantidWidgets::PropertyHandler::fit(), MantidQt::MantidWidgets::SequentialFitDialog::getFitResults(), getXRange(), intChanged(), MantidQt::MantidWidgets::PropertyHandler::setCentre(), setWorkspace(), and setWorkspaceName().
|
signal |
Referenced by intChanged().
| std::string MantidQt::MantidWidgets::FitPropertyBrowser::workspaceName | ( | ) | const |
Get the input workspace name.
Definition at line 1086 of file FitPropertyBrowser.cpp.
References m_enumManager, m_workspace, and m_workspaceNames.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), MantidQt::MantidWidgets::PropertyHandler::addFunction(), addHandle(), MantidQt::MantidWidgets::PropertyHandler::changeType(), columnChanged(), doFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), enumChanged(), findPeaks(), MantidQt::MantidWidgets::PropertyHandler::fit(), getAllowedIndex(), MantidQt::MantidWidgets::SequentialFitDialog::getFitResults(), getWorkspace(), popupMenu(), processMultiBGResults(), removeWorkspace(), sequentialFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::setNormalization(), setupMultifit(), setWorkspace(), setWorkspaceProperties(), stringChanged(), and workspaceChange().
|
signal |
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), and workspaceChange().
|
signal |
Referenced by workspaceChange().
|
signal |
Referenced by doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), and init().
|
friend |
Definition at line 702 of file FitPropertyBrowser.h.
|
friend |
Definition at line 701 of file FitPropertyBrowser.h.
|
friend |
Definition at line 705 of file FitPropertyBrowser.h.
Referenced by sequentialFit().
|
friend |
Definition at line 703 of file FitPropertyBrowser.h.
|
friend |
Definition at line 704 of file FitPropertyBrowser.h.
|
private |
If non-empty it contains references to the spectra allowed to be fitted in this browser: keys are workspace names, values are lists of workspace indices.
Definition at line 695 of file FitPropertyBrowser.h.
Referenced by addAllowedSpectra(), addHandle(), getAllowedIndex(), populateWorkspaceNames(), removeWorkspaceAndSpectra(), and renameHandle().
|
private |
If set it contains the table workspace name to be fitted in this browser:
Definition at line 697 of file FitPropertyBrowser.h.
Referenced by addAllowedTableWorkspace(), addHandle(), and populateWorkspaceNames().
|
private |
If true background function will be included automatically.
Definition at line 664 of file FitPropertyBrowser.h.
Referenced by createCompositeFunction(), loadFunction(), and setAutoBackgroundName().
|
private |
The autobackground handler.
Definition at line 673 of file FitPropertyBrowser.h.
Referenced by addAutoBackground(), MantidQt::MantidWidgets::PropertyHandler::calcBase(), MantidQt::MantidWidgets::PropertyHandler::calcBaseAll(), MantidQt::MantidWidgets::PropertyHandler::changeType(), createCompositeFunction(), refitAutoBackground(), MantidQt::MantidWidgets::PropertyHandler::removeFunction(), and MantidQt::MantidWidgets::PropertyHandler::setAttribute().
|
private |
List of attributes of the autobackground function as name=value pairs separated by spaces.
Definition at line 670 of file FitPropertyBrowser.h.
Referenced by addAutoBackground(), and setAutoBackgroundName().
|
private |
Name of the autobackground function.
Definition at line 667 of file FitPropertyBrowser.h.
Referenced by addAutoBackground(), FitPropertyBrowser(), and setAutoBackgroundName().
|
protected |
Definition at line 498 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::SetAttribute::apply(), MantidQt::MantidWidgets::CreateAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttributeProperty::apply(), boolChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::boolChanged(), convolveMembers(), createEditors(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::executeFitMenu(), FitPropertyBrowser(), ignoreInvalidData(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), initBasicLayout(), minimizer(), minimizerChanged(), plotCompositeMembers(), plotDiff(), rawData(), setIgnoreInvalidData(), and ~FitPropertyBrowser().
|
protected |
Definition at line 533 of file FitPropertyBrowser.h.
Referenced by acceptFit(), addConstraint(), addFixTie(), addFunction(), addTie(), addTieToFunction(), addWorkspaceIndexToBrowser(), createEditors(), deleteFunction(), deleteTie(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), MantidQt::MantidWidgets::PropertyHandler::init(), initBasicLayout(), popupMenu(), removeBounds(), setCurrentFunction(), setWorkspaceProperties(), toggleSettingsBrowserVisible(), and ~FitPropertyBrowser().
|
protected |
If false the change-slots (such as enumChanged(), doubleChanged()) are disabled.
Definition at line 549 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::PropertyHandler::addConstraint(), MantidQt::MantidWidgets::PropertyHandler::addFunction(), MantidQt::MantidWidgets::PropertyHandler::addTie(), MantidQt::MantidWidgets::SetAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttributeProperty::apply(), boolChanged(), MantidQt::MantidWidgets::PropertyHandler::changeType(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), enumChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), filenameChanged(), MantidQt::MantidWidgets::PropertyHandler::init(), initBasicLayout(), MantidQt::MantidWidgets::PropertyHandler::initParameters(), intChanged(), parameterChanged(), MantidQt::MantidWidgets::PropertyHandler::removeTie(), MantidQt::MantidWidgets::PropertyHandler::removeTie(), MantidQt::MantidWidgets::PropertyHandler::renameChildren(), and stringChanged().
|
protected |
Definition at line 502 of file FitPropertyBrowser.h.
Referenced by columnChanged(), createEditors(), FitPropertyBrowser(), getErrColumnName(), getXColumnName(), getXRange(), getYColumnName(), init(), initBasicLayout(), setWorkspaceProperties(), and ~FitPropertyBrowser().
|
protected |
A copy of the edited function.
Definition at line 531 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::accept(), addTieToFunction(), allowSequentialFits(), count(), createCompositeFunction(), deleteTie(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), enumChanged(), finishHandle(), getFittingFunction(), getFunctionAtIndex(), getHandler(), intChanged(), MantidQt::MantidWidgets::SequentialFitDialog::populateParameters(), popupMenu(), setXRange(), theFunction(), and ~FitPropertyBrowser().
|
protected |
Definition at line 521 of file FitPropertyBrowser.h.
Referenced by convolveMembers(), and init().
|
protected |
Definition at line 515 of file FitPropertyBrowser.h.
Referenced by costFunction(), init(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::init().
|
mutableprotected |
A list of available cost functions.
Definition at line 567 of file FitPropertyBrowser.h.
Referenced by costFunction(), init(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::init().
|
mutableprivate |
Definition at line 645 of file FitPropertyBrowser.h.
Referenced by centre(), currentHandler(), currentItemChanged(), fwhm(), height(), isPeak(), setCentre(), setCurrentFunction(), setFwhm(), and setHeight().
|
protected |
Group for custom options available on muon analysis widget.
Definition at line 545 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and setWorkspaceProperties().
|
mutableprivate |
A list of available data types.
Definition at line 648 of file FitPropertyBrowser.h.
|
private |
Number of decimal places in double properties.
Definition at line 676 of file FitPropertyBrowser.h.
Referenced by addDoubleProperty(), setDecimals(), and updateDecimals().
|
private |
Default background name.
Definition at line 655 of file FitPropertyBrowser.h.
Referenced by defaultBackgroundType(), FitPropertyBrowser(), and setDefaultBackgroundType().
|
private |
Default function name.
Definition at line 651 of file FitPropertyBrowser.h.
Referenced by defaultFunctionType(), FitPropertyBrowser(), and setDefaultFunctionType().
|
private |
Default peak name.
Definition at line 653 of file FitPropertyBrowser.h.
Referenced by defaultPeakType(), FitPropertyBrowser(), and setDefaultPeakType().
|
private |
Definition at line 618 of file FitPropertyBrowser.h.
Referenced by initBasicLayout().
|
private |
Definition at line 616 of file FitPropertyBrowser.h.
Referenced by initBasicLayout(), setPeakToolOn(), and setTextPlotGuess().
|
private |
Definition at line 617 of file FitPropertyBrowser.h.
Referenced by finishHandle(), and initBasicLayout().
|
protected |
Definition at line 495 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::PropertyHandler::addConstraint(), addDoubleProperty(), MantidQt::MantidWidgets::CreateAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttribute::apply(), columnChanged(), createEditors(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), endX(), FitPropertyBrowser(), initBasicLayout(), MantidQt::MantidWidgets::PropertyHandler::initParameters(), minimizer(), minimizerChanged(), setEndX(), setStartX(), setXRange(), startX(), updateDecimals(), and ~FitPropertyBrowser().
|
protected |
Definition at line 511 of file FitPropertyBrowser.h.
Referenced by columnChanged(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), endX(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), setEndX(), and setXRange().
|
protected |
Definition at line 496 of file FitPropertyBrowser.h.
Referenced by addHandle(), addStringListProperty(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::boolChanged(), MantidQt::MantidWidgets::PropertyHandler::changeType(), costFunction(), createEditors(), enumChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), FitPropertyBrowser(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), MantidQt::MantidWidgets::PropertyHandler::init(), initBasicLayout(), isHistogramFit(), minimizer(), populateWorkspaceNames(), removeWorkspace(), renameHandle(), MantidQt::MantidWidgets::PropertyHandler::setFunctionWorkspace(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::setNormalization(), setWorkspaceName(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::setWorkspaceName(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::updateGroupDisplay(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::updatePeriodDisplay(), MantidQt::MantidWidgets::PropertyHandler::updateWorkspaces(), workspaceName(), and ~FitPropertyBrowser().
|
protected |
Definition at line 525 of file FitPropertyBrowser.h.
Referenced by getErrColumnName(), init(), and setWorkspaceProperties().
|
protected |
Definition at line 527 of file FitPropertyBrowser.h.
Referenced by enumChanged(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), isHistogramFit(), and setWorkspaceProperties().
|
mutableprotected |
A list of possible function evaluation types.
Definition at line 569 of file FitPropertyBrowser.h.
Referenced by init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and isHistogramFit().
|
protected |
Definition at line 519 of file FitPropertyBrowser.h.
Referenced by getExcludeRange(), and init().
|
protected |
Definition at line 500 of file FitPropertyBrowser.h.
Referenced by addStringProperty(), createEditors(), FitPropertyBrowser(), initBasicLayout(), and ~FitPropertyBrowser().
|
protected |
Definition at line 538 of file FitPropertyBrowser.h.
Referenced by populateFitMenuButton().
|
protected |
Definition at line 537 of file FitPropertyBrowser.h.
Referenced by isFitEnabled(), populateFitMenuButton(), setFitEnabled(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::setFitEnabled().
|
protected |
Definition at line 536 of file FitPropertyBrowser.h.
Referenced by allowSequentialFits(), populateFitMenuButton(), setFitEnabled(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::setFitEnabled().
|
protected |
Definition at line 535 of file FitPropertyBrowser.h.
Referenced by disableUndo(), doFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), and populateFitMenuButton().
|
private |
Definition at line 689 of file FitPropertyBrowser.h.
Referenced by finishHandle(), and getFitAlgorithmOutputStatus().
|
private |
Definition at line 688 of file FitPropertyBrowser.h.
Referenced by doFit(), and getFitAlgorithmParameters().
|
private |
Make sure m_groupMember belongs to the group.
Fit and Display menu
Definition at line 614 of file FitPropertyBrowser.h.
Referenced by createFitMenuButton().
|
private |
Definition at line 615 of file FitPropertyBrowser.h.
Referenced by createFitMenuButton(), and modifyFitMenu().
|
private |
Definition at line 632 of file FitPropertyBrowser.h.
Referenced by acceptFit(), addFunction(), and closeFit().
|
private |
Definition at line 634 of file FitPropertyBrowser.h.
|
protected |
Definition at line 501 of file FitPropertyBrowser.h.
Referenced by addStringProperty(), createEditors(), FitPropertyBrowser(), initBasicLayout(), and ~FitPropertyBrowser().
|
protected |
Group for functions.
Definition at line 541 of file FitPropertyBrowser.h.
Referenced by clearBrowser(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), MantidQt::MantidWidgets::PropertyHandler::init(), and popupMenu().
|
protected |
Property managers:
Definition at line 494 of file FitPropertyBrowser.h.
Referenced by FitPropertyBrowser(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), MantidQt::MantidWidgets::PropertyHandler::init(), and initBasicLayout().
|
protected |
if true the output name will be guessed every time workspace name is changeed
Definition at line 552 of file FitPropertyBrowser.h.
Referenced by stringChanged(), and workspaceChange().
|
private |
bool to display ws list or not
Definition at line 661 of file FitPropertyBrowser.h.
Referenced by addFitResultWorkspacesToTableWidget(), and toggleWsListVisible().
|
protected |
Definition at line 514 of file FitPropertyBrowser.h.
Referenced by boolChanged(), ignoreInvalidData(), init(), and setIgnoreInvalidData().
|
protected |
To keep a copy of the initial parameters in case for undo fit.
Definition at line 572 of file FitPropertyBrowser.h.
Referenced by disableUndo(), doFit(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doTFAsymmFit(), isUndoEnabled(), and undoFit().
|
protected |
Definition at line 497 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttribute::apply(), createEditors(), fit(), FitPropertyBrowser(), getPeakRadius(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), initBasicLayout(), intChanged(), maxIterations(), minimizer(), minimizerChanged(), MantidQt::MantidWidgets::PropertyHandler::setFunctionWorkspace(), setWorkspaceIndex(), workspaceIndex(), and ~FitPropertyBrowser().
|
private |
holds effectively a MantidUI for connecting
Definition at line 679 of file FitPropertyBrowser.h.
Referenced by init(), and sequentialFit().
|
protected |
Definition at line 516 of file FitPropertyBrowser.h.
Referenced by fit(), init(), intChanged(), and maxIterations().
|
protected |
Definition at line 513 of file FitPropertyBrowser.h.
Referenced by enumChanged(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and minimizer().
|
protected |
Definition at line 528 of file FitPropertyBrowser.h.
Referenced by minimizer(), and minimizerChanged().
|
mutableprotected |
A list of available minimizers.
Definition at line 563 of file FitPropertyBrowser.h.
Referenced by init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and minimizer().
|
private |
Store workspace index to revert to in case validation fails.
Definition at line 699 of file FitPropertyBrowser.h.
Referenced by getAllowedIndex(), and intChanged().
|
protected |
Definition at line 512 of file FitPropertyBrowser.h.
Referenced by init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), outputName(), setOutputName(), stringChanged(), and workspaceChange().
|
protected |
Definition at line 506 of file FitPropertyBrowser.h.
Referenced by boolChanged(), MantidQt::MantidWidgets::PropertyHandler::clearError(), createEditors(), FitPropertyBrowser(), MantidQt::MantidWidgets::PropertyHandler::fix(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), initBasicLayout(), MantidQt::MantidWidgets::PropertyHandler::initParameters(), MantidQt::MantidWidgets::PropertyHandler::setParameter(), MantidQt::MantidWidgets::PropertyHandler::updateError(), MantidQt::MantidWidgets::PropertyHandler::updateParameter(), and ~FitPropertyBrowser().
|
protected |
Definition at line 517 of file FitPropertyBrowser.h.
Referenced by getPeakRadius(), init(), and intChanged().
|
private |
Shows if the PeakPickerTool is on.
Definition at line 658 of file FitPropertyBrowser.h.
Referenced by popupMenu(), and setPeakToolOn().
|
protected |
Definition at line 520 of file FitPropertyBrowser.h.
Referenced by boolChanged(), init(), and plotCompositeMembers().
|
protected |
Definition at line 518 of file FitPropertyBrowser.h.
Referenced by boolChanged(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and plotDiff().
|
protected |
Definition at line 522 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::MuonFitPropertyBrowser::boolChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), and rawData().
|
mutableprotected |
A list of registered backgrounds.
Definition at line 559 of file FitPropertyBrowser.h.
Referenced by populateFunctionNames(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::populateFunctionNames().
|
mutableprotected |
A list of registered functions.
Definition at line 555 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::PropertyHandler::init(), populateFunctionNames(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::populateFunctionNames().
|
mutableprotected |
A list of registered functions that are neither peaks nor backgrounds.
Definition at line 561 of file FitPropertyBrowser.h.
Referenced by populateFunctionNames(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::populateFunctionNames().
|
mutableprotected |
A list of registered peaks.
Definition at line 557 of file FitPropertyBrowser.h.
Referenced by defaultPeakType(), populateFunctionNames(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::populateFunctionNames().
|
protected |
Group for input/output settings.
Definition at line 543 of file FitPropertyBrowser.h.
Referenced by addWorkspaceIndexToBrowser(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), minimizerChanged(), popupMenu(), removePropertiesFromSettingsBrowser(), setWorkspaceProperties(), and toggleSettingsBrowserVisible().
|
private |
Setup menu.
Definition at line 622 of file FitPropertyBrowser.h.
Referenced by initBasicLayout(), and updateSetupMenus().
|
private |
Definition at line 623 of file FitPropertyBrowser.h.
Referenced by initBasicLayout(), and updateSetupMenus().
|
private |
Should the data be normalised before fitting?
Definition at line 685 of file FitPropertyBrowser.h.
Referenced by doFit().
|
protected |
Definition at line 526 of file FitPropertyBrowser.h.
Referenced by boolChanged(), init(), and MantidQt::MantidWidgets::MuonFitPropertyBrowser::init().
|
protected |
Definition at line 510 of file FitPropertyBrowser.h.
Referenced by columnChanged(), doubleChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::doubleChanged(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), setStartX(), setXRange(), and startX().
|
private |
To display fit status.
Definition at line 629 of file FitPropertyBrowser.h.
Referenced by clearFitResultStatus(), initBasicLayout(), and showFitResultStatus().
|
private |
store current workspace name
Definition at line 682 of file FitPropertyBrowser.h.
Referenced by enumChanged(), and setWorkspaceProperties().
|
protected |
Definition at line 499 of file FitPropertyBrowser.h.
Referenced by addStringProperty(), MantidQt::MantidWidgets::PropertyHandler::addTie(), createEditors(), FitPropertyBrowser(), getExcludeRange(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), initBasicLayout(), minimizer(), minimizerChanged(), outputName(), MantidQt::MantidWidgets::PropertyHandler::renameChildren(), setOutputName(), stringChanged(), workspaceChange(), and ~FitPropertyBrowser().
|
private |
String property managers for special case attributes such as Filename or Formula <attribute_name,string_manager>
Definition at line 643 of file FitPropertyBrowser.h.
|
private |
To display a tip text.
Definition at line 627 of file FitPropertyBrowser.h.
Referenced by createFitMenuButton(), initBasicLayout(), and setTip().
|
private |
Observes algorithm factory update notifications.
Definition at line 608 of file FitPropertyBrowser.h.
Referenced by initBasicLayout(), and ~FitPropertyBrowser().
|
protected |
Definition at line 505 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttribute::apply(), createEditors(), FitPropertyBrowser(), initBasicLayout(), and ~FitPropertyBrowser().
|
protected |
Definition at line 503 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply(), and FitPropertyBrowser().
|
protected |
Definition at line 504 of file FitPropertyBrowser.h.
Referenced by MantidQt::MantidWidgets::CreateAttributeProperty::apply(), MantidQt::MantidWidgets::SetAttribute::apply(), createEditors(), FitPropertyBrowser(), initBasicLayout(), and ~FitPropertyBrowser().
|
private |
Definition at line 619 of file FitPropertyBrowser.h.
|
protected |
Definition at line 508 of file FitPropertyBrowser.h.
Referenced by addHandle(), addWorkspaceIndexToBrowser(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::boolChanged(), enumChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), FitPropertyBrowser(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), populateWorkspaceNames(), removeWorkspace(), renameHandle(), setWorkspaceName(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::setWorkspaceName(), setWorkspaceProperties(), and workspaceName().
|
protected |
Definition at line 509 of file FitPropertyBrowser.h.
Referenced by addAllowedSpectra(), addWorkspaceIndexToBrowser(), enumChanged(), init(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::init(), intChanged(), setWorkspaceIndex(), setWorkspaceProperties(), and workspaceIndex().
|
private |
Definition at line 638 of file FitPropertyBrowser.h.
Referenced by addFitResultWorkspacesToTableWidget(), initBasicLayout(), and removeWorkspace().
|
mutableprotected |
A list of available workspaces.
Definition at line 565 of file FitPropertyBrowser.h.
Referenced by addHandle(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::boolChanged(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::enumChanged(), getWorkspaceNames(), populateWorkspaceNames(), removeWorkspace(), renameHandle(), MantidQt::MantidWidgets::PropertyHandler::setFunctionWorkspace(), setWorkspaceName(), MantidQt::MantidWidgets::MuonFitPropertyBrowser::setWorkspaceName(), MantidQt::MantidWidgets::PropertyHandler::updateWorkspaces(), and workspaceName().
|
private |
Definition at line 637 of file FitPropertyBrowser.h.
Referenced by addFitResultWorkspacesToTableWidget(), initBasicLayout(), removeWorkspace(), and renameHandle().
|
protected |
Definition at line 523 of file FitPropertyBrowser.h.
Referenced by columnChanged(), getXColumnName(), getXRange(), init(), and setWorkspaceProperties().
|
protected |
Definition at line 524 of file FitPropertyBrowser.h.
Referenced by getYColumnName(), init(), and setWorkspaceProperties().