Logo ROOT   6.08/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 #ifndef ROOT_TGedFrame
24 #include "TGedFrame.h"
25 #endif
26 
27 class TGNumberEntry;
28 class TGTextEntry;
29 class TGTextButton;
30 class TGDoubleHSlider;
31 class TGNumberEntryField;
32 class TGLabel;
33 class TGCheckButton;
34 class TF1;
35 
36 class TF1Editor : public TGedFrame {
37 
38 protected:
39  TF1 *fF1; // selected TF1 object
40  TGTextEntry *fTitle; // function title
41  Int_t fNP; // number of function parameters
42  TGLabel *fParLabel; // label for number of parameters
43  TGCheckButton *fDrawMode; // immediate function redraw (if selected)
44  TGTextButton *fSetPars; // open 'Set Parameters' dialog
45  TGNumberEntry *fNXpoints; // number of points along x-axis
46  TGDoubleHSlider *fSliderX; // slider to set x-axis range
47  TGNumberEntryField *fSldMinX; // contains minimum value of x-axis
48  TGNumberEntryField *fSldMaxX; // contains maximum value of x-axis
49 
50  virtual void ConnectSignals2Slots(); //connect signals to slots
51 
52 public:
53  TF1Editor(const TGWindow *p = 0, Int_t width = 140, Int_t height = 30,
55  virtual ~TF1Editor();
56 
57  virtual void SetModel(TObject* obj);
58  virtual void ActivateBaseClassEditors(TClass* cl);
59 
60  virtual void DoParameterSettings();
61  virtual void DoXPoints();
62  virtual void DoSliderXMoved();
63  virtual void DoSliderXPressed();
64  virtual void DoSliderXReleased();
65  virtual void DoXRange();
66 
67  ClassDef(TF1Editor,0) // user interface for TF1 objects
68 };
69 
70 #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:39
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:40
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:44
#define ClassDef(name, id)
Definition: Rtypes.h:254
ULong_t Pixel_t
Definition: GuiTypes.h:41
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:81
TGLabel * fParLabel
Definition: TF1Editor.h:42
TGNumberEntryField * fSldMinX
Definition: TF1Editor.h:47
virtual void ConnectSignals2Slots()
Connect signals to slots.
Definition: TF1Editor.cxx:124
Int_t fNP
Definition: TF1Editor.h:41
Mother of all ROOT objects.
Definition: TObject.h:37
virtual ~TF1Editor()
Destructor of TF1 editor.
Definition: TF1Editor.cxx:117
TGCheckButton * fDrawMode
Definition: TF1Editor.h:43
1-Dim function class
Definition: TF1.h:149
TGNumberEntry * fNXpoints
Definition: TF1Editor.h:45
TGDoubleHSlider * fSliderX
Definition: TF1Editor.h:46
TGNumberEntryField * fSldMaxX
Definition: TF1Editor.h:48