120 fParFix[i]->
Connect(
"Toggled(Bool_t)",
"TFunctionParametersDialog",
this,
"DoFix(Bool_t)");
136 this,
"DoParValue()");
137 fParVal[i]->
Connect(
"ValueSet(Long_t)",
"TFunctionParametersDialog",
this,
"DoParValue()");
160 fParMin[i]->
Connect(
"ReturnPressed()",
"TFunctionParametersDialog",
this,
"DoParMinLimit()");
202 fParMax[i]->
Connect(
"ReturnPressed()",
"TFunctionParametersDialog",
this,
"DoParMaxLimit()");
210 fUpdate->
Connect(
"Toggled(Bool_t)",
"TFunctionParametersDialog",
this,
"HandleButtons(Bool_t)");
219 fReset->
Connect(
"Clicked()",
"TFunctionParametersDialog",
this,
"DoReset()");
224 fApply->
Connect(
"Clicked()",
"TFunctionParametersDialog",
this,
"DoApply()");
229 fOK->
SetToolTipText(
"Apply parameter settings, redraw function and close this dialog");
230 fOK->
Connect(
"Clicked()",
"TFunctionParametersDialog",
this,
"DoOK()");
235 fCancel->
Connect(
"Clicked()",
"TFunctionParametersDialog",
this,
"DoCancel()");
253 fParSld[i]->
Connect(
"PointerPositionChanged()",
"TFunctionParametersDialog",
255 fParSld[i]->
Connect(
"PositionChanged()",
"TFunctionParametersDialog",
297 txt =
"Do you want to apply last parameters' setting?";
304 }
else if (ret ==
kMBNo) {
333 if (
fParVal[i]->GetNumber() != 0) {
349 }
else if (!
fParMin[i]->IsEnabled()) {
367 }
else if (
fPval[i]) {
387 fParSld[i]->
Connect(
"PointerPositionChanged()",
"TFunctionParametersDialog",
389 fParSld[i]->
Connect(
"PositionChanged()",
"TFunctionParametersDialog",
482 if (!
fParMax[i]->IsEnabled()) {
490 fParSld[i]->
Connect(
"PointerPositionChanged()",
"TFunctionParametersDialog",
492 fParSld[i]->
Connect(
"PositionChanged()",
"TFunctionParametersDialog",
593 txt =
"The lower parameter bound cannot be bigger then the upper one.";
629 txt =
"The lower parameter bound cannot be bigger then the upper one.";
static void update(gsl_integration_workspace *workspace, double a1, double b1, double area1, double error1, double a2, double b2, double area2, double error2)
R__EXTERN void * gTQSender
char * Form(const char *fmt,...)
virtual void SetParError(Int_t ipar, Double_t error)
Set error for parameter number ipar.
virtual void GetParLimits(Int_t ipar, Double_t &parmin, Double_t &parmax) const
Return limits for parameter ipar.
virtual Double_t GetParError(Int_t ipar) const
Return value of parameter number ipar.
virtual void SetRange(Double_t xmin, Double_t xmax)
Initialize the upper and lower bounds to draw the function.
virtual Int_t GetNpar() const
virtual void GetRange(Double_t *xmin, Double_t *xmax) const
Return range of a generic N-D function.
virtual const char * GetParName(Int_t ipar) const
virtual void SetParLimits(Int_t ipar, Double_t parmin, Double_t parmax)
Set limits for parameter ipar.
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
virtual void SetParameter(Int_t param, Double_t value)
virtual void FixParameter(Int_t ipar, Double_t value)
Fix the value of a parameter The specified value will be used in a fit operation.
virtual Double_t GetParameter(Int_t ipar) const
This class is used for function parameter settings.
TGCompositeFrame * fContMin
container of min range values
Double_t * fPmax
max limits of patameters range
TGNumberEntryField ** fParMin
min range values
virtual void DoApply()
Slot related to the Preview button.
TGCompositeFrame * fContNam
container of parameter names
TGTextButton * fApply
Apply button.
Double_t * fPerr
original patameters' errors
virtual void DoReset()
Slot related to the Reset button.
virtual void CloseWindow()
Close parameters' dialog.
virtual void RedrawFunction()
Redraw function graphics.
TGCheckButton ** fParFix
fix setting check buttons
TGNumberEntryField ** fParMax
max range values
TF1 * fFunc
function passed to this dialog
Int_t fNP
number of function parameters
virtual ~TFunctionParametersDialog()
Destructor.
virtual void DoFix(Bool_t on)
Slot related to the Fix check button.
TGTextEntry ** fParNam
parameter names
virtual void DoParMinLimit()
Slot related to the minumum parameter limit settings.
Double_t fRangexmin
min limits of patameters range
TGTextButton * fOK
Cancel button.
TFunctionParametersDialog(const TGWindow *p, const TGWindow *main, TF1 *func, TVirtualPad *pad, Double_t rmin, Double_t rmax)
Create the parameters' dialog of currently selected function 'func'.
virtual void DoOK()
Slot related to the OK button.
Double_t fRXmax
original max range
TGCompositeFrame * fContVal
container of parameter values
Double_t * fPmin
min limits of patameters range
virtual void DoParMaxLimit()
Slot related to the maximum parameter limit settings.
virtual void HandleButtons(Bool_t update)
Handle the button dependent states in this dialog.
TGTripleHSlider ** fParSld
triple sliders
Double_t * fPval
original patameters' values
TGCheckButton * fUpdate
Immediate update check button.
TGTextButton * fCancel
Cancel button.
virtual void DoSlider()
Slot related to the parameters' value settings.
TGCompositeFrame * fContMax
container of max range values
Double_t fRangexmax
max limits of patameters range
Bool_t fHasChanges
kTRUE if function was redrawn;
TGCompositeFrame * fContSld
container of sliders
TGNumberEntry ** fParVal
parameter values
TGTextButton * fReset
Reset button.
TVirtualPad * fFpad
pad where the function is drawn
virtual void DoCancel()
Slot related to the Cancel button.
virtual void DoParValue()
Slot related to the parameter value settings.
TGCompositeFrame * fContFix
container of fix settings
Double_t fRXmin
original min range
const TGWindow * GetRoot() const
Returns current root (i.e.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
The base class for composite widgets (menu bars, list boxes, etc.).
virtual TList * GetList() const
Int_t GetState(TGFrame *f) const
Get state of sub frame.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual Float_t GetMaxPosition() const
virtual void SetRange(Float_t min, Float_t max)
virtual void SetPosition(Float_t min, Float_t max)
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void DeleteWindow()
Delete window.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void MapWindow()
map window
virtual void UnmapWindow()
unmap window
This class handles GUI labels.
This class describes layout hints used by the layout classes.
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
virtual void SetNumber(Double_t val, Bool_t emit=kTRUE)
Set the numeric value (floating point representation).
virtual Double_t GetNumber() const
Get the numeric value (floating point representation).
TGNumberEntry is a number entry input widget with up/down buttons.
TGNumberEntryField * GetNumberEntry() const
virtual void SetState(Bool_t enable=kTRUE)
Set the active state.
virtual void SetFormat(EStyle style, EAttribute attr=TGNumberFormat::kNEAAnyNumber)
virtual void SetNumber(Double_t val, Bool_t emit=kTRUE)
TGClient * fClient
Connection to display server.
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
Yield an action as soon as it is clicked.
A TGTextEntry is a one line text input widget.
void SetEnabled(Bool_t flag=kTRUE)
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line.
Defines transient windows that typically are used for dialogs windows.
virtual void CenterOnParent(Bool_t croot=kTRUE, EPlacement pos=kCenter)
Position transient frame centered relative to the parent frame.
TripleSlider inherit from DoubleSlider widgets and allow easy selection of a min, max and pointer val...
virtual void SetPointerPosition(Double_t pos)
Set pointer position in scaled (real) value.
virtual void SetConstrained(Bool_t on=kTRUE)
Set pointer position constrained in the slider range.
ROOT GUI Window base class.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual Option_t * GetDrawOption() const
Get option used by the graphics system to draw this object.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
void ToUpper()
Change string to upper case.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
static void SingleShot(Int_t milliSec, const char *receiver_class, void *receiver, const char *method)
This static function calls a slot after a given time interval.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual void Modified(Bool_t flag=1)=0