Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TFunctionParametersDialog.h
Go to the documentation of this file.
1// @(#)root/ged:$Id$
2// Author: Ilka Antcheva 08/05/06
3
4/*************************************************************************
5 * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TFunctionParametersDialog
13#define ROOT_TFunctionParametersDialog
14
15
16#include "TGFrame.h"
17
18
19class TF1;
20class TGNumberEntry;
21class TGTextEntry;
22class TGCheckButton;
23class TGTextButton;
24class TGTripleHSlider;
26class TVirtualPad;
27
28
30
31protected:
32 TF1 *fFunc; ///< function passed to this dialog
33 TVirtualPad *fFpad; ///< pad where the function is drawn
34 Int_t fNP; ///< number of function parameters
35 Double_t *fPmin; ///< min limits of patameters range
36 Double_t *fPmax; ///< max limits of patameters range
37 Double_t *fPval; ///< original patameters' values
38 Double_t *fPerr; ///< original patameters' errors
39 Double_t fRangexmin; ///< min limits of patameters range
40 Double_t fRangexmax; ///< max limits of patameters range
41 Double_t fRXmin; ///< original min range
42 Double_t fRXmax; ///< original max range
43 TGCompositeFrame *fContNam; ///< container of parameter names
44 TGCompositeFrame *fContVal; ///< container of parameter values
45 TGCompositeFrame *fContFix; ///< container of fix settings
46 TGCompositeFrame *fContSld; ///< container of sliders
47 TGCompositeFrame *fContMin; ///< container of min range values
48 TGCompositeFrame *fContMax; ///< container of max range values
49 TGTextEntry **fParNam; ///< parameter names
50 TGCheckButton **fParFix; ///< fix setting check buttons
51 TGNumberEntry **fParVal; ///< parameter values
52 TGNumberEntryField **fParMin; ///< min range values
53 TGNumberEntryField **fParMax; ///< max range values
54 TGTripleHSlider **fParSld; ///< triple sliders
55 TGCheckButton *fUpdate; ///< Immediate update check button
56 TGTextButton *fApply; ///< Apply button
57 TGTextButton *fReset; ///< Reset button
58 TGTextButton *fOK; ///< Cancel button
59 TGTextButton *fCancel; ///< Cancel button
60 Bool_t fHasChanges; ///< kTRUE if function was redrawn;
61 Bool_t fImmediateDraw; ///< kTRUE if function is updated on run-time
62
63public:
65 TF1 *func, TVirtualPad *pad,
66 Double_t rmin, Double_t rmax);
68
69 void CloseWindow() override;
70 virtual void DoApply();
71 virtual void DoCancel();
72 virtual void DoFix(Bool_t on);
73 virtual void DoOK();
74 virtual void DoParMaxLimit();
75 virtual void DoParMinLimit();
76 virtual void DoParValue();
77 virtual void DoReset();
78 virtual void DoSlider();
79 virtual void HandleButtons(Bool_t update);
80 virtual void RedrawFunction();
81
82 ClassDefOverride(TFunctionParametersDialog, 0) // Function parameters dialog
83};
84
85#endif
int main()
Definition Prototype.cxx:12
static void update(gsl_integration_workspace *workspace, double a1, double b1, double area1, double error1, double a2, double b2, double area2, double error2)
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
1-Dim function class
Definition TF1.h:233
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 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
void CloseWindow() override
Close parameters' dialog.
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.
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;
~TFunctionParametersDialog() override
Destructor.
TGCompositeFrame * fContSld
container of sliders
Bool_t fImmediateDraw
kTRUE if function is updated on run-time
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
Selects different options.
Definition TGButton.h:264
The base class for composite widgets (menu bars, list boxes, etc.).
Definition TGFrame.h:287
TGNumberEntry is a number entry input widget with up/down buttons.
Yield an action as soon as it is clicked.
Definition TGButton.h:142
A TGTextEntry is a one line text input widget.
Definition TGTextEntry.h:24
Defines transient windows that typically are used for dialogs windows.
Definition TGFrame.h:498
TripleSlider inherit from DoubleSlider widgets and allow easy selection of a min, max and pointer val...
ROOT GUI Window base class.
Definition TGWindow.h:23
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition TVirtualPad.h:51