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#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 = nullptr, Int_t width = 140, Int_t height = 30,
46 ~TF1Editor() override;
47
48 void SetModel(TObject* obj) override;
49 void ActivateBaseClassEditors(TClass* cl) override;
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 ClassDefOverride(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
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
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:81
GUI for TF1 attributes and parameters.
Definition TF1Editor.h:27
TGCheckButton * fDrawMode
immediate function redraw (if selected)
Definition TF1Editor.h:34
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.
void ActivateBaseClassEditors(TClass *cl) override
Exclude TAttFillEditor from this interface.
virtual void DoXPoints()
Slot connected to the number of points setting.
virtual void DoSliderXMoved()
Slot connected to the x-Slider range for function redrawing.
TGLabel * fParLabel
label for number of parameters
Definition TF1Editor.h:33
virtual void DoSliderXPressed()
Slot connected to the x-Slider.
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
~TF1Editor() override
Destructor of TF1 editor.
void SetModel(TObject *obj) override
Pick up the function parameters and options.
TF1 * fF1
selected TF1 object
Definition TF1Editor.h:30
TGNumberEntryField * fSldMaxX
contains maximum value of x-axis
Definition TF1Editor.h:39
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.
1-Dim function class
Definition TF1.h:233
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
Mother of all ROOT objects.
Definition TObject.h:41