Logo ROOT  
Reference Guide
TSlider Class Reference

A specialized TPad including a TSliderBox object.

The TSliderBox can be moved in the pad.

Slider drawing options include the possibility to change the slider starting and ending positions or only one of them.

The current slider position can be retrieved via the functions TSlider::GetMinimum and TSlider::GetMaximum These two functions return numbers in the range [0,1].

If a method has been set (via TSlider::SetMethod), the expression is executed via the interpreter when the button 1 is released.

if no method has been set, and an object is referenced (TSlider::SetObject has been called), while the slider is being moved/resized, the object ExecuteEvent function is called.

Example 1 using TSlider::SetMethod

macro xyslider.C

void xyslider()
{
// Example of macro featuring two sliders
TFile *f = new TFile("hsimple.root");
TH2F *hpxpy = (TH2F*)f->Get("hpxpy");
TCanvas *c1 = new TCanvas("c1");
TPad *pad = new TPad("pad","Color plot pad",0.1,0.1,0.98,0.98);
pad->Draw();
pad->cd();
hpxpy->Draw("COLZ");
c1->cd();
// Create two sliders in main canvas. When button1 will be released
// the macro action.C will be called.
TSlider *xslider = new TSlider("xslider","x",0.1,0.02,0.98,0.08);
xslider->SetMethod(".x action.C");
TSlider *yslider = new TSlider("yslider","y",0.02,0.1,0.06,0.98);
yslider->SetMethod(".x action.C");
}

macro action.C

void action()
{
Int_t nx = hpxpy->GetXaxis()->GetNbins();
Int_t ny = hpxpy->GetYaxis()->GetNbins();
Int_t binxmin = nx*xslider->GetMinimum();
Int_t binxmax = nx*xslider->GetMaximum();
hpxpy->GetXaxis()->SetRange(binxmin,binxmax);
Int_t binymin = ny*yslider->GetMinimum();
Int_t binymax = ny*yslider->GetMaximum();
hpxpy->GetYaxis()->SetRange(binymin,binymax);
pad->cd();
hpxpy->Draw("COLZ");
c1->Update();
}

The canvas and the sliders created in the above macro are shown in the picture below.

Example 2 using TSlider::SetObject macro xyslider.C

Same example as above. Instead of TSlider::SetMethod:

Myclass *obj = new Myclass(); // Myclass derived from TObject
xslider->SetObject(obj);
yslider->SetObject(obj);

When the slider will be changed, MyClass::ExecuteEvent will be called with px=0 and py = 0

Definition at line 17 of file TSlider.h.

Public Member Functions

 TSlider ()
 slider default constructor. More...
 
 TSlider (const char *name, const char *title, Double_t x1, Double_t y1, Double_t x2, Double_t y2, Color_t color=16, Short_t bordersize=2, Short_t bordermode=-1)
 Slider normal constructor. More...
 
virtual ~TSlider ()
 slider default destructor. More...
 
Double_t GetMaximum () const
 
virtual const char * GetMethod () const
 
Double_t GetMinimum () const
 
TObjectGetObject () const
 
virtual void Paint (Option_t *option="")
 Paint this slider with its current attributes. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save primitive as a C++ statement(s) on output stream out. More...
 
virtual void SetMaximum (Double_t max=1)
 
virtual void SetMethod (const char *method)
 
virtual void SetMinimum (Double_t min=0)
 
void SetObject (TObject *obj=0)
 
virtual void SetRange (Double_t xmin=0, Double_t xmax=1)
 Set Slider range in [0,1]. More...
 
- Public Member Functions inherited from TPad
 TPad ()
 Pad default constructor. More...
 
 TPad (const char *name, const char *title, Double_t xlow, Double_t ylow, Double_t xup, Double_t yup, Color_t color=-1, Short_t bordersize=-1, Short_t bordermode=-2)
 Pad constructor. More...
 
virtual ~TPad ()
 Pad destructor. More...
 
void AbsCoordinates (Bool_t set) override
 
Double_t AbsPixeltoX (Int_t px) override
 
virtual void AbsPixeltoXY (Int_t xpixel, Int_t ypixel, Double_t &x, Double_t &y)
 
Double_t AbsPixeltoY (Int_t py) override
 
void AddExec (const char *name, const char *command) override
 Add a new TExec object to the list of Execs. More...
 
virtual void AutoExec ()
 Execute the list of Execs when a pad event occurs. More...
 
void Browse (TBrowser *b) override
 Browse pad. More...
 
TLegendBuildLegend (Double_t x1=0.3, Double_t y1=0.21, Double_t x2=0.3, Double_t y2=0.21, const char *title="", Option_t *option="") override
 Build a legend from the graphical objects in the pad. More...
 
TVirtualPadcd (Int_t subpadnumber=0) override
 Set Current pad. More...
 
void Clear (Option_t *option="") override
 Delete all pad primitives. More...
 
Int_t Clip (Double_t *x, Double_t *y, Double_t xclipl, Double_t yclipb, Double_t xclipr, Double_t yclipt) override
 Clipping routine: Cohen Sutherland algorithm. More...
 
virtual Int_t Clip (Float_t *x, Float_t *y, Float_t xclipl, Float_t yclipb, Float_t xclipr, Float_t yclipt)
 Clipping routine: Cohen Sutherland algorithm. More...
 
virtual Int_t ClippingCode (Double_t x, Double_t y, Double_t xcl1, Double_t ycl1, Double_t xcl2, Double_t ycl2)
 Compute the endpoint codes for TPad::Clip. More...
 
virtual Int_t ClipPolygon (Int_t n, Double_t *x, Double_t *y, Int_t nn, Double_t *xc, Double_t *yc, Double_t xclipl, Double_t yclipb, Double_t xclipr, Double_t yclipt)
 Clip polygon using the Sutherland-Hodgman algorithm. More...
 
void Close (Option_t *option="") override
 Delete all primitives in pad and pad itself. More...
 
virtual void Closed ()
 
void CloseToolTip (TObject *tip) override
 Hide tool tip. More...
 
void CopyPixmap () override
 Copy the pixmap of the pad to the canvas. More...
 
void CopyPixmaps () override
 Copy the sub-pixmaps of the pad to the canvas. More...
 
TObjectCreateToolTip (const TBox *b, const char *text, Long_t delayms) override
 Create a tool tip and return its pointer. More...
 
void DeleteExec (const char *name) override
 Remove TExec name from the list of Execs. More...
 
void DeleteToolTip (TObject *tip) override
 Delete tool tip object. More...
 
void Divide (Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0) override
 Automatic pad generation by division. More...
 
virtual void DivideSquare (Int_t n, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
 "n" is the total number of sub-pads. More...
 
void Draw (Option_t *option="") override
 Draw Pad in Current pad (re-parent pad if necessary). More...
 
void DrawClassObject (const TObject *obj, Option_t *option="") override
 Draw class inheritance tree of the class to which obj belongs. More...
 
void DrawCollideGrid ()
 This method draws the collide grid on top of the canvas. More...
 
virtual void DrawCrosshair ()
 Function called to draw a crosshair in the canvas. More...
 
TH1FDrawFrame (Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, const char *title="") override
 Draw an empty pad frame with X and Y axis. More...
 
virtual void EventPave ()
 
void ExecuteEventAxis (Int_t event, Int_t px, Int_t py, TAxis *axis) override
 Execute action corresponding to one event for a TAxis object (called by TAxis::ExecuteEvent.) This member function is called when an axis is clicked with the locator. More...
 
TObjectFindObject (const char *name) const override
 Search if object named name is inside this pad or in pads inside this pad. More...
 
TObjectFindObject (const TObject *obj) const override
 Search if obj is in pad or in pads inside this pad. More...
 
Double_t GetAbsHNDC () const override
 
Double_t GetAbsWNDC () const override
 
Double_t GetAbsXlowNDC () const override
 
Double_t GetAbsYlowNDC () const override
 
Double_t GetAspectRatio () const override
 
Rectangle_t GetBBox () override
 Return the bounding Box of the Pad. More...
 
TPoint GetBBoxCenter () override
 Return the center of the Pad as TPoint in pixels. More...
 
Short_t GetBorderMode () const override
 
Short_t GetBorderSize () const override
 
TCanvasGetCanvas () const override
 
Int_t GetCanvasID () const override
 Get canvas identifier. More...
 
TCanvasImpGetCanvasImp () const override
 Get canvas implementation pointer if any. More...
 
Int_t GetCrosshair () const
 Return the crosshair type (from the mother canvas) crosshair type = 0 means no crosshair. More...
 
Int_t GetEvent () const override
 Get Event. More...
 
Int_t GetEventX () const override
 Get X event. More...
 
Int_t GetEventY () const override
 Get Y event. More...
 
TFrameGetFrame () override
 Get frame. More...
 
Int_t GetGLDevice () override
 Get GL device. More...
 
Bool_t GetGridx () const override
 
Bool_t GetGridy () const override
 
Color_t GetHighLightColor () const override
 Get highlight color. More...
 
Double_t GetHNDC () const override
 Get height of pad along Y in Normalized Coordinates (NDC) More...
 
TListGetListOfExecs () const override
 
TListGetListOfPrimitives () const override
 
Int_t GetLogx () const override
 
Int_t GetLogy () const override
 
Int_t GetLogz () const override
 
TVirtualPadGetMother () const override
 
const char * GetName () const override
 Returns name of object. More...
 
Int_t GetNumber () const override
 
TVirtualPadGetPad (Int_t subpadnumber) const override
 Get a pointer to subpadnumber of this pad. More...
 
Int_t GetPadPaint () const override
 
void GetPadPar (Double_t &xlow, Double_t &ylow, Double_t &xup, Double_t &yup) override
 Return lower and upper bounds of the pad in NDC coordinates. More...
 
TObjectGetPadPointer () const override
 
TVirtualPadGetPadSave () const override
 Get save pad. More...
 
TVirtualPadPainterGetPainter () override
 Get pad painter from TCanvas. More...
 
Double_t GetPhi () const override
 
Int_t GetPixmapID () const override
 
TObjectGetPrimitive (const char *name) const override
 Get primitive. More...
 
void GetRange (Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2) override
 Return pad world coordinates range. More...
 
void GetRangeAxis (Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax) override
 Return pad axis coordinates range. More...
 
TObjectGetSelected () const override
 Get selected. More...
 
TVirtualPadGetSelectedPad () const override
 Get selected pad. More...
 
Double_t GetTheta () const override
 
Int_t GetTickx () const override
 
Int_t GetTicky () const override
 
const char * GetTitle () const override
 Returns title of object. More...
 
Double_t GetUxmax () const override
 Returns the maximum x-coordinate value visible on the pad. If log axis the returned value is in decades. More...
 
Double_t GetUxmin () const override
 Returns the minimum x-coordinate value visible on the pad. If log axis the returned value is in decades. More...
 
Double_t GetUymax () const override
 Returns the maximum y-coordinate value visible on the pad. If log axis the returned value is in decades. More...
 
Double_t GetUymin () const override
 Returns the minimum y-coordinate value visible on the pad. If log axis the returned value is in decades. More...
 
TViewGetView () const override
 
TObjectGetView3D () const override
 
TVirtualViewer3DGetViewer3D (Option_t *type="") override
 Create/obtain handle to 3D viewer. More...
 
TVirtualPadGetVirtCanvas () const override
 Get virtual canvas. More...
 
UInt_t GetWh () const override
 Get Wh. More...
 
Double_t GetWNDC () const override
 Get width of pad along X in Normalized Coordinates (NDC) More...
 
UInt_t GetWw () const override
 Get Ww. More...
 
Double_t GetX1 () const override
 
Double_t GetX2 () const override
 
Double_t GetXlowNDC () const override
 
Double_t GetY1 () const override
 
Double_t GetY2 () const override
 
Double_t GetYlowNDC () const override
 
Bool_t HasCrosshair () const override
 Return kTRUE if the crosshair has been activated (via SetCrosshair). More...
 
Bool_t HasFixedAspectRatio () const override
 
ULong_t Hash () const override
 Return hash value for this object. More...
 
Bool_t HasViewer3D () const override
 
void HighLight (Color_t col=kRed, Bool_t set=kTRUE) override
 Highlight pad. More...
 
Int_t IncrementPaletteColor (Int_t i, TString opt) override
 Increment (i==1) or set (i>1) the number of autocolor in the pad. More...
 
Bool_t IsBatch () const override
 Is pad in batch mode ? More...
 
virtual Bool_t IsEditable () const override
 
Bool_t IsFolder () const override
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
Bool_t IsModified () const override
 
Bool_t IsRetained () const override
 Is pad retained ? More...
 
Bool_t IsVertical () const override
 
void ls (Option_t *option="") const override
 List all primitives in pad. More...
 
void Modified (Bool_t flag=1) override
 
Int_t NextPaletteColor () override
 Get the next autocolor in the pad. More...
 
Bool_t OpaqueMoving () const override
 Is pad moving in opaque mode ? More...
 
Bool_t OpaqueResizing () const override
 Is pad resizing in opaque mode ? More...
 
Double_t PadtoX (Double_t x) const override
 Convert x from pad to X. More...
 
Double_t PadtoY (Double_t y) const override
 Convert y from pad to Y. More...
 
void PaintBox (Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t *option="") override
 Paint box in CurrentPad World coordinates. More...
 
void PaintFillArea (Int_t n, Double_t *x, Double_t *y, Option_t *option="") override
 Paint fill area in CurrentPad World coordinates. More...
 
void PaintFillArea (Int_t n, Float_t *x, Float_t *y, Option_t *option="") override
 
void PaintFillAreaHatches (Int_t n, Double_t *x, Double_t *y, Int_t FillStyle)
 This function paints hatched fill area according to the FillStyle value The convention for the Hatch is the following: More...
 
void PaintFillAreaNDC (Int_t n, Double_t *x, Double_t *y, Option_t *option="") override
 Paint fill area in CurrentPad NDC coordinates. More...
 
void PaintHatches (Double_t dy, Double_t angle, Int_t nn, Double_t *xx, Double_t *yy)
 This routine draw hatches inclined with the angle "angle" and spaced of "dy" in normalized device coordinates in the surface defined by n,xx,yy. More...
 
void PaintLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2) override
 Paint line in CurrentPad World coordinates. More...
 
void PaintLine3D (Double_t *p1, Double_t *p2) override
 Paint 3-D line in the CurrentPad. More...
 
void PaintLine3D (Float_t *p1, Float_t *p2) override
 Paint 3-D line in the CurrentPad. More...
 
void PaintLineNDC (Double_t u1, Double_t v1, Double_t u2, Double_t v2) override
 Paint line in normalized coordinates. More...
 
void PaintModified () override
 Traverse pad hierarchy and (re)paint only modified pads. More...
 
void PaintPadFrame (Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax) override
 Paint histogram/graph frame. More...
 
void PaintPolyLine (Int_t n, Double_t *x, Double_t *y, Option_t *option="") override
 Paint polyline in CurrentPad World coordinates. More...
 
void PaintPolyLine (Int_t n, Float_t *x, Float_t *y, Option_t *option="") override
 Paint polyline in CurrentPad World coordinates. More...
 
void PaintPolyLine3D (Int_t n, Double_t *p) override
 Paint 3-D polyline in the CurrentPad. More...
 
void PaintPolyLineNDC (Int_t n, Double_t *x, Double_t *y, Option_t *option="") override
 Paint polyline in CurrentPad NDC coordinates. More...
 
void PaintPolyMarker (Int_t n, Double_t *x, Double_t *y, Option_t *option="") override
 Paint polymarker in CurrentPad World coordinates. More...
 
void PaintPolyMarker (Int_t n, Float_t *x, Float_t *y, Option_t *option="") override
 Paint polymarker in CurrentPad World coordinates. More...
 
void PaintText (Double_t x, Double_t y, const char *text) override
 Paint text in CurrentPad World coordinates. More...
 
void PaintText (Double_t x, Double_t y, const wchar_t *text) override
 Paint text in CurrentPad World coordinates. More...
 
void PaintTextNDC (Double_t u, Double_t v, const char *text) override
 Paint text in CurrentPad NDC coordinates. More...
 
void PaintTextNDC (Double_t u, Double_t v, const wchar_t *text) override
 Paint text in CurrentPad NDC coordinates. More...
 
virtual TPadPick (Int_t px, Int_t py, TObjLink *&pickobj)
 Search for an object at pixel position px,py. More...
 
Double_t PixeltoX (Int_t px) override
 
virtual void PixeltoXY (Int_t xpixel, Int_t ypixel, Double_t &x, Double_t &y)
 
Double_t PixeltoY (Int_t py) override
 
Bool_t PlaceBox (TObject *o, Double_t w, Double_t h, Double_t &xl, Double_t &yb) override
 Place a box in NDC space. More...
 
void Pop () override
 Pop pad to the top of the stack. More...
 
void Print (const char *filename, Option_t *option) override
 Save Canvas contents in a file in one of various formats. More...
 
void Print (const char *filename="") const override
 Save Pad contents in a file in one of various formats. More...
 
void Range (Double_t x1, Double_t y1, Double_t x2, Double_t y2) override
 Set world coordinate system for the pad. More...
 
void RangeAxis (Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax) override
 Set axis coordinate system for the pad. More...
 
virtual void RangeAxisChanged ()
 
virtual void RangeChanged ()
 
virtual void RecordLatex (const TObject *obj)
 Emit RecordLatex() signal. More...
 
virtual void RecordPave (const TObject *obj)
 Emit RecordPave() signal. More...
 
void RecursiveRemove (TObject *obj) override
 Recursively remove object from a pad and its sub-pads. More...
 
void RedrawAxis (Option_t *option="") override
 Redraw the frame axis. More...
 
void ReleaseViewer3D (Option_t *type="") override
 Release current (external) viewer. More...
 
void ResetToolTip (TObject *tip) override
 Reset tool tip, i.e. More...
 
void ResetView3D (TObject *view=nullptr) override
 
virtual void Resized ()
 
void ResizePad (Option_t *option="") override
 Compute pad conversion coefficients. More...
 
void SaveAs (const char *filename="", Option_t *option="") const override
 Save Pad contents in a file in one of various formats. More...
 
void SetAttFillPS (Color_t color, Style_t style) override
 Set postscript fill area attributes. More...
 
void SetAttLinePS (Color_t color, Style_t style, Width_t lwidth) override
 Set postscript line attributes. More...
 
void SetAttMarkerPS (Color_t color, Style_t style, Size_t msize) override
 Set postscript marker attributes. More...
 
void SetAttTextPS (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize) override
 Set postscript text attributes. More...
 
void SetBBoxCenter (const TPoint &p) override
 Set center of the Pad. More...
 
void SetBBoxCenterX (const Int_t x) override
 Set X coordinate of the center of the Pad. More...
 
void SetBBoxCenterY (const Int_t y) override
 Set Y coordinate of the center of the Pad. More...
 
void SetBBoxX1 (const Int_t x) override
 Set lefthandside of BoundingBox to a value (resize in x direction on left) More...
 
void SetBBoxX2 (const Int_t x) override
 Set right hand side of BoundingBox to a value (resize in x direction on right) More...
 
void SetBBoxY1 (const Int_t y) override
 Set top of BoundingBox to a value (resize in y direction on top) More...
 
void SetBBoxY2 (const Int_t y) override
 Set bottom of BoundingBox to a value (resize in y direction on bottom) More...
 
void SetBorderMode (Short_t bordermode) override
 
void SetBorderSize (Short_t bordersize) override
 
void SetCanvas (TCanvas *c) override
 
void SetCanvasSize (UInt_t ww, UInt_t wh) override
 Set canvas size. More...
 
void SetCopyGLDevice (Bool_t copy) override
 
void SetCrosshair (Int_t crhair=1) override
 Set crosshair active/inactive. More...
 
void SetCursor (ECursor cursor) override
 Set cursor type. More...
 
void SetDoubleBuffer (Int_t mode=1) override
 Set double buffer mode ON or OFF. More...
 
void SetDrawOption (Option_t *option="") override
 Set drawing option for object. More...
 
void SetEditable (Bool_t mode=kTRUE) override
 Set pad editable yes/no If a pad is not editable: More...
 
void SetFillStyle (Style_t fstyle) override
 Override TAttFill::FillStyle for TPad because we want to handle style=0 as style 4000. More...
 
void SetFixedAspectRatio (Bool_t fixed=kTRUE) override
 Fix pad aspect ratio to current value if fixed is true. More...
 
virtual void SetGLDevice (Int_t dev)
 
void SetGrid (Int_t valuex=1, Int_t valuey=1) override
 
void SetGridx (Int_t value=1) override
 
void SetGridy (Int_t value=1) override
 
void SetLogx (Int_t value=1) override
 Set Lin/Log scale for X. More...
 
void SetLogy (Int_t value=1) override
 Set Lin/Log scale for Y. More...
 
void SetLogz (Int_t value=1) override
 Set Lin/Log scale for Z. More...
 
void SetName (const char *name) override
 
virtual void SetNumber (Int_t number)
 
void SetPad (const char *name, const char *title, Double_t xlow, Double_t ylow, Double_t xup, Double_t yup, Color_t color=35, Short_t bordersize=5, Short_t bordermode=-1) override
 Set all pad parameters. More...
 
void SetPad (Double_t xlow, Double_t ylow, Double_t xup, Double_t yup) override
 Set canvas range for pad and resize the pad. More...
 
void SetPhi (Double_t phi=30) override
 
void SetSelected (TObject *obj) override
 Set selected. More...
 
void SetTheta (Double_t theta=30) override
 
void SetTicks (Int_t valuex=1, Int_t valuey=1) override
 
void SetTickx (Int_t value=1) override
 
void SetTicky (Int_t value=1) override
 
void SetTitle (const char *title="") override
 
void SetToolTipText (const char *text, Long_t delayms=1000) override
 Set tool tip text associated with this pad. More...
 
void SetVertical (Bool_t vert=kTRUE) override
 Set pad vertical (default) or horizontal. More...
 
void SetView (TView *view=nullptr) override
 Set the current TView. Delete previous view if view=0. More...
 
void SetViewer3D (TVirtualViewer3D *viewer3d) override
 
void ShowGuidelines (TObject *object, const Int_t event, const char mode='i', const bool cling=true) override
 Shows lines to indicate if a TAttBBox2D object is aligned to the center or to another object, shows distance arrows if two objects on screen have the same distance to another object Call from primitive in Execute Event, in ButtonMotion after the new coordinates have been set, to 'stick' once when button is up to delete lines. More...
 
virtual void StartEditing ()
 
void Update () override
 Update pad. More...
 
void UseCurrentStyle () override
 Force a copy of current style for all objects in pad. More...
 
Int_t UtoAbsPixel (Double_t u) const override
 
Int_t UtoPixel (Double_t u) const override
 
Int_t VtoAbsPixel (Double_t v) const override
 
Int_t VtoPixel (Double_t v) const override
 
TObjectWaitPrimitive (const char *pname="", const char *emode="") override
 Loop and sleep until a primitive with name=pname is found in the pad. More...
 
virtual void x3d (Option_t *type="")
 Deprecated: use TPad::GetViewer3D() instead. More...
 
Int_t XtoAbsPixel (Double_t x) const override
 
Double_t XtoPad (Double_t x) const override
 Convert x from X to pad. More...
 
Int_t XtoPixel (Double_t x) const override
 
virtual void XYtoAbsPixel (Double_t x, Double_t y, Int_t &xpixel, Int_t &ypixel) const
 
virtual void XYtoPixel (Double_t x, Double_t y, Int_t &xpixel, Int_t &ypixel) const
 
Int_t YtoAbsPixel (Double_t y) const override
 
Double_t YtoPad (Double_t y) const override
 Convert y from Y to pad. More...
 
Int_t YtoPixel (Double_t y) const override
 
- Public Member Functions inherited from TVirtualPad
 TVirtualPad ()
 VirtualPad default constructor. More...
 
 TVirtualPad (const char *name, const char *title, Double_t xlow, Double_t ylow, Double_t xup, Double_t yup, Color_t color=19, Short_t bordersize=4, Short_t bordermode=1)
 VirtualPad constructor. More...
 
virtual ~TVirtualPad ()
 VirtualPad destructor. More...
 
Bool_t IsBeingResized () const
 
virtual Bool_t PadInHighlightMode () const
 Should always return false, unless you can highlight selected object in pad. More...
 
virtual Bool_t PadInSelectionMode () const
 Should always return false unless you have non-standard picking. More...
 
virtual void PopTopLevelSelectable ()
 Does nothing, unless you implement your own picking. More...
 
virtual void PushSelectableObject (TObject *obj)
 Does nothing, unless you implement your own picking. More...
 
virtual void PushTopLevelSelectable (TObject *top)
 Does nothing, unless you implement your own picking. More...
 
virtual void UnZoomed ()
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor. More...
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method. More...
 
virtual void Copy (TObject &object) const
 Copy this to obj. More...
 
virtual void Delete (Option_t *option="")
 Delete this object. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad). More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. More...
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
virtual Bool_t IsSortable () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More...
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
void ResetBit (UInt_t f)
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory. More...
 
- Public Member Functions inherited from TAttLine
 TAttLine ()
 AttLine default constructor. More...
 
 TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth)
 AttLine normal constructor. More...
 
virtual ~TAttLine ()
 AttLine destructor. More...
 
void Copy (TAttLine &attline) const
 Copy this line attributes to a new TAttLine. More...
 
Int_t DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
 Compute distance from point px,py to a line. More...
 
virtual Color_t GetLineColor () const
 Return the line color. More...
 
virtual Style_t GetLineStyle () const
 Return the line style. More...
 
virtual Width_t GetLineWidth () const
 Return the line width. More...
 
virtual void Modify ()
 Change current line attributes if necessary. More...
 
virtual void ResetAttLine (Option_t *option="")
 Reset this line attributes to default values. More...
 
virtual void SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
 Save line attributes as C++ statement(s) on output stream out. More...
 
virtual void SetLineAttributes ()
 Invoke the DialogCanvas Line attributes. More...
 
virtual void SetLineColor (Color_t lcolor)
 Set the line color. More...
 
virtual void SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
 Set a transparent line color. More...
 
virtual void SetLineStyle (Style_t lstyle)
 Set the line style. More...
 
virtual void SetLineWidth (Width_t lwidth)
 Set the line width. More...
 
- Public Member Functions inherited from TAttFill
 TAttFill ()
 AttFill default constructor. More...
 
 TAttFill (Color_t fcolor, Style_t fstyle)
 AttFill normal constructor. More...
 
virtual ~TAttFill ()
 AttFill destructor. More...
 
void Copy (TAttFill &attfill) const
 Copy this fill attributes to a new TAttFill. More...
 
virtual Color_t GetFillColor () const
 Return the fill area color. More...
 
virtual Style_t GetFillStyle () const
 Return the fill area style. More...
 
virtual Bool_t IsTransparent () const
 
virtual void Modify ()
 Change current fill area attributes if necessary. More...
 
virtual void ResetAttFill (Option_t *option="")
 Reset this fill attributes to default values. More...
 
virtual void SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
 Save fill attributes as C++ statement(s) on output stream out. More...
 
virtual void SetFillAttributes ()
 Invoke the DialogCanvas Fill attributes. More...
 
virtual void SetFillColor (Color_t fcolor)
 Set the fill area color. More...
 
virtual void SetFillColorAlpha (Color_t fcolor, Float_t falpha)
 Set a transparent fill color. More...
 
- Public Member Functions inherited from TAttPad
 TAttPad ()
 Constructor. More...
 
virtual ~TAttPad ()
 Destructor. More...
 
virtual void Copy (TAttPad &attpad) const
 copy function More...
 
Float_t GetAfile () const
 
Float_t GetAstat () const
 
Float_t GetBottomMargin () const
 
Int_t GetFrameBorderMode () const
 
Width_t GetFrameBorderSize () const
 
Color_t GetFrameFillColor () const
 
Style_t GetFrameFillStyle () const
 
Color_t GetFrameLineColor () const
 
Style_t GetFrameLineStyle () const
 
Width_t GetFrameLineWidth () const
 
Float_t GetLeftMargin () const
 
Float_t GetRightMargin () const
 
Float_t GetTopMargin () const
 
Float_t GetXfile () const
 
Float_t GetXstat () const
 
Float_t GetYfile () const
 
Float_t GetYstat () const
 
virtual void ResetAttPad (Option_t *option="")
 Reset pad attributes. More...
 
virtual void SetAfile (Float_t afile)
 
virtual void SetAstat (Float_t astat)
 
virtual void SetBottomMargin (Float_t bottommargin)
 Set Pad bottom margin in fraction of the pad height. More...
 
void SetFrameBorderMode (Int_t mode=1)
 
void SetFrameBorderSize (Width_t size=1)
 
void SetFrameFillColor (Color_t color=1)
 
void SetFrameFillStyle (Style_t styl=0)
 
void SetFrameLineColor (Color_t color=1)
 
void SetFrameLineStyle (Style_t styl=0)
 
void SetFrameLineWidth (Width_t width=1)
 
virtual void SetLeftMargin (Float_t leftmargin)
 Set Pad left margin in fraction of the pad width. More...
 
virtual void SetMargin (Float_t left, Float_t right, Float_t bottom, Float_t top)
 Set all margins. More...
 
virtual void SetRightMargin (Float_t rightmargin)
 Set Pad right margin in fraction of the pad width. More...
 
virtual void SetTopMargin (Float_t topmargin)
 Set Pad top margin in fraction of the pad height. More...
 
virtual void SetXfile (Float_t xfile)
 
virtual void SetXstat (Float_t xstat)
 
virtual void SetYfile (Float_t yfile)
 
virtual void SetYstat (Float_t ystat)
 
- Public Member Functions inherited from TQObject
 TQObject ()
 TQObject Constructor. More...
 
virtual ~TQObject ()
 TQObject Destructor. More...
 
Bool_t AreSignalsBlocked () const
 
Bool_t BlockSignals (Bool_t b)
 
virtual void ChangedBy (const char *method)
 
void CollectClassSignalLists (TList &list, TClass *cls)
 Collect class signal lists from class cls and all its base-classes. More...
 
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. More...
 
virtual void Connected (const char *)
 
virtual void Destroyed ()
 
Bool_t Disconnect (const char *signal=0, void *receiver=0, const char *slot=0)
 Disconnects signal of this object from slot of receiver. More...
 
virtual void Disconnected (const char *)
 
void Emit (const char *signal)
 Activate signal without args. More...
 
template<typename T >
void Emit (const char *signal, const T &arg)
 Activate signal with single parameter. More...
 
template<typename... T>
void EmitVA (const char *signal_name, Int_t, const T &... params)
 Emit a signal with a varying number of arguments. More...
 
TListGetListOfClassSignals () const
 Returns pointer to list of signals of this class. More...
 
TListGetListOfConnections () const
 
TListGetListOfSignals () const
 
virtual Bool_t HasConnection (const char *signal_name) const
 Return true if there is any object connected to this signal. More...
 
virtual void HighPriority (const char *signal_name, const char *slot_name=0)
 
virtual void LowPriority (const char *signal_name, const char *slot_name=0)
 
virtual void Message (const char *msg)
 
virtual Int_t NumberOfConnections () const
 Return number of connections for this object. More...
 
virtual Int_t NumberOfSignals () const
 Return number of signals for this object. More...
 
- Public Member Functions inherited from TAttBBox2D
virtual ~TAttBBox2D ()
 

Protected Attributes

Double_t fMaximum
 Slider maximum value in [0,1]. More...
 
TString fMethod
 command to be executed when slider is changed More...
 
Double_t fMinimum
 Slider minimum value in [0,1]. More...
 
TObjectfObject
 !Pointer to associated object More...
 
- Protected Attributes inherited from TPad
Bool_t fAbsCoord
 Use absolute coordinates. More...
 
Double_t fAbsHNDC
 Absolute Height of pad along Y in NDC. More...
 
Double_t fAbsPixeltoXk
 Conversion coefficient for absolute pixel to X World. More...
 
Double_t fAbsPixeltoYk
 Conversion coefficient for absolute pixel to Y World. More...
 
Double_t fAbsWNDC
 Absolute Width of pad along X in NDC. More...
 
Double_t fAbsXlowNDC
 Absolute X top left corner of pad in NDC [0,1]. More...
 
Double_t fAbsYlowNDC
 Absolute Y top left corner of pad in NDC [0,1]. More...
 
Double_t fAspectRatio
 ratio of w/h in case of fixed ratio More...
 
Short_t fBorderMode
 Bordermode (-1=down, 0 = no border, 1=up) More...
 
Short_t fBorderSize
 pad bordersize in pixels More...
 
TCanvasfCanvas
 ! Pointer to mother canvas More...
 
Int_t fCGnx
 ! Size of the collide grid along x More...
 
Int_t fCGny
 ! Size of the collide grid along y More...
 
Bool_tfCollideGrid
 ! Grid used to find empty space when adding a box (Legend) in a pad More...
 
Bool_t fCopyGLDevice
 ! More...
 
Int_t fCrosshair
 Crosshair type (0 if no crosshair requested) More...
 
Int_t fCrosshairPos
 Position of crosshair. More...
 
Bool_t fEditable
 True if canvas is editable. More...
 
Bool_t fEmbeddedGL
 ! More...
 
TListfExecs
 List of commands to be executed when a pad event occurs. More...
 
Bool_t fFixedAspectRatio
 True if fixed aspect ratio. More...
 
TFramefFrame
 ! Pointer to 2-D frame (if one exists) More...
 
Int_t fGLDevice
 ! OpenGL off-screen pixmap identifier More...
 
Bool_t fGridx
 Set to true if grid along X. More...
 
Bool_t fGridy
 Set to true if grid along Y. More...
 
Double_t fHNDC
 Height of pad along Y in Normalized Coordinates (NDC) More...
 
Int_t fLogx
 (=0 if X linear scale, =1 if log scale) More...
 
Int_t fLogy
 (=0 if Y linear scale, =1 if log scale) More...
 
Int_t fLogz
 (=0 if Z linear scale, =1 if log scale) More...
 
Bool_t fModified
 Set to true when pad is modified. More...
 
TPadfMother
 ! pointer to mother of the list More...
 
TString fName
 Pad name. More...
 
Int_t fNextPaletteColor
 Next automatic color. More...
 
Int_t fNumber
 pad number identifier More...
 
Int_t fNumPaletteColor
 Number of objects with an automatic color. More...
 
Int_t fPadPaint
 Set to 1 while painting the pad. More...
 
TObjectfPadPointer
 ! free pointer More...
 
TObjectfPadView3D
 ! 3D View of this TPad More...
 
Double_t fPhi
 phi angle to view as lego/surface More...
 
Double_t fPixeltoX
 xworld = fPixeltoXk + fPixeltoX*xpixel More...
 
Double_t fPixeltoXk
 Conversion coefficient for pixel to X World. More...
 
Double_t fPixeltoY
 yworld = fPixeltoYk + fPixeltoY*ypixel More...
 
Double_t fPixeltoYk
 Conversion coefficient for pixel to Y World. More...
 
Int_t fPixmapID
 ! Off-screen pixmap identifier More...
 
TListfPrimitives
 ->List of primitives (subpads) More...
 
Double_t fTheta
 theta angle to view as lego/surface More...
 
Int_t fTickx
 Set to 1 if tick marks along X. More...
 
Int_t fTicky
 Set to 1 if tick marks along Y. More...
 
TString fTitle
 Pad title. More...
 
Double_t fUtoAbsPixelk
 Conversion coefficient for U NDC to absolute pixel. More...
 
Double_t fUtoPixel
 xpixel = fUtoPixelk + fUtoPixel*undc More...
 
Double_t fUtoPixelk
 Conversion coefficient for U NDC to pixel. More...
 
Double_t fUxmax
 Maximum value on the X axis. More...
 
Double_t fUxmin
 Minimum value on the X axis. More...
 
Double_t fUymax
 Maximum value on the Y axis. More...
 
Double_t fUymin
 Minimum value on the Y axis. More...
 
TViewfView
 ! Pointer to 3-D view (if one exists) More...
 
TVirtualViewer3DfViewer3D
 ! Current 3D viewer More...
 
Double_t fVtoAbsPixelk
 Conversion coefficient for V NDC to absolute pixel. More...
 
Double_t fVtoPixel
 ypixel = fVtoPixelk + fVtoPixel*vndc More...
 
Double_t fVtoPixelk
 Conversion coefficient for V NDC to pixel. More...
 
Double_t fWNDC
 Width of pad along X in Normalized Coordinates (NDC) More...
 
Double_t fX1
 X of lower X coordinate. More...
 
Double_t fX2
 X of upper X coordinate. More...
 
Double_t fXlowNDC
 X bottom left corner of pad in NDC [0,1]. More...
 
Double_t fXtoAbsPixelk
 Conversion coefficient for X World to absolute pixel. More...
 
Double_t fXtoPixel
 xpixel = fXtoPixelk + fXtoPixel*xworld More...
 
Double_t fXtoPixelk
 Conversion coefficient for X World to pixel. More...
 
Double_t fXUpNDC
 
Double_t fY1
 Y of lower Y coordinate. More...
 
Double_t fY2
 Y of upper Y coordinate. More...
 
Double_t fYlowNDC
 Y bottom left corner of pad in NDC [0,1]. More...
 
Double_t fYtoAbsPixelk
 Conversion coefficient for Y World to absolute pixel. More...
 
Double_t fYtoPixel
 ypixel = fYtoPixelk + fYtoPixel*yworld More...
 
Double_t fYtoPixelk
 Conversion coefficient for Y World to pixel. More...
 
Double_t fYUpNDC
 
- Protected Attributes inherited from TVirtualPad
Bool_t fResizing
 
- Protected Attributes inherited from TAttLine
Color_t fLineColor
 Line color. More...
 
Style_t fLineStyle
 Line style. More...
 
Width_t fLineWidth
 Line width. More...
 
- Protected Attributes inherited from TAttFill
Color_t fFillColor
 Fill area color. More...
 
Style_t fFillStyle
 Fill area style. More...
 
- Protected Attributes inherited from TAttPad
Float_t fAfile
 Alignment for the file name. More...
 
Float_t fAstat
 Alignment for the statistics. More...
 
Float_t fBottomMargin
 BottomMargin. More...
 
Int_t fFrameBorderMode
 Pad frame border mode. More...
 
Width_t fFrameBorderSize
 Pad frame border size. More...
 
Color_t fFrameFillColor
 Pad frame fill color. More...
 
Style_t fFrameFillStyle
 Pad frame fill style. More...
 
Color_t fFrameLineColor
 Pad frame line color. More...
 
Style_t fFrameLineStyle
 Pad frame line style. More...
 
Width_t fFrameLineWidth
 Pad frame line width. More...
 
Float_t fLeftMargin
 LeftMargin. More...
 
Float_t fRightMargin
 RightMargin. More...
 
Float_t fTopMargin
 TopMargin. More...
 
Float_t fXfile
 X position where to draw the file name. More...
 
Float_t fXstat
 X position where to draw the statistics. More...
 
Float_t fYfile
 Y position where to draw the file name. More...
 
Float_t fYstat
 Y position where to draw the statistics. More...
 
- Protected Attributes inherited from TQObject
TListfListOfConnections
 list of signals from this object More...
 
TListfListOfSignals
 
Bool_t fSignalsBlocked
 list of connections to this object More...
 

Private Member Functions

 TSlider (const TSlider &)=delete
 
TSlideroperator= (const TSlider &)=delete
 

Additional Inherited Members

- Public Types inherited from TPad
enum  {
  kFraming = BIT(6), kHori = BIT(9), kClipFrame = BIT(10), kPrintingPS = BIT(11),
  kCannotMove = BIT(12), kClearAfterCR = BIT(14)
}
 
- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kInconsistent = 0x08000000,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = BIT(3) }
 
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kIsReferenced = BIT(4), kHasUUID = BIT(5),
  kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 
- Static Public Member Functions inherited from TPad
static void DrawColorTable ()
 Static function to Display Color Table in a pad. More...
 
static Int_t GetMaxPickDistance ()
 Static function (see also TPad::SetMaxPickDistance) More...
 
static void SetMaxPickDistance (Int_t maxPick=5)
 static function to set the maximum Pick Distance fgMaxPickDistance This parameter is used in TPad::Pick to select an object if its DistancetoPrimitive returns a value < fgMaxPickDistance The default value is 5 pixels. More...
 
- Static Public Member Functions inherited from TVirtualPad
static TVirtualPad *& Pad ()
 Return the current pad for the current thread. More...
 
- Static Public Member Functions inherited from TObject
static Longptr_t GetDtorOnly ()
 Return destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 
- Static Public Member Functions inherited from TQObject
static Bool_t AreAllSignalsBlocked ()
 Returns true if all signals are blocked. More...
 
static Bool_t BlockAllSignals (Bool_t b)
 Block or unblock all signals. Returns the previous block status. More...
 
static Bool_t Connect (const char *sender_class, const char *signal, const char *receiver_class, void *receiver, const char *slot)
 This method allows to make a connection from any object of the same class to a single slot. More...
 
static Bool_t Connect (TQObject *sender, const char *signal, const char *receiver_class, void *receiver, const char *slot)
 Create connection between sender and receiver. More...
 
static Bool_t Disconnect (const char *class_name, const char *signal, void *receiver=0, const char *slot=0)
 Disconnects "class signal". More...
 
static Bool_t Disconnect (TQObject *sender, const char *signal=0, void *receiver=0, const char *slot=0)
 Disconnects signal in object sender from slot_method in object receiver. More...
 
- Protected Types inherited from TObject
enum  { kOnlyPrepStep = BIT(3) }
 
- Protected Member Functions inherited from TPad
void DestroyExternalViewer3D ()
 
Int_t DistancetoPrimitive (Int_t px, Int_t py) override
 Compute distance from point px,py to a box. More...
 
void ExecuteEvent (Int_t event, Int_t px, Int_t py) override
 Execute action corresponding to one event. More...
 
virtual void HideToolTip (Int_t event)
 Hide tool tip depending on the event type. More...
 
void PaintBorder (Color_t color, Bool_t tops)
 Paint the pad border. More...
 
void PaintBorderPS (Double_t xl, Double_t yl, Double_t xt, Double_t yt, Int_t bmode, Int_t bsize, Int_t dark, Int_t light) override
 Paint a frame border with Postscript. More...
 
void PaintDate ()
 Paint the current date and time if the option date is on. More...
 
void SetBatch (Bool_t batch=kTRUE) override
 Set pad in batch mode. More...
 
- Protected Member Functions inherited from TVirtualPad
voidGetSender () override
 true when resizing the pad More...
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 
void MakeZombie ()
 
- Protected Member Functions inherited from TQObject
virtual const char * GetSenderClassName () const
 
- Static Protected Member Functions inherited from TQObject
static Int_t CheckConnectArgs (TQObject *sender, TClass *sender_class, const char *signal, TClass *receiver_class, const char *slot)
 Checking of consistency of sender/receiver methods/arguments. More...
 
static TString CompressName (const char *method_name)
 Removes "const" words and blanks from full (with prototype) method name and resolve any typedefs in the method signature. More...
 
static Bool_t ConnectToClass (const char *sender_class, const char *signal, TClass *receiver_class, void *receiver, const char *slot)
 This method allows to make connection from any object of the same class to the receiver object. More...
 
static Bool_t ConnectToClass (TQObject *sender, const char *signal, TClass *receiver_class, void *receiver, const char *slot)
 Create connection between sender and receiver. More...
 
- Static Protected Attributes inherited from TPad
static Int_t fgMaxPickDistance = 5
 Maximum Pick Distance. More...
 
- Static Protected Attributes inherited from TQObject
static Bool_t fgAllSignalsBlocked = kFALSE
 flag used for suppression of signals More...
 

#include <TSlider.h>

Inheritance diagram for TSlider:
[legend]

Constructor & Destructor Documentation

◆ TSlider() [1/3]

TSlider::TSlider ( const TSlider )
privatedelete

◆ TSlider() [2/3]

TSlider::TSlider ( )

slider default constructor.

Definition at line 107 of file TSlider.cxx.

◆ TSlider() [3/3]

TSlider::TSlider ( const char *  name,
const char *  title,
Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2,
Color_t  color = 16,
Short_t  bordersize = 2,
Short_t  bordermode = -1 
)

Slider normal constructor.

x1,y1,x2,y2 are in pad user coordinates

Definition at line 120 of file TSlider.cxx.

◆ ~TSlider()

TSlider::~TSlider ( )
virtual

slider default destructor.

Definition at line 154 of file TSlider.cxx.

Member Function Documentation

◆ GetMaximum()

Double_t TSlider::GetMaximum ( ) const
inline

Definition at line 35 of file TSlider.h.

◆ GetMethod()

virtual const char* TSlider::GetMethod ( ) const
inlinevirtual

Definition at line 36 of file TSlider.h.

◆ GetMinimum()

Double_t TSlider::GetMinimum ( ) const
inline

Definition at line 34 of file TSlider.h.

◆ GetObject()

TObject* TSlider::GetObject ( ) const
inline

Definition at line 33 of file TSlider.h.

◆ operator=()

TSlider& TSlider::operator= ( const TSlider )
privatedelete

◆ Paint()

void TSlider::Paint ( Option_t option = "")
virtual

Paint this slider with its current attributes.

Reimplemented from TPad.

Definition at line 161 of file TSlider.cxx.

◆ SavePrimitive()

void TSlider::SavePrimitive ( std::ostream &  out,
Option_t option = "" 
)
virtual

Save primitive as a C++ statement(s) on output stream out.

Reimplemented from TPad.

Definition at line 169 of file TSlider.cxx.

◆ SetMaximum()

virtual void TSlider::SetMaximum ( Double_t  max = 1)
inlinevirtual

Definition at line 42 of file TSlider.h.

◆ SetMethod()

virtual void TSlider::SetMethod ( const char *  method)
inlinevirtual

Definition at line 39 of file TSlider.h.

◆ SetMinimum()

virtual void TSlider::SetMinimum ( Double_t  min = 0)
inlinevirtual

Definition at line 41 of file TSlider.h.

◆ SetObject()

void TSlider::SetObject ( TObject obj = 0)
inline

Definition at line 40 of file TSlider.h.

◆ SetRange()

void TSlider::SetRange ( Double_t  xmin = 0,
Double_t  xmax = 1 
)
virtual

Set Slider range in [0,1].

Definition at line 207 of file TSlider.cxx.

Member Data Documentation

◆ fMaximum

Double_t TSlider::fMaximum
protected

Slider maximum value in [0,1].

Definition at line 21 of file TSlider.h.

◆ fMethod

TString TSlider::fMethod
protected

command to be executed when slider is changed

Definition at line 23 of file TSlider.h.

◆ fMinimum

Double_t TSlider::fMinimum
protected

Slider minimum value in [0,1].

Definition at line 20 of file TSlider.h.

◆ fObject

TObject* TSlider::fObject
protected

!Pointer to associated object

Definition at line 22 of file TSlider.h.

Libraries for TSlider:
[legend]

The documentation for this class was generated from the following files:
f
#define f(i)
Definition: RSha256.hxx:104
TPad
The most important graphics class in the ROOT system.
Definition: TPad.h:26
TPad::TPad
TPad()
Pad default constructor.
Definition: TPad.cxx:129
TH2F
2-D histogram with a float per channel (see TH1 documentation)}
Definition: TH2.h:251
TSlider::SetMethod
virtual void SetMethod(const char *method)
Definition: TSlider.h:39
Int_t
int Int_t
Definition: RtypesCore.h:45
TSlider::GetMaximum
Double_t GetMaximum() const
Definition: TSlider.h:35
TSlider::TSlider
TSlider()
slider default constructor.
Definition: TSlider.cxx:107
TPad::cd
TVirtualPad * cd(Int_t subpadnumber=0) override
Set Current pad.
Definition: TPad.cxx:604
TAxis::SetRange
virtual void SetRange(Int_t first=0, Int_t last=0)
Set the viewing range for the axis using bin numbers.
Definition: TAxis.cxx:920
TH1::GetYaxis
TAxis * GetYaxis()
Definition: TH1.h:321
TFile
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
Definition: TFile.h:54
TCanvas
The Canvas class.
Definition: TCanvas.h:23
TSlider::SetObject
void SetObject(TObject *obj=0)
Definition: TSlider.h:40
TH1::GetXaxis
TAxis * GetXaxis()
Get the behaviour adopted by the object about the statoverflows. See EStatOverflows for more informat...
Definition: TH1.h:320
TPad::Draw
void Draw(Option_t *option="") override
Draw Pad in Current pad (re-parent pad if necessary).
Definition: TPad.cxx:1300
TSlider::GetMinimum
Double_t GetMinimum() const
Definition: TSlider.h:34
TAxis::GetNbins
Int_t GetNbins() const
Definition: TAxis.h:121
TH1::Draw
virtual void Draw(Option_t *option="")
Draw this histogram with options.
Definition: TH1.cxx:3073
c1
return c1
Definition: legend1.C:41
TSlider
A specialized TPad including a TSliderBox object.
Definition: TSlider.h:17