Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDef(name, id)
Definition Rtypes.h:325
include TDocParser_001 C image html pict1_TDocParser_001 png width
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition TClass.h:80
TGCheckButton * fDrawMode
Definition TF1Editor.h:41
virtual void ActivateBaseClassEditors(TClass *cl)
Exclude TAttFillEditor from this interface.
virtual void DoXRange()
Slot connected to min/max settings of the slider range.
virtual void DoParameterSettings()
Slot connected to the function parameter(s) settings.
virtual void DoSliderXReleased()
Slot connected to the x-Slider.
virtual void DoXPoints()
Slot connected to the number of points setting.
virtual void DoSliderXMoved()
Slot connected to the x-Slider range for function redrawing.
virtual ~TF1Editor()
Destructor of TF1 editor.
TGLabel * fParLabel
Definition TF1Editor.h:40
virtual void DoSliderXPressed()
Slot connected to the x-Slider.
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.
TGTextButton * fSetPars
Definition TF1Editor.h:42
TGTextEntry * fTitle
Definition TF1Editor.h:38
virtual void ConnectSignals2Slots()
Connect signals to slots.
1-Dim function class
Definition TF1.h:213
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:668
Mother of all ROOT objects.
Definition TObject.h:37