ROOT logo
ROOT » GRAF2D » GPAD » TSlider

class TSlider: public TPad



TSlider

  A TSlider object is 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 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 (SetObject
has been called), while the slider is being moved/resized,
the object ExecuteEvent function is called.                         //

Example 1 using SetMethod    macro xyslider.C

{                                                                     
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","lego pad",0.1,0.1,0.98,0.98);
pad->SetFillColor(33);
pad->Draw();
pad->cd();
gStyle->SetFrameFillColor(42);
hpxpy->SetFillColor(46);
hpxpy->Draw("lego1");
c1->cd();

Create two sliders in main canvas. When button1
of the mouse will be released, 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
{                                                                     
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("lego1");
c1->Update();
}                                                                     
The canvas and the sliders created in the above macro are shown
in the picture below.

// /* */

Example 2 using SetObject    macro xyslider.C


Same example as above. Instead of 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

Function Members (Methods)

public:
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)
virtual~TSlider()
virtual voidTPad::AbsCoordinates(Bool_t set)
virtual Double_tTPad::AbsPixeltoX(Int_t px)
virtual voidTPad::AbsPixeltoXY(Int_t xpixel, Int_t ypixel, Double_t& x, Double_t& y)
virtual Double_tTPad::AbsPixeltoY(Int_t py)
voidTObject::AbstractMethod(const char* method) const
virtual voidTPad::AddExec(const char* name, const char* command)
virtual voidTObject::AppendPad(Option_t* option = "")
static Bool_tTQObject::AreAllSignalsBlocked()
Bool_tTQObject::AreSignalsBlocked() const
virtual voidTPad::AutoExec()
static Bool_tTQObject::BlockAllSignals(Bool_t b)
Bool_tTQObject::BlockSignals(Bool_t b)
virtual voidTPad::Browse(TBrowser* b)
virtual TLegend*TPad::BuildLegend(Double_t x1 = 0.5, Double_t y1 = 0.67, Double_t x2 = 0.88, Double_t y2 = 0.88, const char* title = "")MENU
virtual TVirtualPad*TPad::cd(Int_t subpadnumber = 0)MENU
virtual voidTQObject::ChangedBy(const char* method)SIGNAL
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTPad::Clear(Option_t* option = "")
virtual Int_tTPad::Clip(Float_t* x, Float_t* y, Float_t xclipl, Float_t yclipb, Float_t xclipr, Float_t yclipt)
virtual Int_tTPad::Clip(Double_t* x, Double_t* y, Double_t xclipl, Double_t yclipb, Double_t xclipr, Double_t yclipt)
virtual Int_tTPad::ClippingCode(Double_t x, Double_t y, Double_t xcl1, Double_t ycl1, Double_t xcl2, Double_t ycl2)
virtual Int_tTPad::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)
virtual TObject*TObject::Clone(const char* newname = "") const
virtual voidTPad::Close(Option_t* option = "")
virtual voidTPad::Closed()SIGNAL
virtual voidTPad::CloseToolTip(TObject* tip)
voidTQObject::CollectClassSignalLists(TList& list, TClass* cls)
virtual Int_tTObject::Compare(const TObject* obj) const
Bool_tTQObject::Connect(const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(TQObject* sender, const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(const char* sender_class, const char* signal, const char* receiver_class, void* receiver, const char* slot)
virtual voidTQObject::Connected(const char*)
virtual voidTObject::Copy(TObject& object) const
virtual voidTPad::CopyPixmap()
virtual voidTPad::CopyPixmaps()
virtual TObject*TPad::CreateToolTip(const TBox* b, const char* text, Long_t delayms)
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual voidTPad::DeleteExec(const char* name)
virtual voidTPad::DeleteToolTip(TObject* tip)
virtual voidTQObject::Destroyed()SIGNAL
Bool_tTQObject::Disconnect(const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(TQObject* sender, const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(const char* class_name, const char* signal, void* receiver = 0, const char* slot = 0)
virtual voidTQObject::Disconnected(const char*)
Int_tTAttLine::DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
virtual voidTPad::Divide(Int_t nx = 1, Int_t ny = 1, Float_t xmargin = 0.01, Float_t ymargin = 0.01, Int_t color = 0)MENU
virtual voidTPad::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual voidTPad::DrawClassObject(const TObject* obj, Option_t* option = "")
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
static voidTPad::DrawColorTable()
virtual voidTPad::DrawCrosshair()
virtual TH1F*TPad::DrawFrame(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, const char* title = "")
virtual voidTObject::Dump() constMENU
voidTQObject::Emit(const char* signal)
voidTQObject::Emit(const char* signal, Long_t* paramArr)
voidTQObject::Emit(const char* signal, const char* params)
voidTQObject::Emit(const char* signal, Double_t param)
voidTQObject::Emit(const char* signal, Long_t param)
voidTQObject::Emit(const char* signal, Long64_t param)
voidTQObject::Emit(const char* signal, Bool_t param)
voidTQObject::Emit(const char* signal, Char_t param)
voidTQObject::Emit(const char* signal, UChar_t param)
voidTQObject::Emit(const char* signal, Short_t param)
voidTQObject::Emit(const char* signal, UShort_t param)
voidTQObject::Emit(const char* signal, Int_t param)
voidTQObject::Emit(const char* signal, UInt_t param)
voidTQObject::Emit(const char* signal, ULong_t param)
voidTQObject::Emit(const char* signal, ULong64_t param)
voidTQObject::Emit(const char* signal, Float_t param)
voidTQObject::EmitVA(const char* signal, Int_t nargs)
voidTQObject::EmitVA(const char* signal, Int_t nargs, va_list va)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTPad::EventPave()SIGNAL
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTPad::ExecuteEventAxis(Int_t event, Int_t px, Int_t py, TAxis* axis)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TPad::FindObject(const char* name) const
virtual TObject*TPad::FindObject(const TObject* obj) const
virtual Double_tTPad::GetAbsHNDC() const
virtual Double_tTPad::GetAbsWNDC() const
virtual Double_tTPad::GetAbsXlowNDC() const
virtual Double_tTPad::GetAbsYlowNDC() const
Float_tTAttPad::GetAfile() const
virtual Double_tTPad::GetAspectRatio() const
Float_tTAttPad::GetAstat() const
virtual Short_tTPad::GetBorderMode() const
virtual Short_tTPad::GetBorderSize() const
Float_tTAttPad::GetBottomMargin() const
virtual TCanvas*TPad::GetCanvas() const
virtual Int_tTPad::GetCanvasID() const
virtual TCanvasImp*TPad::GetCanvasImp() const
Int_tTPad::GetCrosshair() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual Int_tTPad::GetEvent() const
virtual Int_tTPad::GetEventX() const
virtual Int_tTPad::GetEventY() const
virtual Color_tTAttFill::GetFillColor() const
virtual Style_tTAttFill::GetFillStyle() const
virtual TFrame*TPad::GetFrame()
Int_tTAttPad::GetFrameBorderMode() const
Width_tTAttPad::GetFrameBorderSize() const
Color_tTAttPad::GetFrameFillColor() const
Style_tTAttPad::GetFrameFillStyle() const
Color_tTAttPad::GetFrameLineColor() const
Style_tTAttPad::GetFrameLineStyle() const
Width_tTAttPad::GetFrameLineWidth() const
virtual Int_tTPad::GetGLDevice()
virtual Bool_tTPad::GetGridx() const
virtual Bool_tTPad::GetGridy() const
virtual Color_tTPad::GetHighLightColor() const
virtual Double_tTPad::GetHNDC() const
virtual const char*TObject::GetIconName() const
Float_tTAttPad::GetLeftMargin() const
virtual Color_tTAttLine::GetLineColor() const
virtual Style_tTAttLine::GetLineStyle() const
virtual Width_tTAttLine::GetLineWidth() const
TList*TQObject::GetListOfClassSignals() const
TList*TQObject::GetListOfConnections() const
virtual TList*TPad::GetListOfExecs() const
virtual TList*TPad::GetListOfPrimitives() const
TList*TQObject::GetListOfSignals() const
virtual Int_tTPad::GetLogx() const
virtual Int_tTPad::GetLogy() const
virtual Int_tTPad::GetLogz() const
Double_tGetMaximum() const
static Int_tTPad::GetMaxPickDistance()
virtual const char*GetMethod() const
Double_tGetMinimum() const
virtual TVirtualPad*TPad::GetMother() const
virtual const char*TPad::GetName() const
virtual Int_tTPad::GetNumber() const
TObject*GetObject() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual TVirtualPad*TPad::GetPad(Int_t subpadnumber) const
virtual Int_tTPad::GetPadPaint() const
virtual voidTPad::GetPadPar(Double_t& xlow, Double_t& ylow, Double_t& xup, Double_t& yup)
virtual TObject*TPad::GetPadPointer() const
virtual TVirtualPad*TPad::GetPadSave() const
virtual TVirtualPadPainter*TPad::GetPainter()
virtual Double_tTPad::GetPhi() const
virtual Int_tTPad::GetPixmapID() const
virtual TObject*TPad::GetPrimitive(const char* name) const
virtual voidTPad::GetRange(Double_t& x1, Double_t& y1, Double_t& x2, Double_t& y2)
virtual voidTPad::GetRangeAxis(Double_t& xmin, Double_t& ymin, Double_t& xmax, Double_t& ymax)
Float_tTAttPad::GetRightMargin() const
virtual TObject*TPad::GetSelected() const
virtual TVirtualPad*TPad::GetSelectedPad() const
virtual Double_tTPad::GetTheta() const
virtual Int_tTPad::GetTickx() const
virtual Int_tTPad::GetTicky() const
virtual const char*TPad::GetTitle() const
Float_tTAttPad::GetTopMargin() const
virtual UInt_tTObject::GetUniqueID() const
virtual Double_tTPad::GetUxmax() const
virtual Double_tTPad::GetUxmin() const
virtual Double_tTPad::GetUymax() const
virtual Double_tTPad::GetUymin() const
virtual TView*TPad::GetView() const
virtual TObject*TPad::GetView3D() const
virtual TVirtualViewer3D*TPad::GetViewer3D(Option_t* type = "")
virtual TVirtualPad*TPad::GetVirtCanvas() const
virtual UInt_tTPad::GetWh() const
virtual Double_tTPad::GetWNDC() const
virtual UInt_tTPad::GetWw() const
virtual Double_tTPad::GetX1() const
virtual Double_tTPad::GetX2() const
Float_tTAttPad::GetXfile() const
virtual Double_tTPad::GetXlowNDC() const
Float_tTAttPad::GetXstat() const
virtual Double_tTPad::GetY1() const
virtual Double_tTPad::GetY2() const
Float_tTAttPad::GetYfile() const
virtual Double_tTPad::GetYlowNDC() const
Float_tTAttPad::GetYstat() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual Bool_tTQObject::HasConnection(const char* signal_name) const
virtual Bool_tTPad::HasCrosshair() const
virtual Bool_tTPad::HasFixedAspectRatio() const
virtual ULong_tTPad::Hash() const
virtual Bool_tTPad::HasViewer3D() const
virtual voidTPad::HighLight(Color_t col = kRed, Bool_t set = kTRUE)
virtual voidTQObject::HighPriority(const char* signal_name, const char* slot_name = 0)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTPad::IsBatch() const
Bool_tTVirtualPad::IsBeingResized() const
virtual Bool_tTPad::IsEditable() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTPad::IsFolder() const
virtual Bool_tTPad::IsModified() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTPad::IsRetained() const
virtual Bool_tTObject::IsSortable() const
virtual Bool_tTAttFill::IsTransparent() const
virtual Bool_tTPad::IsVertical() const
Bool_tTObject::IsZombie() const
static voidTQObject::LoadRQ_OBJECT()
virtual voidTQObject::LowPriority(const char* signal_name, const char* slot_name = 0)
virtual voidTPad::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual voidTQObject::Message(const char* msg)SIGNAL
virtual voidTPad::Modified(Bool_t flag = 1)SIGNAL
virtual voidTAttLine::Modify()
virtual Bool_tTObject::Notify()
virtual Int_tTQObject::NumberOfConnections() const
virtual Int_tTQObject::NumberOfSignals() const
virtual Bool_tTPad::OpaqueMoving() const
virtual Bool_tTPad::OpaqueResizing() const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
static TVirtualPad*&TVirtualPad::Pad()
virtual Double_tTPad::PadtoX(Double_t x) const
virtual Double_tTPad::PadtoY(Double_t y) const
virtual voidPaint(Option_t* option = "")
virtual voidTPad::PaintBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t* option = "")
virtual voidTPad::PaintFillArea(Int_t n, Float_t* x, Float_t* y, Option_t* option = "")
virtual voidTPad::PaintFillArea(Int_t n, Double_t* x, Double_t* y, Option_t* option = "")
voidTPad::PaintFillAreaHatches(Int_t n, Double_t* x, Double_t* y, Int_t FillStyle)
voidTPad::PaintHatches(Double_t dy, Double_t angle, Int_t nn, Double_t* xx, Double_t* yy)
virtual voidTPad::PaintLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
virtual voidTPad::PaintLine3D(Float_t* p1, Float_t* p2)
virtual voidTPad::PaintLine3D(Double_t* p1, Double_t* p2)
virtual voidTPad::PaintLineNDC(Double_t u1, Double_t v1, Double_t u2, Double_t v2)
virtual voidTPad::PaintModified()
virtual voidTPad::PaintPadFrame(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax)
virtual voidTPad::PaintPolyLine(Int_t n, Float_t* x, Float_t* y, Option_t* option = "")
virtual voidTPad::PaintPolyLine(Int_t n, Double_t* x, Double_t* y, Option_t* option = "")
virtual voidTPad::PaintPolyLine3D(Int_t n, Double_t* p)
virtual voidTPad::PaintPolyLineNDC(Int_t n, Double_t* x, Double_t* y, Option_t* option = "")
virtual voidTPad::PaintPolyMarker(Int_t n, Float_t* x, Float_t* y, Option_t* option = "")
virtual voidTPad::PaintPolyMarker(Int_t n, Double_t* x, Double_t* y, Option_t* option = "")
virtual voidTPad::PaintText(Double_t x, Double_t y, const char* text)
virtual voidTPad::PaintTextNDC(Double_t u, Double_t v, const char* text)
virtual TPad*TPad::Pick(Int_t px, Int_t py, TObjLink*& pickobj)
virtual Double_tTPad::PixeltoX(Int_t px)
virtual voidTPad::PixeltoXY(Int_t xpixel, Int_t ypixel, Double_t& x, Double_t& y)
virtual Double_tTPad::PixeltoY(Int_t py)
virtual voidTPad::Pop()
virtual voidTPad::Print(const char* filename = "") const
virtual voidTPad::Print(const char* filename, Option_t* option)
virtual voidTPad::Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)MENU
virtual voidTPad::RangeAxis(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax)
virtual voidTPad::RangeAxisChanged()SIGNAL
virtual voidTPad::RangeChanged()SIGNAL
virtual Int_tTObject::Read(const char* name)
virtual voidTPad::RecordLatex(const TObject* obj)SIGNAL
virtual voidTPad::RecordPave(const TObject* obj)SIGNAL
virtual voidTPad::RecursiveRemove(TObject* obj)
virtual voidTPad::RedrawAxis(Option_t* option = "")
virtual voidTPad::ReleaseViewer3D(Option_t* type = "")
virtual voidTAttFill::ResetAttFill(Option_t* option = "")
virtual voidTAttLine::ResetAttLine(Option_t* option = "")
virtual voidTAttPad::ResetAttPad(Option_t* option = "")
voidTObject::ResetBit(UInt_t f)
virtual voidTPad::ResetToolTip(TObject* tip)
virtual voidTPad::ResetView3D(TObject* view = 0)
virtual voidTPad::ResizePad(Option_t* option = "")
virtual voidTPad::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTAttFill::SaveFillAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1001)
virtual voidTAttLine::SaveLineAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t widdef = 1)
virtual voidSavePrimitive(ostream& out, Option_t* option = "")
virtual voidTAttPad::SetAfile(Float_t afile)
virtual voidTAttPad::SetAstat(Float_t astat)
virtual voidTPad::SetAttFillPS(Color_t color, Style_t style)
virtual voidTPad::SetAttLinePS(Color_t color, Style_t style, Width_t lwidth)
virtual voidTPad::SetAttMarkerPS(Color_t color, Style_t style, Size_t msize)
virtual voidTPad::SetAttTextPS(Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTPad::SetBorderMode(Short_t bordermode)MENU
virtual voidTPad::SetBorderSize(Short_t bordersize)MENU
virtual voidTAttPad::SetBottomMargin(Float_t bottommargin)
virtual voidTPad::SetCanvas(TCanvas* c)
virtual voidTPad::SetCanvasSize(UInt_t ww, UInt_t wh)
virtual voidTPad::SetCopyGLDevice(Bool_t copy)
virtual voidTPad::SetCrosshair(Int_t crhair = 1)TOGGLE
virtual voidTPad::SetCursor(ECursor cursor)
virtual voidTPad::SetDoubleBuffer(Int_t mode = 1)
virtual voidTPad::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
virtual voidTPad::SetEditable(Bool_t mode = kTRUE)TOGGLE
virtual voidTAttFill::SetFillAttributes()MENU
virtual voidTAttFill::SetFillColor(Color_t fcolor)
virtual voidTPad::SetFillStyle(Style_t fstyle)
virtual voidTPad::SetFixedAspectRatio(Bool_t fixed = kTRUE)TOGGLE
voidTAttPad::SetFrameBorderMode(Int_t mode = 1)
voidTAttPad::SetFrameBorderSize(Width_t size = 1)
voidTAttPad::SetFrameFillColor(Color_t color = 1)
voidTAttPad::SetFrameFillStyle(Style_t styl = 0)
voidTAttPad::SetFrameLineColor(Color_t color = 1)
voidTAttPad::SetFrameLineStyle(Style_t styl = 0)
voidTAttPad::SetFrameLineWidth(Width_t width = 1)
virtual voidTPad::SetGLDevice(Int_t dev)
virtual voidTPad::SetGrid(Int_t valuex = 1, Int_t valuey = 1)
virtual voidTPad::SetGridx(Int_t value = 1)TOGGLE
virtual voidTPad::SetGridy(Int_t value = 1)TOGGLE
virtual voidTAttPad::SetLeftMargin(Float_t leftmargin)
virtual voidTAttLine::SetLineAttributes()MENU
virtual voidTAttLine::SetLineColor(Color_t lcolor)
virtual voidTAttLine::SetLineStyle(Style_t lstyle)
virtual voidTAttLine::SetLineWidth(Width_t lwidth)
virtual voidTPad::SetLogx(Int_t value = 1)TOGGLE
virtual voidTPad::SetLogy(Int_t value = 1)TOGGLE
virtual voidTPad::SetLogz(Int_t value = 1)TOGGLE
virtual voidTAttPad::SetMargin(Float_t left, Float_t right, Float_t bottom, Float_t top)
virtual voidSetMaximum(Double_t max = 1)
static voidTPad::SetMaxPickDistance(Int_t maxPick = 5)
virtual voidSetMethod(const char* method)MENU
virtual voidSetMinimum(Double_t min = 0)
virtual voidTPad::SetName(const char* name)MENU
virtual voidTPad::SetNumber(Int_t number)
voidSetObject(TObject* obj = 0)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTPad::SetPad(Double_t xlow, Double_t ylow, Double_t xup, Double_t yup)
virtual voidTPad::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)
virtual voidTPad::SetPhi(Double_t phi = 30)
virtual voidSetRange(Double_t xmin = 0, Double_t xmax = 1)
virtual voidTAttPad::SetRightMargin(Float_t rightmargin)
virtual voidTPad::SetSelected(TObject* obj)
virtual voidTPad::SetTheta(Double_t theta = 30)
virtual voidTPad::SetTicks(Int_t valuex = 1, Int_t valuey = 1)
virtual voidTPad::SetTickx(Int_t value = 1)TOGGLE
virtual voidTPad::SetTicky(Int_t value = 1)TOGGLE
virtual voidTPad::SetTitle(const char* title = "")
virtual voidTPad::SetToolTipText(const char* text, Long_t delayms = 1000)
virtual voidTAttPad::SetTopMargin(Float_t topmargin)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidTPad::SetVertical(Bool_t vert = kTRUE)
virtual voidTPad::SetView(TView* view = 0)
virtual voidTPad::SetViewer3D(TVirtualViewer3D* viewer3d)
virtual voidTAttPad::SetXfile(Float_t xfile)
virtual voidTAttPad::SetXstat(Float_t xstat)
virtual voidTAttPad::SetYfile(Float_t yfile)
virtual voidTAttPad::SetYstat(Float_t ystat)
virtual voidShowMembers(TMemberInspector& insp)
virtual voidTPad::StartEditing()SIGNAL
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTPad::Update()
virtual voidTPad::UseCurrentStyle()MENU
virtual Int_tTPad::UtoAbsPixel(Double_t u) const
virtual Int_tTPad::UtoPixel(Double_t u) const
virtual Int_tTPad::VtoAbsPixel(Double_t v) const
virtual Int_tTPad::VtoPixel(Double_t v) const
virtual TObject*TPad::WaitPrimitive(const char* pname = "", const char* emode = "")
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual voidTPad::x3d(Option_t* type = "")
virtual Int_tTPad::XtoAbsPixel(Double_t x) const
virtual Double_tTPad::XtoPad(Double_t x) const
virtual Int_tTPad::XtoPixel(Double_t x) const
virtual voidTPad::XYtoAbsPixel(Double_t x, Double_t y, Int_t& xpixel, Int_t& ypixel) const
virtual voidTPad::XYtoPixel(Double_t x, Double_t y, Int_t& xpixel, Int_t& ypixel) const
virtual Int_tTPad::YtoAbsPixel(Double_t y) const
virtual Double_tTPad::YtoPad(Double_t y) const
virtual Int_tTPad::YtoPixel(Double_t y) const
protected:
static Int_tTQObject::CheckConnectArgs(TQObject* sender, TClass* sender_class, const char* signal, TClass* receiver_class, const char* slot)
static Bool_tTQObject::ConnectToClass(TQObject* sender, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::ConnectToClass(const char* sender_class, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
voidTPad::DestroyExternalViewer3D()
virtual Int_tTPad::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual voidTPad::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual void*TVirtualPad::GetSender()
virtual const char*TQObject::GetSenderClassName() const
virtual voidTPad::HideToolTip(Int_t event)
voidTObject::MakeZombie()
voidTPad::PaintBorder(Color_t color, Bool_t tops)
virtual voidTPad::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)
voidTPad::PaintDate()
virtual voidTPad::SetBatch(Bool_t batch = kTRUE)
private:
TSlider(const TSlider& org)
TSlider&operator=(const TSlider& rhs)

Data Members

protected:
Bool_tTPad::fAbsCoordUse absolute coordinates
Double_tTPad::fAbsHNDCAbsolute Height of pad along Y in NDC
Double_tTPad::fAbsPixeltoXkConversion coefficient for absolute pixel to X World
Double_tTPad::fAbsPixeltoYkConversion coefficient for absolute pixel to Y World
Double_tTPad::fAbsWNDCAbsolute Width of pad along X in NDC
Double_tTPad::fAbsXlowNDCAbsolute X top left corner of pad in NDC [0,1]
Double_tTPad::fAbsYlowNDCAbsolute Y top left corner of pad in NDC [0,1]
Float_tTAttPad::fAfileAlignment for the file name
Double_tTPad::fAspectRatioratio of w/h in case of fixed ratio
Float_tTAttPad::fAstatAlignment for the statistics
Short_tTPad::fBorderModeBordermode (-1=down, 0 = no border, 1=up)
Short_tTPad::fBorderSizepad bordersize in pixels
Float_tTAttPad::fBottomMarginBottomMargin
TCanvas*TPad::fCanvas! Pointer to mother canvas
Bool_tTPad::fCopyGLDevice!
Int_tTPad::fCrosshairCrosshair type (0 if no crosshair requested)
Int_tTPad::fCrosshairPosPosition of crosshair
Bool_tTPad::fEditableTrue if canvas is editable
Bool_tTPad::fEmbeddedGL!
TList*TPad::fExecsList of commands to be executed when a pad event occurs
Color_tTAttFill::fFillColorfill area color
Style_tTAttFill::fFillStylefill area style
Bool_tTPad::fFixedAspectRatioTrue if fixed aspect ratio
TFrame*TPad::fFrame! Pointer to 2-D frame (if one exists)
Int_tTAttPad::fFrameBorderModepad frame border mode
Width_tTAttPad::fFrameBorderSizepad frame border size
Color_tTAttPad::fFrameFillColorpad frame fill color
Style_tTAttPad::fFrameFillStylepad frame fill style
Color_tTAttPad::fFrameLineColorpad frame line color
Style_tTAttPad::fFrameLineStylepad frame line style
Width_tTAttPad::fFrameLineWidthpad frame line width
Int_tTPad::fGLDevice! OpenGL off-screen pixmap identifier
Bool_tTPad::fGridxSet to true if grid along X
Bool_tTPad::fGridySet to true if grid along Y
Double_tTPad::fHNDCHeight of pad along Y in NDC
Float_tTAttPad::fLeftMarginLeftMargin
Color_tTAttLine::fLineColorline color
Style_tTAttLine::fLineStyleline style
Width_tTAttLine::fLineWidthline width
TList*TQObject::fListOfConnections! list of connections to this object
TList*TQObject::fListOfSignals! list of signals from this object
Int_tTPad::fLogx(=0 if X linear scale, =1 if log scale)
Int_tTPad::fLogy(=0 if Y linear scale, =1 if log scale)
Int_tTPad::fLogz(=0 if Z linear scale, =1 if log scale)
Double_tfMaximumSlider maximum value in [0,1]
TStringfMethodcommand to be executed when slider is changed
Double_tfMinimumSlider minimum value in [0,1]
Bool_tTPad::fModifiedSet to true when pad is modified
TPad*TPad::fMother! pointer to mother of the list
TStringTPad::fNamePad name
Int_tTPad::fNumberpad number identifier
TObject*fObject!Pointer to associated object
Int_tTPad::fPadPaintSet to 1 while painting the pad
TObject*TPad::fPadPointer! free pointer
TObject*TPad::fPadView3D! 3D View of this TPad
Double_tTPad::fPhiphi angle to view as lego/surface
Double_tTPad::fPixeltoXxworld = fPixeltoXk + fPixeltoX*xpixel
Double_tTPad::fPixeltoXkConversion coefficient for pixel to X World
Double_tTPad::fPixeltoYyworld = fPixeltoYk + fPixeltoY*ypixel
Double_tTPad::fPixeltoYkConversion coefficient for pixel to Y World
Int_tTPad::fPixmapID! Off-screen pixmap identifier
TList*TPad::fPrimitives->List of primitives (subpads)
Bool_tTVirtualPad::fResizing!true when resizing the pad
Float_tTAttPad::fRightMarginRightMargin
Bool_tTQObject::fSignalsBlocked! flag used for suppression of signals
Double_tTPad::fThetatheta angle to view as lego/surface
Int_tTPad::fTickxSet to 1 if tick marks along X
Int_tTPad::fTickySet to 1 if tick marks along Y
TStringTPad::fTitlePad title
Float_tTAttPad::fTopMarginTopMargin
Double_tTPad::fUtoAbsPixelkConversion coefficient for U NDC to absolute pixel
Double_tTPad::fUtoPixelxpixel = fUtoPixelk + fUtoPixel*undc
Double_tTPad::fUtoPixelkConversion coefficient for U NDC to pixel
Double_tTPad::fUxmaxMaximum value on the X axis
Double_tTPad::fUxminMinimum value on the X axis
Double_tTPad::fUymaxMaximum value on the Y axis
Double_tTPad::fUyminMinimum value on the Y axis
TView*TPad::fView! Pointer to 3-D view (if one exists)
TVirtualViewer3D*TPad::fViewer3D! Current 3D viewer
Double_tTPad::fVtoAbsPixelkConversion coefficient for V NDC to absolute pixel
Double_tTPad::fVtoPixelypixel = fVtoPixelk + fVtoPixel*vndc
Double_tTPad::fVtoPixelkConversion coefficient for V NDC to pixel
Double_tTPad::fWNDCWidth of pad along X in NDC
Double_tTPad::fX1X of lower X coordinate
Double_tTPad::fX2X of upper X coordinate
Float_tTAttPad::fXfileX position where to draw the file name
Double_tTPad::fXlowNDCX bottom left corner of pad in NDC [0,1]
Float_tTAttPad::fXstatX position where to draw the statistics
Double_tTPad::fXtoAbsPixelkConversion coefficient for X World to absolute pixel
Double_tTPad::fXtoPixelxpixel = fXtoPixelk + fXtoPixel*xworld
Double_tTPad::fXtoPixelkConversion coefficient for X World to pixel
Double_tTPad::fY1Y of lower Y coordinate
Double_tTPad::fY2Y of upper Y coordinate
Float_tTAttPad::fYfileX position where to draw the file name
Double_tTPad::fYlowNDCY bottom left corner of pad in NDC [0,1]
Float_tTAttPad::fYstatX position where to draw the statistics
Double_tTPad::fYtoAbsPixelkConversion coefficient for Y World to absolute pixel
Double_tTPad::fYtoPixelypixel = fYtoPixelk + fYtoPixel*yworld
Double_tTPad::fYtoPixelkConversion coefficient for Y World to pixel
static Bool_tTQObject::fgAllSignalsBlockedflag used for suppression of all signals
static Int_tTPad::fgMaxPickDistanceMaximum Pick Distance

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TSlider()
 slider default constructor.
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
~TSlider()
 slider default destructor.
void Paint(Option_t* option = "")
 Paint this slider with its current attributes.
void SavePrimitive(ostream& out, Option_t* option = "")
 Save primitive as a C++ statement(s) on output stream out
void SetRange(Double_t xmin = 0, Double_t xmax = 1)
-*-*-*-*-*-*Set Slider range in [0,1]
*-*                  =========================
TSlider(const TSlider& org)
TSlider & operator=(const TSlider& rhs)
TObject * GetObject() const
{return fObject;}
Double_t GetMinimum() const
{return fMinimum;}
Double_t GetMaximum() const
{return fMaximum;}
const char * GetMethod() const
{ return fMethod.Data(); }
void SetMethod(const char* method)
{ fMethod=method; }
void SetObject(TObject* obj = 0)
{fObject=obj;}
void SetMinimum(Double_t min = 0)
{fMinimum=min;}
void SetMaximum(Double_t max = 1)
{fMaximum=max;}