Logo ROOT  
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#include "TGedFrame.h"
17
18class TGNumberEntry;
19class TGTextEntry;
20class TGTextButton;
21class TGDoubleHSlider;
23class TGLabel;
24class TGCheckButton;
25class TF1;
26
27class TF1Editor : public TGedFrame {
28
29protected:
30 TF1 *fF1; ///< selected TF1 object
31 TGTextEntry *fTitle; ///< function title
32 Int_t fNP; ///< number of function parameters
33 TGLabel *fParLabel; ///< label for number of parameters
34 TGCheckButton *fDrawMode; ///< immediate function redraw (if selected)
35 TGTextButton *fSetPars; ///< open 'Set Parameters' dialog
36 TGNumberEntry *fNXpoints; ///< number of points along x-axis
37 TGDoubleHSlider *fSliderX; ///< slider to set x-axis range
38 TGNumberEntryField *fSldMinX; ///< contains minimum value of x-axis
39 TGNumberEntryField *fSldMaxX; ///< contains maximum value of x-axis
40
41 virtual void ConnectSignals2Slots(); //connect signals to slots
42
43public:
44 TF1Editor(const TGWindow *p = 0, Int_t width = 140, Int_t height = 30,
46 virtual ~TF1Editor();
47
48 virtual void SetModel(TObject* obj);
49 virtual void ActivateBaseClassEditors(TClass* cl);
50
51 virtual void DoParameterSettings();
52 virtual void DoXPoints();
53 virtual void DoSliderXMoved();
54 virtual void DoSliderXPressed();
55 virtual void DoSliderXReleased();
56 virtual void DoXRange();
57
58 ClassDef(TF1Editor,0) // user interface for TF1 objects
59};
60
61#endif
@ kChildFrame
Definition: GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition: TClass.h:80
GUI for TF1 attributes and parameters.
Definition: TF1Editor.h:27
TGCheckButton * fDrawMode
immediate function redraw (if selected)
Definition: TF1Editor.h:34
virtual void ActivateBaseClassEditors(TClass *cl)
Exclude TAttFillEditor from this interface.
Definition: TF1Editor.cxx:340
virtual void DoXRange()
Slot connected to min/max settings of the slider range.
Definition: TF1Editor.cxx:317
virtual void DoParameterSettings()
Slot connected to the function parameter(s) settings.
Definition: TF1Editor.cxx:178
virtual void DoSliderXReleased()
Slot connected to the x-Slider.
Definition: TF1Editor.cxx:284
virtual void DoXPoints()
Slot connected to the number of points setting.
Definition: TF1Editor.cxx:191
virtual void DoSliderXMoved()
Slot connected to the x-Slider range for function redrawing.
Definition: TF1Editor.cxx:208
virtual ~TF1Editor()
Destructor of TF1 editor.
Definition: TF1Editor.cxx:116
TGLabel * fParLabel
label for number of parameters
Definition: TF1Editor.h:33
virtual void DoSliderXPressed()
Slot connected to the x-Slider.
Definition: TF1Editor.cxx:251
Int_t fNP
number of function parameters
Definition: TF1Editor.h:32
TGNumberEntryField * fSldMinX
contains minimum value of x-axis
Definition: TF1Editor.h:38
TGDoubleHSlider * fSliderX
slider to set x-axis range
Definition: TF1Editor.h:37
TGNumberEntry * fNXpoints
number of points along x-axis
Definition: TF1Editor.h:36
TF1 * fF1
selected TF1 object
Definition: TF1Editor.h:30
TGNumberEntryField * fSldMaxX
contains maximum value of x-axis
Definition: TF1Editor.h:39
virtual void SetModel(TObject *obj)
Pick up the function parameters and options.
Definition: TF1Editor.cxx:139
TF1Editor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Definition: TF1Editor.cxx:42
TGTextButton * fSetPars
open 'Set Parameters' dialog
Definition: TF1Editor.h:35
TGTextEntry * fTitle
function title
Definition: TF1Editor.h:31
virtual void ConnectSignals2Slots()
Connect signals to slots.
Definition: TF1Editor.cxx:123
1-Dim function class
Definition: TF1.h:213
Selects different options.
Definition: TGButton.h:264
Dragging the slider will generate the event:
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:683
This class handles GUI labels.
Definition: TGLabel.h:24
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
ROOT GUI Window base class.
Definition: TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition: TGedFrame.h:27
ClassDef(TGedFrame, 0)
Mother of all ROOT objects.
Definition: TObject.h:37