Skip to content
Snippets Groups Projects
Commit a109679b authored by Ilka Antcheva's avatar Ilka Antcheva
Browse files

- layout changes of the dialog;

- implemented functionality for bounded parameters
- implemented immediate preview when parameter's value is changed interactively

*** passing the the parameters' settings to the fitter will be the next step of this development


git-svn-id: http://root.cern.ch/svn/root/trunk@16814 27541ba8-7e3a-0410-8455-c3a389f83636
parent 4731af65
No related branches found
No related tags found
No related merge requests found
// @(#)root/fitpanel:$Name: $:$Id: TFitParametersDialog.h,v 1.2 2006/10/05 21:33:21 rdm Exp $
// @(#)root/fitpanel:$Name: $:$Id: TFitParametersDialog.h,v 1.3 2006/10/09 08:07:08 brun Exp $
// Author: Ilka Antcheva, Lorenzo Moneta 03/10/06
/*************************************************************************
......@@ -45,16 +45,18 @@ class TFitParametersDialog : public TGTransientFrame {
protected:
TF1 *fFunc; // function passed to this dialog
TVirtualPad *fFpad; // pad where the function is drawn
Double_t fRXmin; // original min range
Double_t fRXmax; // original max range
Bool_t fHasChanges; // kTRUE if function was redrawn;
Bool_t fImmediateDraw; // kTRUE if function is updated on run-time
Int_t fNP; // number of function parameters
Double_t fRangexmin; // min function range
Double_t fRangexmax; // max function range
Double_t *fPmin; // min limits of patameters range
Double_t *fPmax; // max limits of patameters range
Double_t *fPval; // original patameters' values
Double_t *fPerr; // original patameters' errors
Double_t *fPstp; // original patameters' step
Double_t fRangexmin; // min limits of patameters range
Double_t fRangexmax; // max limits of patameters range
Double_t fRXmin; // original min range
Double_t fRXmax; // original max range
TGCompositeFrame *fContNam; // container of parameter names
TGCompositeFrame *fContVal; // container of parameter values
TGCompositeFrame *fContFix; // container of fix settings
......@@ -78,21 +80,18 @@ protected:
TGTextButton *fReset; // Reset button
TGTextButton *fOK; // OK button
TGTextButton *fCancel; // Cancel button
Bool_t fHasChanges; // kTRUE if function was redrawn;
Bool_t fImmediateDraw; // kTRUE if function is updated on run-time
public:
TFitParametersDialog(const TGWindow *p, const TGWindow *main,
TF1 *func, TVirtualPad *pad,
Double_t rmin=1., Double_t rmax=2.);
TFitParametersDialog(const TGWindow *p, const TGWindow *main, TF1 *func,
TVirtualPad *pad, Double_t rmin=1., Double_t rmax=2.);
virtual ~TFitParametersDialog();
virtual void CloseWindow();
virtual void DoApply();
virtual void DoCancel();
virtual void DoFix(Bool_t on);
virtual void DoBound(Bool_t on);
virtual void DoOK();
virtual void DoParFix(Bool_t on);
virtual void DoParBound(Bool_t on);
virtual void DoParMaxLimit();
virtual void DoParMinLimit();
virtual void DoParStep();
......@@ -100,7 +99,7 @@ public:
virtual void DoReset();
virtual void DoSlider();
virtual void HandleButtons(Bool_t update);
virtual void RedrawFunction();
virtual void DrawFunction();
ClassDef(TFitParametersDialog, 0) // Fit function parameters dialog
};
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment