Logo ROOT  
Reference Guide
TPad.h
Go to the documentation of this file.
1 // @(#)root/gpad:$Id$
2 // Author: Rene Brun 12/12/94
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, 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_TPad
13 #define ROOT_TPad
14 
15 #include "TVirtualPad.h"
16 #include "TAttBBox2D.h"
17 
18 class TVirtualViewer3D;
19 class TVirtualPadPainter;
20 class TBrowser;
21 class TBox;
22 class TLegend;
23 class TArrow;
24 class TPoint;
25 
26 class TPad : public TVirtualPad, public TAttBBox2D {
27 
28 private:
29  TObject *fTip; ///<! tool tip associated with box
30 
31 protected:
32  Double_t fX1; ///< X of lower X coordinate
33  Double_t fY1; ///< Y of lower Y coordinate
34  Double_t fX2; ///< X of upper X coordinate
35  Double_t fY2; ///< Y of upper Y coordinate
36 
37  Double_t fXtoAbsPixelk; ///< Conversion coefficient for X World to absolute pixel
38  Double_t fXtoPixelk; ///< Conversion coefficient for X World to pixel
39  Double_t fXtoPixel; ///< xpixel = fXtoPixelk + fXtoPixel*xworld
40  Double_t fYtoAbsPixelk; ///< Conversion coefficient for Y World to absolute pixel
41  Double_t fYtoPixelk; ///< Conversion coefficient for Y World to pixel
42  Double_t fYtoPixel; ///< ypixel = fYtoPixelk + fYtoPixel*yworld
43 
44  Double_t fUtoAbsPixelk; ///< Conversion coefficient for U NDC to absolute pixel
45  Double_t fUtoPixelk; ///< Conversion coefficient for U NDC to pixel
46  Double_t fUtoPixel; ///< xpixel = fUtoPixelk + fUtoPixel*undc
47  Double_t fVtoAbsPixelk; ///< Conversion coefficient for V NDC to absolute pixel
48  Double_t fVtoPixelk; ///< Conversion coefficient for V NDC to pixel
49  Double_t fVtoPixel; ///< ypixel = fVtoPixelk + fVtoPixel*vndc
50 
51  Double_t fAbsPixeltoXk; ///< Conversion coefficient for absolute pixel to X World
52  Double_t fPixeltoXk; ///< Conversion coefficient for pixel to X World
53  Double_t fPixeltoX; ///< xworld = fPixeltoXk + fPixeltoX*xpixel
54  Double_t fAbsPixeltoYk; ///< Conversion coefficient for absolute pixel to Y World
55  Double_t fPixeltoYk; ///< Conversion coefficient for pixel to Y World
56  Double_t fPixeltoY; ///< yworld = fPixeltoYk + fPixeltoY*ypixel
57 
58  Double_t fXlowNDC; ///< X bottom left corner of pad in NDC [0,1]
59  Double_t fYlowNDC; ///< Y bottom left corner of pad in NDC [0,1]
62  Double_t fWNDC; ///< Width of pad along X in Normalized Coordinates (NDC)
63  Double_t fHNDC; ///< Height of pad along Y in Normalized Coordinates (NDC)
64 
65  Double_t fAbsXlowNDC; ///< Absolute X top left corner of pad in NDC [0,1]
66  Double_t fAbsYlowNDC; ///< Absolute Y top left corner of pad in NDC [0,1]
67  Double_t fAbsWNDC; ///< Absolute Width of pad along X in NDC
68  Double_t fAbsHNDC; ///< Absolute Height of pad along Y in NDC
69 
70  Double_t fUxmin; ///< Minimum value on the X axis
71  Double_t fUymin; ///< Minimum value on the Y axis
72  Double_t fUxmax; ///< Maximum value on the X axis
73  Double_t fUymax; ///< Maximum value on the Y axis
74 
75  Double_t fTheta; ///< theta angle to view as lego/surface
76  Double_t fPhi; ///< phi angle to view as lego/surface
77 
78  Double_t fAspectRatio; ///< ratio of w/h in case of fixed ratio
79 
80  Int_t fPixmapID; ///<! Off-screen pixmap identifier
81  Int_t fGLDevice; ///<! OpenGL off-screen pixmap identifier
84  Int_t fNumber; ///< pad number identifier
85  Int_t fTickx; ///< Set to 1 if tick marks along X
86  Int_t fTicky; ///< Set to 1 if tick marks along Y
87  Int_t fLogx; ///< (=0 if X linear scale, =1 if log scale)
88  Int_t fLogy; ///< (=0 if Y linear scale, =1 if log scale)
89  Int_t fLogz; ///< (=0 if Z linear scale, =1 if log scale)
90  Int_t fPadPaint; ///< Set to 1 while painting the pad
91  Int_t fCrosshair; ///< Crosshair type (0 if no crosshair requested)
92  Int_t fCrosshairPos; ///< Position of crosshair
93  Short_t fBorderSize; ///< pad bordersize in pixels
94  Short_t fBorderMode; ///< Bordermode (-1=down, 0 = no border, 1=up)
95  Bool_t fModified; ///< Set to true when pad is modified
96  Bool_t fGridx; ///< Set to true if grid along X
97  Bool_t fGridy; ///< Set to true if grid along Y
98  Bool_t fAbsCoord; ///< Use absolute coordinates
99  Bool_t fEditable; ///< True if canvas is editable
100  Bool_t fFixedAspectRatio; ///< True if fixed aspect ratio
101  TPad *fMother; ///<! pointer to mother of the list
102  TCanvas *fCanvas; ///<! Pointer to mother canvas
103  TList *fPrimitives; ///<->List of primitives (subpads)
104  TList *fExecs; ///< List of commands to be executed when a pad event occurs
105  TString fName; ///< Pad name
106  TString fTitle; ///< Pad title
107  TFrame *fFrame; ///<! Pointer to 2-D frame (if one exists)
108  TView *fView; ///<! Pointer to 3-D view (if one exists)
109  TObject *fPadPointer; ///<! free pointer
110  TObject *fPadView3D; ///<! 3D View of this TPad
111  static Int_t fgMaxPickDistance; ///< Maximum Pick Distance
112  Int_t fNumPaletteColor; ///< Number of objects with an automatic color
113  Int_t fNextPaletteColor; ///< Next automatic color
114  Bool_t *fCollideGrid; ///<! Grid used to find empty space when adding a box (Legend) in a pad
115  Int_t fCGnx; ///<! Size of the collide grid along x
116  Int_t fCGny; ///<! Size of the collide grid along y
117 
118  // 3D Viewer support
119  TVirtualViewer3D *fViewer3D; ///<! Current 3D viewer
120 
122  virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
123  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
124  virtual void HideToolTip(Int_t event);
125  void PaintBorder(Color_t color, Bool_t tops);
126  virtual 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);
127  void PaintDate();
128  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
129  virtual void SetBatch(Bool_t batch=kTRUE);
130 
131 private:
132  TPad(const TPad &pad); // cannot copy pads, use TObject::Clone()
133  TPad &operator=(const TPad &rhs); // idem
134 
136  void CopyBackgroundPixmaps(TPad *start, TPad *stop, Int_t x, Int_t y);
137  void DrawDist(Rectangle_t aBBox, Rectangle_t bBBox, char mode);
138 
139  Bool_t Collide(Int_t i, Int_t j, Int_t w, Int_t h);
140  void FillCollideGrid(TObject *o);
141  void FillCollideGridTBox(TObject *o);
144  void FillCollideGridTH1(TObject *o);
145  void LineNotFree(Int_t x1, Int_t x2, Int_t y1, Int_t y2);
146 
147 public:
148  // TPad status bits
149  enum {
150  kFraming = BIT(6), ///< Frame is requested
151  kHori = BIT(9), ///< Pad is horizontal
152  kClipFrame = BIT(10), ///< Clip on frame
153  kPrintingPS = BIT(11), ///< PS Printing
154  kCannotMove = BIT(12), ///< Fixed position
155  kClearAfterCR = BIT(14) ///< Clear after CR
156  };
157 
158  TPad();
159  TPad(const char *name, const char *title, Double_t xlow,
160  Double_t ylow, Double_t xup, Double_t yup,
161  Color_t color=-1, Short_t bordersize=-1, Short_t bordermode=-2);
162  virtual ~TPad();
163  void AbsCoordinates(Bool_t set) { fAbsCoord = set; }
166  virtual void AbsPixeltoXY(Int_t xpixel, Int_t ypixel, Double_t &x, Double_t &y);
167  virtual void AddExec(const char *name, const char *command);
168  virtual void AutoExec();
169  virtual void Browse(TBrowser *b);
170  virtual TLegend *BuildLegend(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 = ""); // *MENU*
171  TVirtualPad* cd(Int_t subpadnumber=0); // *MENU*
172  void Clear(Option_t *option="");
173  virtual Int_t Clip(Float_t *x, Float_t *y, Float_t xclipl, Float_t yclipb, Float_t xclipr, Float_t yclipt);
174  virtual Int_t Clip(Double_t *x, Double_t *y, Double_t xclipl, Double_t yclipb, Double_t xclipr, Double_t yclipt);
175  virtual Int_t ClippingCode(Double_t x, Double_t y, Double_t xcl1, Double_t ycl1, Double_t xcl2, Double_t ycl2);
176  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);
177  virtual void Close(Option_t *option="");
178  virtual void Closed() { Emit("Closed()"); } // *SIGNAL*
179  virtual void CopyPixmap();
180  virtual void CopyPixmaps();
181  virtual void DeleteExec(const char *name);
182  virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0); // *MENU*
183  virtual void DivideSquare(Int_t n, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0);
184  virtual void Draw(Option_t *option="");
185  virtual void DrawClassObject(const TObject *obj, Option_t *option="");
186  static void DrawColorTable();
187  virtual void DrawCrosshair();
188  TH1F *DrawFrame(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, const char *title="");
189  virtual void ExecuteEventAxis(Int_t event, Int_t px, Int_t py, TAxis *axis);
190  virtual TObject *FindObject(const char *name) const;
191  virtual TObject *FindObject(const TObject *obj) const;
192  virtual void UseCurrentStyle(); // *MENU*
193  virtual Short_t GetBorderMode() const { return fBorderMode;}
194  virtual Short_t GetBorderSize() const { return fBorderSize;}
195  Int_t GetCrosshair() const;
196  virtual Int_t GetCanvasID() const;
197  virtual TCanvasImp *GetCanvasImp() const;
198  TFrame *GetFrame();
199  virtual Int_t GetEvent() const;
200  virtual Int_t GetEventX() const;
201  virtual Int_t GetEventY() const;
202  virtual Color_t GetHighLightColor() const;
203  virtual void GetRange(Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2);
205  virtual void GetPadPar(Double_t &xlow, Double_t &ylow, Double_t &xup, Double_t &yup);
206  Double_t GetXlowNDC() const {return fXlowNDC;}
207  Double_t GetYlowNDC() const {return fYlowNDC;}
208  /// Get width of pad along X in Normalized Coordinates (NDC)
209  Double_t GetWNDC() const {return fWNDC;}
210  /// Get height of pad along Y in Normalized Coordinates (NDC)
211  Double_t GetHNDC() const {return fHNDC;}
212  virtual UInt_t GetWw() const;
213  virtual UInt_t GetWh() const;
216  Double_t GetAbsWNDC() const {return fAbsWNDC;}
217  Double_t GetAbsHNDC() const {return fAbsHNDC;}
219  Double_t GetPhi() const {return fPhi;}
220  Double_t GetTheta() const {return fTheta;}
221  ///Returns the minimum x-coordinate value visible on the pad. If log axis the returned value is in decades.
222  Double_t GetUxmin() const {return fUxmin;}
223  ///Returns the minimum y-coordinate value visible on the pad. If log axis the returned value is in decades.
224  Double_t GetUymin() const {return fUymin;}
225  ///Returns the maximum x-coordinate value visible on the pad. If log axis the returned value is in decades.
226  Double_t GetUxmax() const {return fUxmax;}
227  ///Returns the maximum y-coordinate value visible on the pad. If log axis the returned value is in decades.
228  Double_t GetUymax() const {return fUymax;}
229  Bool_t GetGridx() const {return fGridx;}
230  Bool_t GetGridy() const {return fGridy;}
231  Int_t GetNumber() const {return fNumber;}
232  Int_t GetTickx() const {return fTickx;}
233  Int_t GetTicky() const {return fTicky;}
234  Double_t GetX1() const { return fX1; }
235  Double_t GetX2() const { return fX2; }
236  Double_t GetY1() const { return fY1; }
237  Double_t GetY2() const { return fY2; }
238  static Int_t GetMaxPickDistance();
240  TList *GetListOfExecs() const {return fExecs;}
241  virtual TObject *GetPrimitive(const char *name) const; //obsolete, use FindObject instead
242  virtual TObject *GetSelected() const;
243  virtual TVirtualPad *GetPad(Int_t subpadnumber) const;
244  virtual TObject *GetPadPointer() const {return fPadPointer;}
245  TVirtualPad *GetPadSave() const;
246  TVirtualPad *GetSelectedPad() const;
247  Int_t GetGLDevice();
248  TView *GetView() const {return fView;}
249  TObject *GetView3D() const {return fPadView3D;}// Return 3D View of this TPad
250  Int_t GetLogx() const {return fLogx;}
251  Int_t GetLogy() const {return fLogy;}
252  Int_t GetLogz() const {return fLogz;}
253  virtual TVirtualPad *GetMother() const {return fMother;}
254  const char *GetName() const {return fName.Data();}
255  const char *GetTitle() const {return fTitle.Data();}
256  virtual TCanvas *GetCanvas() const { return fCanvas; }
257  virtual TVirtualPad *GetVirtCanvas() const ;
258  virtual TVirtualPadPainter *GetPainter();
259  Int_t GetPadPaint() const {return fPadPaint;}
260  Int_t GetPixmapID() const {return fPixmapID;}
261  ULong_t Hash() const { return fName.Hash(); }
262  virtual Bool_t HasCrosshair() const;
263  void HighLight(Color_t col=kRed, Bool_t set=kTRUE);
265  virtual Bool_t IsBatch() const;
266  virtual Bool_t IsEditable() const {return fEditable;}
267  Bool_t IsFolder() const {return kTRUE;}
268  Bool_t IsModified() const {return fModified;}
269  virtual Bool_t IsRetained() const;
270  virtual Bool_t IsVertical() const {return !TestBit(kHori);}
271  virtual void ls(Option_t *option="") const;
272  void Modified(Bool_t flag=1); // *SIGNAL*
273  virtual Bool_t OpaqueMoving() const;
274  virtual Bool_t OpaqueResizing() const;
275  Double_t PadtoX(Double_t x) const;
276  Double_t PadtoY(Double_t y) const;
277  virtual void Paint(Option_t *option="");
278  void PaintBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t *option="");
279  void PaintFillArea(Int_t n, Float_t *x, Float_t *y, Option_t *option=""); // Obsolete
280  void PaintFillArea(Int_t n, Double_t *x, Double_t *y, Option_t *option="");
281  void PaintFillAreaNDC(Int_t n, Double_t *x, Double_t *y, Option_t *option="");
283  void PaintHatches(Double_t dy, Double_t angle, Int_t nn, Double_t *xx, Double_t *yy);
287  void PaintLine3D(Float_t *p1, Float_t *p2);
288  void PaintLine3D(Double_t *p1, Double_t *p2);
289  void PaintPolyLine(Int_t n, Float_t *x, Float_t *y, Option_t *option="");
290  void PaintPolyLine(Int_t n, Double_t *x, Double_t *y, Option_t *option="");
291  void PaintPolyLine3D(Int_t n, Double_t *p);
292  void PaintPolyLineNDC(Int_t n, Double_t *x, Double_t *y, Option_t *option="");
293  void PaintPolyMarker(Int_t n, Float_t *x, Float_t *y, Option_t *option="");
294  void PaintPolyMarker(Int_t n, Double_t *x, Double_t *y, Option_t *option="");
295  virtual void PaintModified();
296  void PaintText(Double_t x, Double_t y, const char *text);
297  void PaintText(Double_t x, Double_t y, const wchar_t *text);
298  void PaintTextNDC(Double_t u, Double_t v, const char *text);
299  void PaintTextNDC(Double_t u, Double_t v, const wchar_t *text);
300  virtual TPad *Pick(Int_t px, Int_t py, TObjLink *&pickobj);
301  Double_t PixeltoX(Int_t px);
302  Double_t PixeltoY(Int_t py);
303  virtual void PixeltoXY(Int_t xpixel, Int_t ypixel, Double_t &x, Double_t &y);
304  virtual void Pop(); // *MENU*
305  virtual void Print(const char *filename="") const;
306  virtual void Print(const char *filename, Option_t *option);
307  virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2); // *MENU* *ARGS={x1=>fX1,y1=>fY1,x2=>fX2,y2=>fY2}
308  virtual void RangeChanged() { Emit("RangeChanged()"); } // *SIGNAL*
310  virtual void RangeAxisChanged() { Emit("RangeAxisChanged()"); } // *SIGNAL*
311  virtual void RecursiveRemove(TObject *obj);
312  virtual void RedrawAxis(Option_t *option="");
313  virtual void ResetView3D(TObject *view=0){fPadView3D=view;}
314  virtual void ResizePad(Option_t *option="");
315  virtual void Resized() { Emit("Resized()"); } // *SIGNAL*
316  virtual void SaveAs(const char *filename="",Option_t *option="") const; // *MENU*
317  virtual void SetBorderMode(Short_t bordermode) {fBorderMode = bordermode; Modified();} // *MENU*
318  virtual void SetBorderSize(Short_t bordersize) {fBorderSize = bordersize; Modified();} // *MENU*
319  void SetCanvas(TCanvas *c) { fCanvas = c; }
320  virtual void SetCanvasSize(UInt_t ww, UInt_t wh);
321  virtual void SetCrosshair(Int_t crhair=1); // *TOGGLE*
322  virtual void SetCursor(ECursor cursor);
323  virtual void SetDoubleBuffer(Int_t mode=1);
324  virtual void SetDrawOption(Option_t *option="");
325  virtual void SetEditable(Bool_t mode=kTRUE); // *TOGGLE*
326  virtual void SetFixedAspectRatio(Bool_t fixed = kTRUE); // *TOGGLE*
327  virtual void SetGrid(Int_t valuex = 1, Int_t valuey = 1) {fGridx = valuex; fGridy = valuey; Modified();}
328  virtual void SetGridx(Int_t value = 1) {fGridx = value; Modified();} // *TOGGLE*
329  virtual void SetGridy(Int_t value = 1) {fGridy = value; Modified();} // *TOGGLE*
330  virtual void SetFillStyle(Style_t fstyle);
331  virtual void SetLogx(Int_t value = 1); // *TOGGLE*
332  virtual void SetLogy(Int_t value = 1); // *TOGGLE*
333  virtual void SetLogz(Int_t value = 1); // *TOGGLE*
334  virtual void SetNumber(Int_t number) {fNumber = number;}
335  virtual void SetPad(const char *name, const char *title,
336  Double_t xlow, Double_t ylow, Double_t xup,
337  Double_t yup, Color_t color=35,
338  Short_t bordersize=5, Short_t bordermode=-1);
339  virtual void SetPad(Double_t xlow, Double_t ylow, Double_t xup, Double_t yup);
340  virtual void SetAttFillPS(Color_t color, Style_t style);
341  virtual void SetAttLinePS(Color_t color, Style_t style, Width_t lwidth);
342  virtual void SetAttMarkerPS(Color_t color, Style_t style, Size_t msize);
343  virtual void SetAttTextPS(Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize);
344  static void SetMaxPickDistance(Int_t maxPick=5);
345  virtual void SetName(const char *name) {fName = name;} // *MENU*
346  virtual void SetSelected(TObject *obj);
347  virtual void SetTicks(Int_t valuex = 1, Int_t valuey = 1) {fTickx = valuex; fTicky = valuey; Modified();}
348  virtual void SetTickx(Int_t value = 1) {fTickx = value; Modified();} // *TOGGLE*
349  virtual void SetTicky(Int_t value = 1) {fTicky = value; Modified();} // *TOGGLE*
350  virtual void SetTitle(const char *title="") {fTitle = title;}
351  virtual void SetTheta(Double_t theta=30) {fTheta = theta; Modified();}
352  virtual void SetPhi(Double_t phi=30) {fPhi = phi; Modified();}
353  virtual void SetToolTipText(const char *text, Long_t delayms = 1000);
354  virtual void SetVertical(Bool_t vert=kTRUE);
355  virtual void SetView(TView *view = 0);
356  virtual void SetViewer3D(TVirtualViewer3D *viewer3d) {fViewer3D = viewer3d;}
357 
358  virtual void SetGLDevice(Int_t dev) {fGLDevice = dev;}
359  virtual void SetCopyGLDevice(Bool_t copy) {fCopyGLDevice = copy;}
360 
361  virtual void ShowGuidelines(TObject *object, const Int_t event, const char mode = 'i', const bool cling = true);
362  virtual void Update();
365  Int_t UtoPixel(Double_t u) const;
366  Int_t VtoPixel(Double_t v) const;
367  virtual TObject *WaitPrimitive(const char *pname="", const char *emode="");
368  Int_t XtoAbsPixel(Double_t x) const;
369  Int_t YtoAbsPixel(Double_t y) const;
370  Double_t XtoPad(Double_t x) const;
371  Double_t YtoPad(Double_t y) const;
372  Int_t XtoPixel(Double_t x) const;
373  Int_t YtoPixel(Double_t y) const;
374  virtual void XYtoAbsPixel(Double_t x, Double_t y, Int_t &xpixel, Int_t &ypixel) const;
375  virtual void XYtoPixel(Double_t x, Double_t y, Int_t &xpixel, Int_t &ypixel) const;
376 
377  virtual TObject *CreateToolTip(const TBox *b, const char *text, Long_t delayms);
378  virtual void DeleteToolTip(TObject *tip);
379  virtual void ResetToolTip(TObject *tip);
380  virtual void CloseToolTip(TObject *tip);
381 
384 
385  void DrawCollideGrid();
387 
388  virtual void x3d(Option_t *type=""); // Depreciated
389 
390  virtual TVirtualViewer3D *GetViewer3D(Option_t * type = "");
391  virtual Bool_t HasViewer3D() const { return (fViewer3D); }
392  virtual void ReleaseViewer3D(Option_t * type = "");
393 
394  virtual Rectangle_t GetBBox();
395  virtual TPoint GetBBoxCenter();
396  virtual void SetBBoxCenter(const TPoint &p);
397  virtual void SetBBoxCenterX(const Int_t x);
398  virtual void SetBBoxCenterY(const Int_t y);
399  virtual void SetBBoxX1(const Int_t x);
400  virtual void SetBBoxX2(const Int_t x);
401  virtual void SetBBoxY1(const Int_t y);
402  virtual void SetBBoxY2(const Int_t y);
403 
404  virtual void RecordPave(const TObject *obj); // *SIGNAL*
405  virtual void RecordLatex(const TObject *obj); // *SIGNAL*
406  virtual void EventPave() { Emit("EventPave()"); } // *SIGNAL*
407  virtual void StartEditing() { Emit("StartEditing()"); } // *SIGNAL*
408 
409  ClassDef(TPad,13) //A Graphics pad
410 };
411 
412 
413 //______________________________________________________________________________
414 inline void TPad::Modified(Bool_t flag)
415 {
416  if (!fModified && flag) Emit("Modified()");
417  fModified = flag;
418 }
419 
420 
421 //______________________________________________________________________________
422 inline void TPad::AbsPixeltoXY(Int_t xpixel, Int_t ypixel, Double_t &x, Double_t &y)
423 {
424  x = AbsPixeltoX(xpixel);
425  y = AbsPixeltoY(ypixel);
426 }
427 
428 
429 //______________________________________________________________________________
431 {
432  if (fAbsCoord) return fAbsPixeltoXk + px*fPixeltoX;
433  else return fPixeltoXk + px*fPixeltoX;
434 }
435 
436 
437 //______________________________________________________________________________
439 {
440  if (fAbsCoord) return fAbsPixeltoYk + py*fPixeltoY;
441  else return fPixeltoYk + py*fPixeltoY;
442 }
443 
444 
445 //______________________________________________________________________________
446 inline void TPad::PixeltoXY(Int_t xpixel, Int_t ypixel, Double_t &x, Double_t &y)
447 {
448  x = PixeltoX(xpixel);
449  y = PixeltoY(ypixel);
450 }
451 
452 
453 //______________________________________________________________________________
455 {
456  Double_t val;
457  if (fAbsCoord) val = fUtoAbsPixelk + u*fUtoPixel;
458  else val = u*fUtoPixel;
459  if (val < -kMaxPixel) return -kMaxPixel;
460  if (val > kMaxPixel) return kMaxPixel;
461  return Int_t(val);
462 }
463 
464 
465 //______________________________________________________________________________
467 {
468  Double_t val;
469  if (fAbsCoord) val = fVtoAbsPixelk + v*fVtoPixel;
470  else val = fVtoPixelk + v*fVtoPixel;
471  if (val < -kMaxPixel) return -kMaxPixel;
472  if (val > kMaxPixel) return kMaxPixel;
473  return Int_t(val);
474 }
475 
476 
477 //______________________________________________________________________________
479 {
481  if (val < -kMaxPixel) return -kMaxPixel;
482  if (val > kMaxPixel) return kMaxPixel;
483  return Int_t(val);
484 }
485 
486 
487 //______________________________________________________________________________
489 {
490  Double_t val;
491  if (fAbsCoord) val = fXtoAbsPixelk + x*fXtoPixel;
492  else val = fXtoPixelk + x*fXtoPixel;
493  if (val < -kMaxPixel) return -kMaxPixel;
494  if (val > kMaxPixel) return kMaxPixel;
495  return Int_t(val);
496 }
497 
498 
499 //______________________________________________________________________________
501 {
503  if (val < -kMaxPixel) return -kMaxPixel;
504  if (val > kMaxPixel) return kMaxPixel;
505  return Int_t(val);
506 }
507 
508 
509 //______________________________________________________________________________
511 {
512  Double_t val;
513  if (fAbsCoord) val = fYtoAbsPixelk + y*fYtoPixel;
514  else val = fYtoPixelk + y*fYtoPixel;
515  if (val < -kMaxPixel) return -kMaxPixel;
516  if (val > kMaxPixel) return kMaxPixel;
517  return Int_t(val);
518 }
519 
520 
521 //______________________________________________________________________________
522 inline void TPad::XYtoAbsPixel(Double_t x, Double_t y, Int_t &xpixel, Int_t &ypixel) const
523 {
524  xpixel = XtoAbsPixel(x);
525  ypixel = YtoAbsPixel(y);
526 }
527 
528 
529 //______________________________________________________________________________
530 inline void TPad::XYtoPixel(Double_t x, Double_t y, Int_t &xpixel, Int_t &ypixel) const
531 {
532  xpixel = XtoPixel(x);
533  ypixel = YtoPixel(y);
534 }
535 
536 
537 //______________________________________________________________________________
539 { }
540 
541 #endif
542 
c
#define c(i)
Definition: RSha256.hxx:101
TPad::SetEditable
virtual void SetEditable(Bool_t mode=kTRUE)
Set pad editable yes/no If a pad is not editable:
Definition: TPad.cxx:5860
TPad::SetCanvas
void SetCanvas(TCanvas *c)
Definition: TPad.h:319
TPad::GetBBoxCenter
virtual TPoint GetBBoxCenter()
Return the center of the Pad as TPoint in pixels.
Definition: TPad.cxx:7066
TPad::SetTicky
virtual void SetTicky(Int_t value=1)
Definition: TPad.h:349
TPad::fX2
Double_t fX2
X of upper X coordinate.
Definition: TPad.h:34
n
const Int_t n
Definition: legend1.C:16
TPad::GetYlowNDC
Double_t GetYlowNDC() const
Definition: TPad.h:207
TPad::GetWh
virtual UInt_t GetWh() const
Get Wh.
Definition: TPad.cxx:2740
TPad::fView
TView * fView
! Pointer to 3-D view (if one exists)
Definition: TPad.h:108
TPad::UseCurrentStyle
virtual void UseCurrentStyle()
Force a copy of current style for all objects in pad.
Definition: TPad.cxx:6709
TAxis
Class to manage histogram axis.
Definition: TAxis.h:30
TAttBBox2D.h
TPad::SetView
virtual void SetView(TView *view=0)
Set the current TView. Delete previous view if view=0.
Definition: TPad.cxx:5982
TPad::AddExec
virtual void AddExec(const char *name, const char *command)
Add a new TExec object to the list of Execs.
Definition: TPad.cxx:437
TPad::CopyPixmaps
virtual void CopyPixmaps()
Copy the sub-pixmaps of the pad to the canvas.
Definition: TPad.cxx:1059
TPad::fPadView3D
TObject * fPadView3D
! 3D View of this TPad
Definition: TPad.h:110
TBrowser
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
TPad::SetAttMarkerPS
virtual void SetAttMarkerPS(Color_t color, Style_t style, Size_t msize)
Set postscript marker attributes.
Definition: TPad.cxx:6014
ymax
float ymax
Definition: THbookFile.cxx:95
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
TPad::GetGridy
Bool_t GetGridy() const
Definition: TPad.h:230
TPad::AbsPixeltoXY
virtual void AbsPixeltoXY(Int_t xpixel, Int_t ypixel, Double_t &x, Double_t &y)
Definition: TPad.h:422
Style_t
short Style_t
Definition: RtypesCore.h:80
TPad::PaintLine3D
void PaintLine3D(Float_t *p1, Float_t *p2)
Paint 3-D line in the CurrentPad.
Definition: TPad.cxx:4204
TObject::TestBit
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
Definition: TObject.h:172
TPad::GetX1
Double_t GetX1() const
Definition: TPad.h:234
TPad::SetViewer3D
virtual void SetViewer3D(TVirtualViewer3D *viewer3d)
Definition: TPad.h:356
TPad::SavePrimitive
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitives in this pad on the C++ source file out.
Definition: TPad.cxx:5656
TPad::GetCanvas
virtual TCanvas * GetCanvas() const
Definition: TPad.h:256
TPad::CloseToolTip
virtual void CloseToolTip(TObject *tip)
Hide tool tip.
Definition: TPad.cxx:6903
TPad::HasCrosshair
virtual Bool_t HasCrosshair() const
Return kTRUE if the crosshair has been activated (via SetCrosshair).
Definition: TPad.cxx:6430
TPad::SetAttFillPS
virtual void SetAttFillPS(Color_t color, Style_t style)
Set postscript fill area attributes.
Definition: TPad.cxx:5991
TPad::SetCursor
virtual void SetCursor(ECursor cursor)
Set cursor type.
Definition: TPad.cxx:2815
TPad::DeleteExec
virtual void DeleteExec(const char *name)
Remove TExec name from the list of Execs.
Definition: TPad.cxx:1075
Option_t
const char Option_t
Definition: RtypesCore.h:66
TPad::SetCopyGLDevice
virtual void SetCopyGLDevice(Bool_t copy)
Definition: TPad.h:359
TPad::YtoAbsPixel
Int_t YtoAbsPixel(Double_t y) const
Definition: TPad.h:500
TPad::IsEditable
virtual Bool_t IsEditable() const
Definition: TPad.h:266
TPad::SetCanvasSize
virtual void SetCanvasSize(UInt_t ww, UInt_t wh)
Set canvas size.
Definition: TPad.cxx:2807
TPad::Range
virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Set world coordinate system for the pad.
Definition: TPad.cxx:5174
TPad::fYtoPixel
Double_t fYtoPixel
ypixel = fYtoPixelk + fYtoPixel*yworld
Definition: TPad.h:42
TPad::GetPainter
virtual TVirtualPadPainter * GetPainter()
Get pad painter from TCanvas.
Definition: TPad.cxx:7043
TPad::LineNotFree
void LineNotFree(Int_t x1, Int_t x2, Int_t y1, Int_t y2)
Mark as "not free" the cells along a line.
Definition: TPad.cxx:3133
TPad
The most important graphics class in the ROOT system.
Definition: TPad.h:26
TPad::TPad
TPad()
Pad default constructor.
Definition: TPad.cxx:129
TPad::GetPrimitive
virtual TObject * GetPrimitive(const char *name) const
Get primitive.
Definition: TPad.cxx:2871
TPad::PaintPolyMarker
void PaintPolyMarker(Int_t n, Float_t *x, Float_t *y, Option_t *option="")
Paint polymarker in CurrentPad World coordinates.
Definition: TPad.cxx:4376
ECursor
ECursor
Definition: GuiTypes.h:371
Rectangle_t
Definition: GuiTypes.h:360
TPad::GetAbsWNDC
Double_t GetAbsWNDC() const
Definition: TPad.h:216
TPad::SetBBoxY2
virtual void SetBBoxY2(const Int_t y)
Set bottom of BoundingBox to a value (resize in y direction on bottom)
Definition: TPad.cxx:7139
TPad::PaintBox
void PaintBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t *option="")
Paint box in CurrentPad World coordinates.
Definition: TPad.cxx:3731
TPad::CopyBackgroundPixmap
void CopyBackgroundPixmap(Int_t x, Int_t y)
Copy pixmap of this pad as background of the current pad.
Definition: TPad.cxx:3842
TPad::PaintBorderPS
virtual 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)
Paint a frame border with Postscript.
Definition: TPad.cxx:3585
TString::Data
const char * Data() const
Definition: TString.h:369
TPad::SetTitle
virtual void SetTitle(const char *title="")
Definition: TPad.h:350
TPad::AbsCoordinates
void AbsCoordinates(Bool_t set)
Definition: TPad.h:163
TPad::EventPave
virtual void EventPave()
Definition: TPad.h:406
TPad::Resized
virtual void Resized()
Definition: TPad.h:315
TPad::fXtoPixelk
Double_t fXtoPixelk
Conversion coefficient for X World to pixel.
Definition: TPad.h:38
TPad::ResetToolTip
virtual void ResetToolTip(TObject *tip)
Reset tool tip, i.e.
Definition: TPad.cxx:6892
TPad::SetPhi
virtual void SetPhi(Double_t phi=30)
Definition: TPad.h:352
xmax
float xmax
Definition: THbookFile.cxx:95
TPad::GetEventY
virtual Int_t GetEventY() const
Get Y event.
Definition: TPad.cxx:2681
TPad::XYtoPixel
virtual void XYtoPixel(Double_t x, Double_t y, Int_t &xpixel, Int_t &ypixel) const
Definition: TPad.h:530
TPad::fCopyGLDevice
Bool_t fCopyGLDevice
!
Definition: TPad.h:82
TPad::Print
virtual void Print(const char *filename="") const
Save Pad contents in a file in one of various formats.
Definition: TPad.cxx:4668
TPad::StartEditing
virtual void StartEditing()
Definition: TPad.h:407
TPad::fGridy
Bool_t fGridy
Set to true if grid along Y.
Definition: TPad.h:97
TPad::fCrosshair
Int_t fCrosshair
Crosshair type (0 if no crosshair requested)
Definition: TPad.h:91
TPad::fModified
Bool_t fModified
Set to true when pad is modified.
Definition: TPad.h:95
TPad::fAspectRatio
Double_t fAspectRatio
ratio of w/h in case of fixed ratio
Definition: TPad.h:78
TPad::fY2
Double_t fY2
Y of upper Y coordinate.
Definition: TPad.h:35
TPad::FillCollideGridTH1
void FillCollideGridTH1(TObject *o)
Definition: TPad.cxx:3250
TPad::GetGridx
Bool_t GetGridx() const
Definition: TPad.h:229
TPad::GetPadPar
virtual void GetPadPar(Double_t &xlow, Double_t &ylow, Double_t &xup, Double_t &yup)
Return lower and upper bounds of the pad in NDC coordinates.
Definition: TPad.cxx:2909
TPad::fUtoAbsPixelk
Double_t fUtoAbsPixelk
Conversion coefficient for U NDC to absolute pixel.
Definition: TPad.h:44
TPad::WaitPrimitive
virtual TObject * WaitPrimitive(const char *pname="", const char *emode="")
Loop and sleep until a primitive with name=pname is found in the pad.
Definition: TPad.cxx:6829
TPad::kCannotMove
@ kCannotMove
Fixed position.
Definition: TPad.h:154
Float_t
float Float_t
Definition: RtypesCore.h:57
TPad::operator=
TPad & operator=(const TPad &rhs)
kMaxPixel
const Int_t kMaxPixel
Definition: GuiTypes.h:368
Int_t
int Int_t
Definition: RtypesCore.h:45
TPad::HideToolTip
virtual void HideToolTip(Int_t event)
Hide tool tip depending on the event type.
Definition: TPad.cxx:2758
TPad::fFixedAspectRatio
Bool_t fFixedAspectRatio
True if fixed aspect ratio.
Definition: TPad.h:100
TPad::FillCollideGridTBox
void FillCollideGridTBox(TObject *o)
Definition: TPad.cxx:3176
TPad::GetAbsHNDC
Double_t GetAbsHNDC() const
Definition: TPad.h:217
TPad::fViewer3D
TVirtualViewer3D * fViewer3D
! Current 3D viewer
Definition: TPad.h:119
TPad::SetBBoxX2
virtual void SetBBoxX2(const Int_t x)
Set right hand side of BoundingBox to a value (resize in x direction on right)
Definition: TPad.cxx:7120
TPad::Clear
void Clear(Option_t *option="")
Delete all pad primitives.
Definition: TPad.cxx:623
TPad::GetView
TView * GetView() const
Definition: TPad.h:248
TPad::fVtoAbsPixelk
Double_t fVtoAbsPixelk
Conversion coefficient for V NDC to absolute pixel.
Definition: TPad.h:47
TString::Hash
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.
Definition: TString.cxx:638
TPad::SetName
virtual void SetName(const char *name)
Definition: TPad.h:345
TPad::OpaqueMoving
virtual Bool_t OpaqueMoving() const
Is pad moving in opaque mode ?
Definition: TPad.cxx:2783
TPad::GetPhi
Double_t GetPhi() const
Definition: TPad.h:219
TPad::DestroyExternalViewer3D
void DestroyExternalViewer3D()
x
Double_t x[n]
Definition: legend1.C:17
TPad::GetGLDevice
Int_t GetGLDevice()
Get GL device.
Definition: TPad.cxx:7019
TPad::RecordPave
virtual void RecordPave(const TObject *obj)
Emit RecordPave() signal.
Definition: TPad.cxx:7027
TPad::SetFillStyle
virtual void SetFillStyle(Style_t fstyle)
Override TAttFill::FillStyle for TPad because we want to handle style=0 as style 4000.
Definition: TPad.cxx:5879
TPad::TPad
TPad(const TPad &pad)
TPad::SetGridy
virtual void SetGridy(Int_t value=1)
Definition: TPad.h:329
TPad::Browse
virtual void Browse(TBrowser *b)
Browse pad.
Definition: TPad.cxx:462
TPad::GetName
const char * GetName() const
Returns name of object.
Definition: TPad.h:254
TPad::XtoAbsPixel
Int_t XtoAbsPixel(Double_t x) const
Definition: TPad.h:478
TPad::Divide
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
Definition: TPad.cxx:1166
TPad::GetWw
virtual UInt_t GetWw() const
Get Ww.
Definition: TPad.cxx:2748
TPad::fYtoPixelk
Double_t fYtoPixelk
Conversion coefficient for Y World to pixel.
Definition: TPad.h:41
TPad::ReleaseViewer3D
virtual void ReleaseViewer3D(Option_t *type="")
Release current (external) viewer.
Definition: TPad.cxx:7003
TPad::fTheta
Double_t fTheta
theta angle to view as lego/surface
Definition: TPad.h:75
TPad::GetRange
virtual void GetRange(Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2)
Return pad world coordinates range.
Definition: TPad.cxx:2920
TPad::GetListOfExecs
TList * GetListOfExecs() const
Definition: TPad.h:240
TPad::fTickx
Int_t fTickx
Set to 1 if tick marks along X.
Definition: TPad.h:85
TPad::PixeltoY
Double_t PixeltoY(Int_t py)
Definition: TPad.h:438
TPad::SetBBoxY1
virtual void SetBBoxY1(const Int_t y)
Set top of BoundingBox to a value (resize in y direction on top)
Definition: TPad.cxx:7129
TPad::GetCrosshair
Int_t GetCrosshair() const
Return the crosshair type (from the mother canvas) crosshair type = 0 means no crosshair.
Definition: TPad.cxx:6439
TString
Basic string class.
Definition: TString.h:136
TPad::GetX2
Double_t GetX2() const
Definition: TPad.h:235
TPad::SetTicks
virtual void SetTicks(Int_t valuex=1, Int_t valuey=1)
Definition: TPad.h:347
TPad::GetBBox
virtual Rectangle_t GetBBox()
Return the bounding Box of the Pad.
Definition: TPad.cxx:7052
TPad::PadtoY
Double_t PadtoY(Double_t y) const
Convert y from pad to Y.
Definition: TPad.cxx:3394
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TPad::IsFolder
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
Definition: TPad.h:267
TPad::SetNumber
virtual void SetNumber(Int_t number)
Definition: TPad.h:334
TPad::OpaqueResizing
virtual Bool_t OpaqueResizing() const
Is pad resizing in opaque mode ?
Definition: TPad.cxx:2791
Color_t
short Color_t
Definition: RtypesCore.h:83
TPad::SetAttTextPS
virtual void SetAttTextPS(Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize)
Set postscript text attributes.
Definition: TPad.cxx:6026
v
@ v
Definition: rootcling_impl.cxx:3635
text
TText * text
Definition: entrylist_figure1.C:10
TPad::ClipPolygon
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.
Definition: TPad.cxx:864
TPad::fXlowNDC
Double_t fXlowNDC
X bottom left corner of pad in NDC [0,1].
Definition: TPad.h:58
b
#define b(i)
Definition: RSha256.hxx:100
TPad::GetNumber
Int_t GetNumber() const
Definition: TPad.h:231
TPad::fGLDevice
Int_t fGLDevice
! OpenGL off-screen pixmap identifier
Definition: TPad.h:81
bool
TPad::BuildLegend
virtual TLegend * BuildLegend(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="")
Build a legend from the graphical objects in the pad.
Definition: TPad.cxx:494
TPad::SetLogz
virtual void SetLogz(Int_t value=1)
Set Lin/Log scale for Z.
Definition: TPad.cxx:5916
TPad::GetUymax
Double_t GetUymax() const
Returns the maximum y-coordinate value visible on the pad. If log axis the returned value is in decad...
Definition: TPad.h:228
TPad::PadtoX
Double_t PadtoX(Double_t x) const
Convert x from pad to X.
Definition: TPad.cxx:3385
TPad::fName
TString fName
Pad name.
Definition: TPad.h:105
TPad::AbsPixeltoY
Double_t AbsPixeltoY(Int_t py)
Definition: TPad.h:165
TPad::PaintFillAreaHatches
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 ...
Definition: TPad.cxx:3945
TPad::kFraming
@ kFraming
Frame is requested.
Definition: TPad.h:150
x1
static const double x1[5]
Definition: RooGaussKronrodIntegrator1D.cxx:346
TPad::PaintLine
void PaintLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Paint line in CurrentPad World coordinates.
Definition: TPad.cxx:4159
TPad::GetTheta
Double_t GetTheta() const
Definition: TPad.h:220
TPad::AutoExec
virtual void AutoExec()
Execute the list of Execs when a pad event occurs.
Definition: TPad.cxx:447
TPad::PaintPolyLine3D
void PaintPolyLine3D(Int_t n, Double_t *p)
Paint 3-D polyline in the CurrentPad.
Definition: TPad.cxx:4362
TPad::NextPaletteColor
Int_t NextPaletteColor()
Get the next autocolor in the pad.
Definition: TPad.cxx:3006
TAttBBox2D
Abstract base class for elements drawn in the editor.
Definition: TAttBBox2D.h:19
TPad::kClipFrame
@ kClipFrame
Clip on frame.
Definition: TPad.h:152
TPad::GetBorderMode
virtual Short_t GetBorderMode() const
Definition: TPad.h:193
TPad::Modified
void Modified(Bool_t flag=1)
Definition: TPad.h:414
TPad::SetBBoxCenterY
virtual void SetBBoxCenterY(const Int_t y)
Set Y coordinate of the center of the Pad.
Definition: TPad.cxx:7099
TPad::fHNDC
Double_t fHNDC
Height of pad along Y in Normalized Coordinates (NDC)
Definition: TPad.h:63
TPad::CreateToolTip
virtual TObject * CreateToolTip(const TBox *b, const char *text, Long_t delayms)
Create a tool tip and return its pointer.
Definition: TPad.cxx:6871
TPad::HasFixedAspectRatio
Bool_t HasFixedAspectRatio() const
Definition: TPad.h:264
TPad::fEmbeddedGL
Bool_t fEmbeddedGL
!
Definition: TPad.h:83
TPad::fUtoPixel
Double_t fUtoPixel
xpixel = fUtoPixelk + fUtoPixel*undc
Definition: TPad.h:46
style
TCanvas * style()
Definition: style.C:1
TPad::AbsPixeltoX
Double_t AbsPixeltoX(Int_t px)
Definition: TPad.h:164
TPad::Closed
virtual void Closed()
Definition: TPad.h:178
TPad::FillCollideGrid
void FillCollideGrid(TObject *o)
Initialise the grid used to find empty space when adding a box (Legend) in a pad.
Definition: TPad.cxx:3022
TPad::fLogy
Int_t fLogy
(=0 if Y linear scale, =1 if log scale)
Definition: TPad.h:88
TPad::PaintText
void PaintText(Double_t x, Double_t y, const char *text)
Paint text in CurrentPad World coordinates.
Definition: TPad.cxx:4438
TPad::Pop
virtual void Pop()
Pop pad to the top of the stack.
Definition: TPad.cxx:4627
TPad::fWNDC
Double_t fWNDC
Width of pad along X in Normalized Coordinates (NDC)
Definition: TPad.h:62
TPad::fAbsPixeltoXk
Double_t fAbsPixeltoXk
Conversion coefficient for absolute pixel to X World.
Definition: TPad.h:51
TPad::RangeAxis
virtual void RangeAxis(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax)
Set axis coordinate system for the pad.
Definition: TPad.cxx:5212
TPad::fPadPointer
TObject * fPadPointer
! free pointer
Definition: TPad.h:109
TPad::fUtoPixelk
Double_t fUtoPixelk
Conversion coefficient for U NDC to pixel.
Definition: TPad.h:45
TPad::GetCanvasID
virtual Int_t GetCanvasID() const
Get canvas identifier.
Definition: TPad.cxx:2649
TPad::fPixeltoYk
Double_t fPixeltoYk
Conversion coefficient for pixel to Y World.
Definition: TPad.h:55
TPad::fAbsCoord
Bool_t fAbsCoord
Use absolute coordinates.
Definition: TPad.h:98
TPad::DrawDist
void DrawDist(Rectangle_t aBBox, Rectangle_t bBBox, char mode)
Draw Arrows to indicated equal distances of Objects with given BBoxes.
Definition: TPad.cxx:6053
TPad::fY1
Double_t fY1
Y of lower Y coordinate.
Definition: TPad.h:33
TPad::SetBorderSize
virtual void SetBorderSize(Short_t bordersize)
Definition: TPad.h:318
TPad::SetLogy
virtual void SetLogy(Int_t value=1)
Set Lin/Log scale for Y.
Definition: TPad.cxx:5905
TPad::SaveAs
virtual void SaveAs(const char *filename="", Option_t *option="") const
Save Pad contents in a file in one of various formats.
Definition: TPad.cxx:5593
TPad::fTip
TObject * fTip
! tool tip associated with box
Definition: TPad.h:29
TPad::fPixeltoX
Double_t fPixeltoX
xworld = fPixeltoXk + fPixeltoX*xpixel
Definition: TPad.h:53
TPad::SetGridx
virtual void SetGridx(Int_t value=1)
Definition: TPad.h:328
TPad::SetMaxPickDistance
static void SetMaxPickDistance(Int_t maxPick=5)
static function to set the maximum Pick Distance fgMaxPickDistance This parameter is used in TPad::Pi...
Definition: TPad.cxx:6467
TPad::kHori
@ kHori
Pad is horizontal.
Definition: TPad.h:151
TPad::fUxmin
Double_t fUxmin
Minimum value on the X axis.
Definition: TPad.h:70
TPad::GetPadSave
TVirtualPad * GetPadSave() const
Get save pad.
Definition: TPad.cxx:2731
TPad::fX1
Double_t fX1
X of lower X coordinate.
Definition: TPad.h:32
TPad::x3d
virtual void x3d(Option_t *type="")
Deprecated: use TPad::GetViewer3D() instead.
Definition: TPad.cxx:6913
TView
See TView3D.
Definition: TView.h:25
TPad::GetAbsYlowNDC
Double_t GetAbsYlowNDC() const
Definition: TPad.h:215
TPad::GetUymin
Double_t GetUymin() const
Returns the minimum y-coordinate value visible on the pad. If log axis the returned value is in decad...
Definition: TPad.h:224
xmin
float xmin
Definition: THbookFile.cxx:95
TPad::DrawClassObject
virtual void DrawClassObject(const TObject *obj, Option_t *option="")
Draw class inheritance tree of the class to which obj belongs.
Definition: TPad.cxx:1318
TPad::GetWNDC
Double_t GetWNDC() const
Get width of pad along X in Normalized Coordinates (NDC)
Definition: TPad.h:209
TPad::fgMaxPickDistance
static Int_t fgMaxPickDistance
Maximum Pick Distance.
Definition: TPad.h:111
TPad::fTicky
Int_t fTicky
Set to 1 if tick marks along Y.
Definition: TPad.h:86
h
#define h(i)
Definition: RSha256.hxx:106
TPad::fPrimitives
TList * fPrimitives
->List of primitives (subpads)
Definition: TPad.h:103
TPad::RangeAxisChanged
virtual void RangeAxisChanged()
Definition: TPad.h:310
TPad::fBorderMode
Short_t fBorderMode
Bordermode (-1=down, 0 = no border, 1=up)
Definition: TPad.h:94
TPad::SetDrawOption
virtual void SetDrawOption(Option_t *option="")
Set drawing option for object.
Definition: TPad.h:538
TPad::GetPad
virtual TVirtualPad * GetPad(Int_t subpadnumber) const
Get a pointer to subpadnumber of this pad.
Definition: TPad.cxx:2888
TPad::UtoAbsPixel
Int_t UtoAbsPixel(Double_t u) const
Definition: TPad.h:363
TPad::UtoPixel
Int_t UtoPixel(Double_t u) const
Definition: TPad.h:454
TPad::RecordLatex
virtual void RecordLatex(const TObject *obj)
Emit RecordLatex() signal.
Definition: TPad.cxx:7035
Width_t
short Width_t
Definition: RtypesCore.h:82
TPad::DrawCrosshair
virtual void DrawCrosshair()
Function called to draw a crosshair in the canvas.
Definition: TPad.cxx:1519
TPad::Collide
Bool_t Collide(Int_t i, Int_t j, Int_t w, Int_t h)
Check if a box of size w and h collide some primitives in the pad at position i,j.
Definition: TPad.cxx:3084
TPad::GetY2
Double_t GetY2() const
Definition: TPad.h:237
TPad::FillCollideGridTGraph
void FillCollideGridTGraph(TObject *o)
Definition: TPad.cxx:3219
TPad::GetTickx
Int_t GetTickx() const
Definition: TPad.h:232
Long_t
long Long_t
Definition: RtypesCore.h:54
TPad::YtoPixel
Int_t YtoPixel(Double_t y) const
Definition: TPad.h:510
TPad::VtoPixel
Int_t VtoPixel(Double_t v) const
Definition: TPad.h:466
TPad::CopyBackgroundPixmaps
void CopyBackgroundPixmaps(TPad *start, TPad *stop, Int_t x, Int_t y)
Copy pixmaps of pads laying below pad "stop" into pad "stop".
Definition: TPad.cxx:3825
TPad::GetY1
Double_t GetY1() const
Definition: TPad.h:236
TPad::DrawCollideGrid
void DrawCollideGrid()
This method draws the collide grid on top of the canvas.
Definition: TPad.cxx:3332
TCanvasImp
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area).
Definition: TCanvasImp.h:30
TPad::PaintFillArea
void PaintFillArea(Int_t n, Float_t *x, Float_t *y, Option_t *option="")
Definition: TPad.cxx:3851
TPad::fUymin
Double_t fUymin
Minimum value on the Y axis.
Definition: TPad.h:71
TPad::PaintLineNDC
void PaintLineNDC(Double_t u1, Double_t v1, Double_t u2, Double_t v2)
Paint line in normalized coordinates.
Definition: TPad.cxx:4184
TPad::SetPad
virtual 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)
Set all pad parameters.
Definition: TPad.cxx:5958
TPad::SetVertical
virtual void SetVertical(Bool_t vert=kTRUE)
Set pad vertical (default) or horizontal.
Definition: TPad.cxx:6491
TPad::SetTickx
virtual void SetTickx(Int_t value=1)
Definition: TPad.h:348
TPad::PaintPadFrame
void PaintPadFrame(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax)
Paint histogram/graph frame.
Definition: TPad.cxx:3625
BIT
#define BIT(n)
Definition: Rtypes.h:85
TPad::PixeltoX
Double_t PixeltoX(Int_t px)
Definition: TPad.h:430
TPad::SetBBoxCenter
virtual void SetBBoxCenter(const TPoint &p)
Set center of the Pad.
Definition: TPad.cxx:7080
TVirtualPad.h
TPad::fBorderSize
Short_t fBorderSize
pad bordersize in pixels
Definition: TPad.h:93
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
TPad::fCGnx
Int_t fCGnx
! Size of the collide grid along x
Definition: TPad.h:115
TPad::ResizePad
virtual void ResizePad(Option_t *option="")
Compute pad conversion coefficients.
Definition: TPad.cxx:5453
TPad::GetTicky
Int_t GetTicky() const
Definition: TPad.h:233
y
Double_t y[n]
Definition: legend1.C:17
TPad::YtoPad
Double_t YtoPad(Double_t y) const
Convert y from Y to pad.
Definition: TPad.cxx:3415
TPad::SetBorderMode
virtual void SetBorderMode(Short_t bordermode)
Definition: TPad.h:317
TPad::DrawFrame
TH1F * DrawFrame(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, const char *title="")
Draw an empty pad frame with X and Y axis.
Definition: TPad.cxx:1590
TPad::GetBorderSize
virtual Short_t GetBorderSize() const
Definition: TPad.h:194
ULong_t
unsigned long ULong_t
Definition: RtypesCore.h:55
TPad::ResetView3D
virtual void ResetView3D(TObject *view=0)
Definition: TPad.h:313
TPad::SetFixedAspectRatio
virtual void SetFixedAspectRatio(Bool_t fixed=kTRUE)
Fix pad aspect ratio to current value if fixed is true.
Definition: TPad.cxx:5836
TPad::FindObject
virtual TObject * FindObject(const char *name) const
Search if object named name is inside this pad or in pads inside this pad.
Definition: TPad.cxx:2609
TPad::GetListOfPrimitives
TList * GetListOfPrimitives() const
Definition: TPad.h:239
Short_t
short Short_t
Definition: RtypesCore.h:39
TPad::GetAbsXlowNDC
Double_t GetAbsXlowNDC() const
Definition: TPad.h:214
TPad::XYtoAbsPixel
virtual void XYtoAbsPixel(Double_t x, Double_t y, Int_t &xpixel, Int_t &ypixel) const
Definition: TPad.h:522
TPad::CopyPixmap
virtual void CopyPixmap()
Copy the pixmap of the pad to the canvas.
Definition: TPad.cxx:1045
TPad::fTitle
TString fTitle
Pad title.
Definition: TPad.h:106
TPad::GetPadPaint
Int_t GetPadPaint() const
Definition: TPad.h:259
TPad::SetBatch
virtual void SetBatch(Bool_t batch=kTRUE)
Set pad in batch mode.
Definition: TPad.cxx:2799
TPad::fPhi
Double_t fPhi
phi angle to view as lego/surface
Definition: TPad.h:76
TPad::GetPadPointer
virtual TObject * GetPadPointer() const
Definition: TPad.h:244
kRed
@ kRed
Definition: Rtypes.h:66
TPad::fGridx
Bool_t fGridx
Set to true if grid along X.
Definition: TPad.h:96
TPad::XtoPixel
Int_t XtoPixel(Double_t x) const
Definition: TPad.h:488
TPad::SetTheta
virtual void SetTheta(Double_t theta=30)
Definition: TPad.h:351
TPad::PaintBorder
void PaintBorder(Color_t color, Bool_t tops)
Paint the pad border.
Definition: TPad.cxx:3489
TPad::fUymax
Double_t fUymax
Maximum value on the Y axis.
Definition: TPad.h:73
TPad::GetSelectedPad
TVirtualPad * GetSelectedPad() const
Get selected pad.
Definition: TPad.cxx:2722
TPad::PaintModified
virtual void PaintModified()
Traverse pad hierarchy and (re)paint only modified pads.
Definition: TPad.cxx:3644
TPad::IsRetained
virtual Bool_t IsRetained() const
Is pad retained ?
Definition: TPad.cxx:2775
TPad::Paint
virtual void Paint(Option_t *option="")
Paint all primitives in pad.
Definition: TPad.cxx:3427
TFrame
Define a Frame.
Definition: TFrame.h:19
TPad::Update
virtual void Update()
Update pad.
Definition: TPad.cxx:2839
ymin
float ymin
Definition: THbookFile.cxx:95
TPad::fVtoPixel
Double_t fVtoPixel
ypixel = fVtoPixelk + fVtoPixel*vndc
Definition: TPad.h:49
TPad::Clip
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.
Definition: TPad.cxx:673
TPad::GetView3D
TObject * GetView3D() const
Definition: TPad.h:249
TPad::GetPixmapID
Int_t GetPixmapID() const
Definition: TPad.h:260
TPad::fNumPaletteColor
Int_t fNumPaletteColor
Number of objects with an automatic color.
Definition: TPad.h:112
TPad::SetSelected
virtual void SetSelected(TObject *obj)
Set selected.
Definition: TPad.cxx:2831
TBox
Create a Box.
Definition: TBox.h:22
TPad::RangeChanged
virtual void RangeChanged()
Definition: TPad.h:308
TPad::fPadPaint
Int_t fPadPaint
Set to 1 while painting the pad.
Definition: TPad.h:90
TPad::PaintPolyLineNDC
void PaintPolyLineNDC(Int_t n, Double_t *x, Double_t *y, Option_t *option="")
Paint polyline in CurrentPad NDC coordinates.
Definition: TPad.cxx:4338
TPad::IsModified
Bool_t IsModified() const
Definition: TPad.h:268
TPad::GetAspectRatio
Double_t GetAspectRatio() const
Definition: TPad.h:218
TPad::~TPad
virtual ~TPad()
Pad destructor.
Definition: TPad.cxx:372
TPad::fPixeltoXk
Double_t fPixeltoXk
Conversion coefficient for pixel to X World.
Definition: TPad.h:52
TPad::HasViewer3D
virtual Bool_t HasViewer3D() const
Definition: TPad.h:391
TPad::GetHighLightColor
virtual Color_t GetHighLightColor() const
Get highlight color.
Definition: TPad.cxx:2697
TPad::fAbsXlowNDC
Double_t fAbsXlowNDC
Absolute X top left corner of pad in NDC [0,1].
Definition: TPad.h:65
TPad::fExecs
TList * fExecs
List of commands to be executed when a pad event occurs.
Definition: TPad.h:104
TPad::GetXlowNDC
Double_t GetXlowNDC() const
Definition: TPad.h:206
TPad::fAbsWNDC
Double_t fAbsWNDC
Absolute Width of pad along X in NDC.
Definition: TPad.h:67
TPad::IsVertical
virtual Bool_t IsVertical() const
Definition: TPad.h:270
TPad::fAbsPixeltoYk
Double_t fAbsPixeltoYk
Conversion coefficient for absolute pixel to Y World.
Definition: TPad.h:54
TPoint
Definition: TPoint.h:31
TPad::GetRangeAxis
virtual void GetRangeAxis(Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax)
Return pad axis coordinates range.
Definition: TPad.cxx:2931
v1
@ v1
Definition: rootcling_impl.cxx:3637
Double_t
double Double_t
Definition: RtypesCore.h:59
TPad::FillCollideGridTFrame
void FillCollideGridTFrame(TObject *o)
Definition: TPad.cxx:3193
TPad::DivideSquare
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.
Definition: TPad.cxx:1265
TVirtualPad
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition: TVirtualPad.h:51
TPad::GetLogz
Int_t GetLogz() const
Definition: TPad.h:252
TPad::SetToolTipText
virtual void SetToolTipText(const char *text, Long_t delayms=1000)
Set tool tip text associated with this pad.
Definition: TPad.cxx:6477
TPad::PlaceBox
Bool_t PlaceBox(TObject *o, Double_t w, Double_t h, Double_t &xl, Double_t &yb)
Place a box in NDC space.
Definition: TPad.cxx:3104
TPad::fCGny
Int_t fCGny
! Size of the collide grid along y
Definition: TPad.h:116
TPad::kClearAfterCR
@ kClearAfterCR
Clear after CR.
Definition: TPad.h:155
TCanvas
The Canvas class.
Definition: TCanvas.h:23
TPad::fUxmax
Double_t fUxmax
Maximum value on the X axis.
Definition: TPad.h:72
TPad::ClippingCode
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.
Definition: TPad.cxx:815
TPad::GetUxmax
Double_t GetUxmax() const
Returns the maximum x-coordinate value visible on the pad. If log axis the returned value is in decad...
Definition: TPad.h:226
TPad::fYUpNDC
Double_t fYUpNDC
Definition: TPad.h:61
TH1F
1-D histogram with a float per channel (see TH1 documentation)}
Definition: TH1.h:573
TPad::cd
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
Definition: TPad.cxx:594
v2
@ v2
Definition: rootcling_impl.cxx:3638
TPad::fYtoAbsPixelk
Double_t fYtoAbsPixelk
Conversion coefficient for Y World to absolute pixel.
Definition: TPad.h:40
TPad::SetBBoxCenterX
virtual void SetBBoxCenterX(const Int_t x)
Set X coordinate of the center of the Pad.
Definition: TPad.cxx:7090
TPad::PaintDate
void PaintDate()
Paint the current date and time if the option date is on.
Definition: TPad.cxx:3594
TPad::GetUxmin
Double_t GetUxmin() const
Returns the minimum x-coordinate value visible on the pad. If log axis the returned value is in decad...
Definition: TPad.h:222
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
TArrow
Draw all kinds of Arrows.
Definition: TArrow.h:29
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TVirtualViewer3D
Abstract 3D shapes viewer.
Definition: TVirtualViewer3D.h:34
TPad::PixeltoXY
virtual void PixeltoXY(Int_t xpixel, Int_t ypixel, Double_t &x, Double_t &y)
Definition: TPad.h:446
RooFit::FillStyle
RooCmdArg FillStyle(Style_t style)
Definition: RooGlobalFunc.cxx:60
TPad::Close
virtual void Close(Option_t *option="")
Delete all primitives in pad and pad itself.
Definition: TPad.cxx:988
TPad::IsBatch
virtual Bool_t IsBatch() const
Is pad in batch mode ?
Definition: TPad.cxx:2767
TPad::fFrame
TFrame * fFrame
! Pointer to 2-D frame (if one exists)
Definition: TPad.h:107
TPad::GetFrame
TFrame * GetFrame()
Get frame.
Definition: TPad.cxx:2847
TPad::kPrintingPS
@ kPrintingPS
PS Printing.
Definition: TPad.h:153
TPad::fEditable
Bool_t fEditable
True if canvas is editable.
Definition: TPad.h:99
name
char name[80]
Definition: TGX11.cxx:110
TPad::ExecuteEventAxis
virtual void ExecuteEventAxis(Int_t event, Int_t px, Int_t py, TAxis *axis)
Execute action corresponding to one event for a TAxis object (called by TAxis::ExecuteEvent....
Definition: TPad.cxx:2273
TPad::GetEvent
virtual Int_t GetEvent() const
Get Event.
Definition: TPad.cxx:2665
TPad::fCanvas
TCanvas * fCanvas
! Pointer to mother canvas
Definition: TPad.h:102
TPad::SetGrid
virtual void SetGrid(Int_t valuex=1, Int_t valuey=1)
Definition: TPad.h:327
TPad::HighLight
void HighLight(Color_t col=kRed, Bool_t set=kTRUE)
Highlight pad.
Definition: TPad.cxx:2943
TPad::fLogx
Int_t fLogx
(=0 if X linear scale, =1 if log scale)
Definition: TPad.h:87
TPad::ShowGuidelines
virtual void ShowGuidelines(TObject *object, const Int_t event, const char mode='i', const bool cling=true)
Shows lines to indicate if a TAttBBox2D object is aligned to the center or to another object,...
Definition: TPad.cxx:6137
TPad::PaintHatches
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 coo...
Definition: TPad.cxx:4007
x2
static const double x2[5]
Definition: RooGaussKronrodIntegrator1D.cxx:364
TPad::fNumber
Int_t fNumber
pad number identifier
Definition: TPad.h:84
TPad::SetBBoxX1
virtual void SetBBoxX1(const Int_t x)
Set lefthandside of BoundingBox to a value (resize in x direction on left)
Definition: TPad.cxx:7109
TPad::fAbsYlowNDC
Double_t fAbsYlowNDC
Absolute Y top left corner of pad in NDC [0,1].
Definition: TPad.h:66
TPad::RecursiveRemove
virtual void RecursiveRemove(TObject *obj)
Recursively remove object from a pad and its sub-pads.
Definition: TPad.cxx:5232
TPad::fXUpNDC
Double_t fXUpNDC
Definition: TPad.h:60
TPad::DrawColorTable
static void DrawColorTable()
Static function to Display Color Table in a pad.
Definition: TPad.cxx:1635
TPad::GetHNDC
Double_t GetHNDC() const
Get height of pad along Y in Normalized Coordinates (NDC)
Definition: TPad.h:211
TLegend
This class displays a legend box (TPaveText) containing several legend entries.
Definition: TLegend.h:23
TPad::GetLogx
Int_t GetLogx() const
Definition: TPad.h:250
TPad::GetViewer3D
virtual TVirtualViewer3D * GetViewer3D(Option_t *type="")
Create/obtain handle to 3D viewer.
Definition: TPad.cxx:6931
TVirtualPadPainter
To make it possible to use GL for 2D graphic in a TPad/TCanvas.
Definition: TVirtualPadPainter.h:19
TPad::GetLogy
Int_t GetLogy() const
Definition: TPad.h:251
type
int type
Definition: TGX11.cxx:121
TPad::GetVirtCanvas
virtual TVirtualPad * GetVirtCanvas() const
Get virtual canvas.
Definition: TPad.cxx:2689
TPad::SetLogx
virtual void SetLogx(Int_t value=1)
Set Lin/Log scale for X.
Definition: TPad.cxx:5891
TPad::fNextPaletteColor
Int_t fNextPaletteColor
Next automatic color.
Definition: TPad.h:113
TPad::PaintTextNDC
void PaintTextNDC(Double_t u, Double_t v, const char *text)
Paint text in CurrentPad NDC coordinates.
Definition: TPad.cxx:4464
TPad::GetMaxPickDistance
static Int_t GetMaxPickDistance()
Static function (see also TPad::SetMaxPickDistance)
Definition: TPad.cxx:2705
TPad::VtoAbsPixel
Int_t VtoAbsPixel(Double_t v) const
Definition: TPad.h:364
TPad::SetCrosshair
virtual void SetCrosshair(Int_t crhair=1)
Set crosshair active/inactive.
Definition: TPad.cxx:6452
TPad::GetTitle
const char * GetTitle() const
Returns title of object.
Definition: TPad.h:255
TPad::fCollideGrid
Bool_t * fCollideGrid
! Grid used to find empty space when adding a box (Legend) in a pad
Definition: TPad.h:114
TPad::DistancetoPrimitive
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a box.
Definition: TPad.cxx:1091
TPad::fXtoPixel
Double_t fXtoPixel
xpixel = fXtoPixelk + fXtoPixel*xworld
Definition: TPad.h:39
TPad::PaintPolyLine
void PaintPolyLine(Int_t n, Float_t *x, Float_t *y, Option_t *option="")
Paint polyline in CurrentPad World coordinates.
Definition: TPad.cxx:4240
TPad::fPixeltoY
Double_t fPixeltoY
yworld = fPixeltoYk + fPixeltoY*ypixel
Definition: TPad.h:56
TPad::PaintFillAreaNDC
void PaintFillAreaNDC(Int_t n, Double_t *x, Double_t *y, Option_t *option="")
Paint fill area in CurrentPad NDC coordinates.
Definition: TPad.cxx:3899
TPad::ls
virtual void ls(Option_t *option="") const
List all primitives in pad.
Definition: TPad.cxx:2978
TPad::fCrosshairPos
Int_t fCrosshairPos
Position of crosshair.
Definition: TPad.h:92
TPad::fVtoPixelk
Double_t fVtoPixelk
Conversion coefficient for V NDC to pixel.
Definition: TPad.h:48
TPad::XtoPad
Double_t XtoPad(Double_t x) const
Convert x from X to pad.
Definition: TPad.cxx:3403
TPad::ExecuteEvent
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Definition: TPad.cxx:1698
TPad::fXtoAbsPixelk
Double_t fXtoAbsPixelk
Conversion coefficient for X World to absolute pixel.
Definition: TPad.h:37
TPad::fMother
TPad * fMother
! pointer to mother of the list
Definition: TPad.h:101
TPad::GetMother
virtual TVirtualPad * GetMother() const
Definition: TPad.h:253
TList
A doubly linked list.
Definition: TList.h:44
TPad::GetCanvasImp
virtual TCanvasImp * GetCanvasImp() const
Get canvas implementation pointer if any.
Definition: TPad.cxx:2657
TQObject::Emit
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Definition: TQObject.h:164
TPad::IncrementPaletteColor
Int_t IncrementPaletteColor(Int_t i, TString opt)
Increment (i==1) or set (i>1) the number of autocolor in the pad.
Definition: TPad.cxx:2992
TPad::RedrawAxis
virtual void RedrawAxis(Option_t *option="")
Redraw the frame axis.
Definition: TPad.cxx:5276
TPad::DeleteToolTip
virtual void DeleteToolTip(TObject *tip)
Delete tool tip object.
Definition: TPad.cxx:6881
TPad::SetDoubleBuffer
virtual void SetDoubleBuffer(Int_t mode=1)
Set double buffer mode ON or OFF.
Definition: TPad.cxx:2823
TPad::GetSelected
virtual TObject * GetSelected() const
Get selected.
Definition: TPad.cxx:2713
TPad::GetEventX
virtual Int_t GetEventX() const
Get X event.
Definition: TPad.cxx:2673
TPad::fLogz
Int_t fLogz
(=0 if Z linear scale, =1 if log scale)
Definition: TPad.h:89
TPad::SetGLDevice
virtual void SetGLDevice(Int_t dev)
Definition: TPad.h:358
TPad::Hash
ULong_t Hash() const
Return hash value for this object.
Definition: TPad.h:261
TPad::SetAttLinePS
virtual void SetAttLinePS(Color_t color, Style_t style, Width_t lwidth)
Set postscript line attributes.
Definition: TPad.cxx:6002
TPad::fAbsHNDC
Double_t fAbsHNDC
Absolute Height of pad along Y in NDC.
Definition: TPad.h:68
int
TPad::fPixmapID
Int_t fPixmapID
! Off-screen pixmap identifier
Definition: TPad.h:80
Size_t
float Size_t
Definition: RtypesCore.h:87
TPad::Pick
virtual TPad * Pick(Int_t px, Int_t py, TObjLink *&pickobj)
Search for an object at pixel position px,py.
Definition: TPad.cxx:4508
TPad::Draw
virtual void Draw(Option_t *option="")
Draw Pad in Current pad (re-parent pad if necessary).
Definition: TPad.cxx:1285
TPad::fYlowNDC
Double_t fYlowNDC
Y bottom left corner of pad in NDC [0,1].
Definition: TPad.h:59