127 this,
"DoXPoints()");
128 fSetPars->
Connect(
"Clicked()",
"TF1Editor",
this,
"DoParameterSettings()");
130 fSliderX->
Connect(
"Released()",
"TF1Editor",
this,
"DoSliderXReleased()");
131 fSliderX->
Connect(
"PositionChanged()",
"TF1Editor",
this,
"DoSliderXMoved()");
164 Int_t nxbinmin =
x->GetFirst();
165 Int_t nxbinmax =
x->GetLast();
316 Int_t nxbinmin =
x->GetFirst();
317 Int_t nxbinmax =
x->GetLast();
ULong_t Pixel_t
Pixel value.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Option_t Option_t TPoint TPoint const char text
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
Class to manage histogram axis.
virtual void Set(Int_t nbins, Double_t xmin, Double_t xmax)
Initialize axis with fix bins.
TClass instances represent classes, structs and namespaces in the ROOT type system.
GUI for TF1 attributes and parameters.
TGCheckButton * fDrawMode
immediate function redraw (if selected)
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.
TF1Editor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
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
label for number of parameters
virtual void DoSliderXPressed()
Slot connected to the x-Slider.
Int_t fNP
number of function parameters
TGNumberEntryField * fSldMinX
contains minimum value of x-axis
TGDoubleHSlider * fSliderX
slider to set x-axis range
TGNumberEntry * fNXpoints
number of points along x-axis
TF1 * fF1
selected TF1 object
TGNumberEntryField * fSldMaxX
contains maximum value of x-axis
virtual void SetModel(TObject *obj)
Pick up the function parameters and options.
TGTextButton * fSetPars
open 'Set Parameters' dialog
TGTextEntry * fTitle
function title
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual TH1 * GetHistogram() const
Return a pointer to the histogram used to visualise the function Note that this histogram is managed ...
virtual void SetRange(Double_t xmin, Double_t xmax)
Initialize the upper and lower bounds to draw the function.
virtual Int_t GetNpar() const
virtual void SetNpx(Int_t npx=100)
Set the number of points used to draw the function.
void Draw(Option_t *option="") override
Draw this function with its current attributes.
virtual void GetRange(Double_t *xmin, Double_t *xmax) const
Return range of a generic N-D function.
virtual Int_t GetNpx() const
This class is used for function parameter settings.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
Dragging the slider will generate the event:
virtual Float_t GetMaxPosition() const
virtual Float_t GetMinPosition() const
virtual void SetRange(Float_t min, Float_t max)
virtual void SetPosition(Float_t min, Float_t max)
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
virtual UInt_t GetDefaultHeight() const
This class handles GUI labels.
virtual void SetText(TGString *newText)
Set new text in label.
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
virtual void SetNumber(Double_t val, Bool_t emit=kTRUE)
Set the numeric value (floating point representation).
virtual Double_t GetNumber() const
Get the numeric value (floating point representation).
void SetState(Bool_t state) override
Set the active state.
TGNumberEntry is a number entry input widget with up/down buttons.
TGNumberEntryField * GetNumberEntry() const
Get the number entry field.
virtual Double_t GetNumber() const
virtual void SetNumber(Double_t val, Bool_t emit=kTRUE)
TGClient * fClient
Connection to display server.
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
Yield an action as soon as it is clicked.
A TGTextEntry is a one line text input widget.
void SetEnabled(Bool_t flag=kTRUE)
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line.
ROOT GUI Window base class.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
virtual TVirtualPad * GetPad() const
void ExcludeClassEditor(TClass *cl, Bool_t recurse=kFALSE)
Exclude editor for class cl from current construction.
Base frame for implementing GUI - a service class.
virtual void ActivateBaseClassEditors(TClass *cl)
Provide list of editors for base-classes.
TGedEditor * fGedEditor
manager of this frame
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Bool_t fAvoidSignal
flag for executing slots
const char * GetTitle() const override
Returns title of object.
Mother of all ROOT objects.
virtual Option_t * GetDrawOption() const
Get option used by the graphics system to draw this object.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
void ToUpper()
Change string to upper case.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
small helper class to store/restore gPad context in TPad methods