Logo ROOT   6.16/01
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
25class TGNumberEntry;
26class TGTextEntry;
27class TGTextButton;
28class TGDoubleHSlider;
30class TGLabel;
31class TGCheckButton;
32class TF1;
33
34class TF1Editor : public TGedFrame {
35
36protected:
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
50public:
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
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
#define ClassDef(name, id)
Definition: Rtypes.h:324
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kChildFrame
Definition: TGFrame.h:57
The ROOT global object gROOT contains a list of all defined classes.
Definition: TClass.h:75
TGCheckButton * fDrawMode
Definition: TF1Editor.h:41
virtual void ActivateBaseClassEditors(TClass *cl)
Exclude TAttFillEditor from this interface.
Definition: TF1Editor.cxx:341
virtual void DoXRange()
Slot connected to min/max settings of the slider range.
Definition: TF1Editor.cxx:318
virtual void DoParameterSettings()
Slot connected to the function parameter(s) settings.
Definition: TF1Editor.cxx:179
virtual void DoSliderXReleased()
Slot connected to the x-Slider.
Definition: TF1Editor.cxx:285
virtual void DoXPoints()
Slot connected to the number of points setting.
Definition: TF1Editor.cxx:192
virtual void DoSliderXMoved()
Slot connected to the x-Slider range for function redrawing.
Definition: TF1Editor.cxx:209
virtual ~TF1Editor()
Destructor of TF1 editor.
Definition: TF1Editor.cxx:117
TGLabel * fParLabel
Definition: TF1Editor.h:40
virtual void DoSliderXPressed()
Slot connected to the x-Slider.
Definition: TF1Editor.cxx:252
Int_t fNP
Definition: TF1Editor.h:39
TGNumberEntryField * fSldMinX
Definition: TF1Editor.h:45
TGDoubleHSlider * fSliderX
Definition: TF1Editor.h:44
TGNumberEntry * fNXpoints
Definition: TF1Editor.h:43
TF1 * fF1
Definition: TF1Editor.h:37
TGNumberEntryField * fSldMaxX
Definition: TF1Editor.h:46
virtual void SetModel(TObject *obj)
Pick up the function parameters and options.
Definition: TF1Editor.cxx:140
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
TGTextButton * fSetPars
Definition: TF1Editor.h:42
TGTextEntry * fTitle
Definition: TF1Editor.h:38
virtual void ConnectSignals2Slots()
Connect signals to slots.
Definition: TF1Editor.cxx:124
1-Dim function class
Definition: TF1.h:211
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
Mother of all ROOT objects.
Definition: TObject.h:37