Logo ROOT   6.12/07
Reference Guide
TF1Editor.h
Go to the documentation of this file.
1 // @(#)root/ged:$Id$
2 // Author: Ilka Antcheva 21/03/06
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, 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_TF1Editor
13 #define ROOT_TF1Editor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TF1Editor //
18 // //
19 // GUI for TF1 attributes and parameters. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TGedFrame.h"
24 
25 class TGNumberEntry;
26 class TGTextEntry;
27 class TGTextButton;
28 class TGDoubleHSlider;
29 class TGNumberEntryField;
30 class TGLabel;
31 class TGCheckButton;
32 class TF1;
33 
34 class TF1Editor : public TGedFrame {
35 
36 protected:
37  TF1 *fF1; // selected TF1 object
38  TGTextEntry *fTitle; // function title
39  Int_t fNP; // number of function parameters
40  TGLabel *fParLabel; // label for number of parameters
41  TGCheckButton *fDrawMode; // immediate function redraw (if selected)
42  TGTextButton *fSetPars; // open 'Set Parameters' dialog
43  TGNumberEntry *fNXpoints; // number of points along x-axis
44  TGDoubleHSlider *fSliderX; // slider to set x-axis range
45  TGNumberEntryField *fSldMinX; // contains minimum value of x-axis
46  TGNumberEntryField *fSldMaxX; // contains maximum value of x-axis
47 
48  virtual void ConnectSignals2Slots(); //connect signals to slots
49 
50 public:
51  TF1Editor(const TGWindow *p = 0, Int_t width = 140, Int_t height = 30,
53  virtual ~TF1Editor();
54 
55  virtual void SetModel(TObject* obj);
56  virtual void ActivateBaseClassEditors(TClass* cl);
57 
58  virtual void DoParameterSettings();
59  virtual void DoXPoints();
60  virtual void DoSliderXMoved();
61  virtual void DoSliderXPressed();
62  virtual void DoSliderXReleased();
63  virtual void DoXRange();
64 
65  ClassDef(TF1Editor,0) // user interface for TF1 objects
66 };
67 
68 #endif
virtual void DoXPoints()
Slot connected to the number of points setting.
Definition: TF1Editor.cxx:192
virtual void DoSliderXReleased()
Slot connected to the x-Slider.
Definition: TF1Editor.cxx:285
TF1 * fF1
Definition: TF1Editor.h:37
virtual void DoParameterSettings()
Slot connected to the function parameter(s) settings.
Definition: TF1Editor.cxx:179
virtual void DoXRange()
Slot connected to min/max settings of the slider range.
Definition: TF1Editor.cxx:318
virtual void DoSliderXPressed()
Slot connected to the x-Slider.
Definition: TF1Editor.cxx:252
TGTextEntry * fTitle
Definition: TF1Editor.h:38
int Int_t
Definition: RtypesCore.h:41
virtual void SetModel(TObject *obj)
Pick up the function parameters and options.
Definition: TF1Editor.cxx:140
TGTextButton * fSetPars
Definition: TF1Editor.h:42
#define ClassDef(name, id)
Definition: Rtypes.h:320
ULong_t Pixel_t
Definition: GuiTypes.h:39
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TF1Editor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Definition: TF1Editor.cxx:43
virtual void ActivateBaseClassEditors(TClass *cl)
Exclude TAttFillEditor from this interface.
Definition: TF1Editor.cxx:341
virtual void DoSliderXMoved()
Slot connected to the x-Slider range for function redrawing.
Definition: TF1Editor.cxx:209
unsigned int UInt_t
Definition: RtypesCore.h:42
The ROOT global object gROOT contains a list of all defined classes.
Definition: TClass.h:75
TGLabel * fParLabel
Definition: TF1Editor.h:40
TGNumberEntryField * fSldMinX
Definition: TF1Editor.h:45
virtual void ConnectSignals2Slots()
Connect signals to slots.
Definition: TF1Editor.cxx:124
Int_t fNP
Definition: TF1Editor.h:39
Mother of all ROOT objects.
Definition: TObject.h:37
virtual ~TF1Editor()
Destructor of TF1 editor.
Definition: TF1Editor.cxx:117
TGCheckButton * fDrawMode
Definition: TF1Editor.h:41
1-Dim function class
Definition: TF1.h:211
TGNumberEntry * fNXpoints
Definition: TF1Editor.h:43
TGDoubleHSlider * fSliderX
Definition: TF1Editor.h:44
TGNumberEntryField * fSldMaxX
Definition: TF1Editor.h:46