The most important graphics class in the ROOT system.
A Pad is contained in a Canvas.
A Pad may contain other pads (unlimited pad hierarchy).
A pad is a linked list of primitives of any type (graphics objects, histograms, detectors, tracks, etc.).
Adding a new element into a pad is in general performed by the Draw member function of the object classes.
It is important to realize that the pad is a linked list of references to the original object. For example, in case of a histogram, the histogram.Draw() operation only stores a reference to the histogram object and not a graphical representation of this histogram. When the mouse is used to change (say the bin content), the bin content of the original histogram is changed.
The convention used in ROOT is that a Draw operation only adds a reference to the object. The effective drawing is performed when the canvas receives a signal to be painted.
This signal is generally sent when typing carriage return in the command input or when a graphical operation has been performed on one of the pads of this canvas. When a Canvas/Pad is repainted, the member function Paint for all objects in the Pad linked list is invoked.
When the mouse is moved on the Pad, The member function DistancetoPrimitive is called for all the elements in the pad. DistancetoPrimitive returns the distance in pixels to this object.
When the object is within the distance window, the member function ExecuteEvent is called for this object.
In ExecuteEvent, move, changes can be performed on the object.
For examples of DistancetoPrimitive and ExecuteEvent functions, see classes
A Pad supports linear and log scales coordinate systems. The transformation coefficients are explained in TPad::ResizePad.
Public Types | |
enum | { kFraming = BIT(6) , kHori = BIT(9) , kClipFrame = BIT(10) , kPrintingPS = BIT(11) , kCannotMove = BIT(12) , kClearAfterCR = BIT(14) } |
Public Types inherited from TObject | |
enum | { kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 , kBitMask = 0x00ffffff } |
enum | { kSingleKey = BIT(0) , kOverwrite = BIT(1) , kWriteDelete = BIT(2) } |
enum | EDeprecatedStatusBits { kObjInCanvas = BIT(3) } |
enum | EStatusBits { kCanDelete = BIT(0) , kMustCleanup = BIT(3) , kIsReferenced = BIT(4) , kHasUUID = BIT(5) , kCannotPick = BIT(6) , kNoContextMenu = BIT(8) , kInvalidObject = BIT(13) } |
Public Member Functions | |
TPad () | |
Pad default constructor. More... | |
TPad (const char *name, const char *title, Double_t xlow, Double_t ylow, Double_t xup, Double_t yup, Color_t color=-1, Short_t bordersize=-1, Short_t bordermode=-2) | |
Pad constructor. More... | |
virtual | ~TPad () |
Pad destructor. More... | |
void | AbsCoordinates (Bool_t set) |
Double_t | AbsPixeltoX (Int_t px) |
virtual void | AbsPixeltoXY (Int_t xpixel, Int_t ypixel, Double_t &x, Double_t &y) |
Double_t | AbsPixeltoY (Int_t py) |
virtual void | AddExec (const char *name, const char *command) |
Add a new TExec object to the list of Execs. More... | |
virtual void | AutoExec () |
Execute the list of Execs when a pad event occurs. More... | |
virtual void | Browse (TBrowser *b) |
Browse pad. More... | |
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. More... | |
TVirtualPad * | cd (Int_t subpadnumber=0) |
Set Current pad. More... | |
void | Clear (Option_t *option="") |
Delete all pad primitives. More... | |
virtual Int_t | Clip (Double_t *x, Double_t *y, Double_t xclipl, Double_t yclipb, Double_t xclipr, Double_t yclipt) |
Clipping routine: Cohen Sutherland algorithm. More... | |
virtual Int_t | Clip (Float_t *x, Float_t *y, Float_t xclipl, Float_t yclipb, Float_t xclipr, Float_t yclipt) |
Clipping routine: Cohen Sutherland algorithm. More... | |
virtual Int_t | ClippingCode (Double_t x, Double_t y, Double_t xcl1, Double_t ycl1, Double_t xcl2, Double_t ycl2) |
Compute the endpoint codes for TPad::Clip. More... | |
virtual Int_t | ClipPolygon (Int_t n, Double_t *x, Double_t *y, Int_t nn, Double_t *xc, Double_t *yc, Double_t xclipl, Double_t yclipb, Double_t xclipr, Double_t yclipt) |
Clip polygon using the Sutherland-Hodgman algorithm. More... | |
virtual void | Close (Option_t *option="") |
Delete all primitives in pad and pad itself. More... | |
virtual void | Closed () |
virtual void | CloseToolTip (TObject *tip) |
Hide tool tip. More... | |
virtual void | CopyPixmap () |
Copy the pixmap of the pad to the canvas. More... | |
virtual void | CopyPixmaps () |
Copy the sub-pixmaps of the pad to the canvas. More... | |
virtual TObject * | CreateToolTip (const TBox *b, const char *text, Long_t delayms) |
Create a tool tip and return its pointer. More... | |
virtual void | DeleteExec (const char *name) |
Remove TExec name from the list of Execs. More... | |
virtual void | DeleteToolTip (TObject *tip) |
Delete tool tip object. More... | |
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. More... | |
virtual void | DivideSquare (Int_t n, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0) |
"n" is the total number of sub-pads. More... | |
virtual void | Draw (Option_t *option="") |
Draw Pad in Current pad (re-parent pad if necessary). More... | |
virtual void | DrawClassObject (const TObject *obj, Option_t *option="") |
Draw class inheritance tree of the class to which obj belongs. More... | |
void | DrawCollideGrid () |
This method draws the collide grid on top of the canvas. More... | |
virtual void | DrawCrosshair () |
Function called to draw a crosshair in the canvas. More... | |
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. More... | |
virtual void | EventPave () |
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.) This member function is called when an axis is clicked with the locator. More... | |
virtual TObject * | FindObject (const char *name) const |
Search if object named name is inside this pad or in pads inside this pad. More... | |
virtual TObject * | FindObject (const TObject *obj) const |
Search if obj is in pad or in pads inside this pad. More... | |
Double_t | GetAbsHNDC () const |
Double_t | GetAbsWNDC () const |
Double_t | GetAbsXlowNDC () const |
Double_t | GetAbsYlowNDC () const |
Double_t | GetAspectRatio () const |
virtual Rectangle_t | GetBBox () |
Return the bounding Box of the Pad. More... | |
virtual TPoint | GetBBoxCenter () |
Return the center of the Pad as TPoint in pixels. More... | |
virtual Short_t | GetBorderMode () const |
virtual Short_t | GetBorderSize () const |
virtual TCanvas * | GetCanvas () const |
virtual Int_t | GetCanvasID () const |
Get canvas identifier. More... | |
virtual TCanvasImp * | GetCanvasImp () const |
Get canvas implementation pointer if any. More... | |
Int_t | GetCrosshair () const |
Return the crosshair type (from the mother canvas) crosshair type = 0 means no crosshair. More... | |
virtual Int_t | GetEvent () const |
Get Event. More... | |
virtual Int_t | GetEventX () const |
Get X event. More... | |
virtual Int_t | GetEventY () const |
Get Y event. More... | |
TFrame * | GetFrame () |
Get frame. More... | |
Int_t | GetGLDevice () |
Get GL device. More... | |
Bool_t | GetGridx () const |
Bool_t | GetGridy () const |
virtual Color_t | GetHighLightColor () const |
Get highlight color. More... | |
Double_t | GetHNDC () const |
Get height of pad along Y in Normalized Coordinates (NDC) More... | |
TList * | GetListOfExecs () const |
TList * | GetListOfPrimitives () const |
Int_t | GetLogx () const |
Int_t | GetLogy () const |
Int_t | GetLogz () const |
virtual TVirtualPad * | GetMother () const |
const char * | GetName () const |
Returns name of object. More... | |
Int_t | GetNumber () const |
virtual TVirtualPad * | GetPad (Int_t subpadnumber) const |
Get a pointer to subpadnumber of this pad. More... | |
Int_t | GetPadPaint () const |
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. More... | |
virtual TObject * | GetPadPointer () const |
TVirtualPad * | GetPadSave () const |
Get save pad. More... | |
virtual TVirtualPadPainter * | GetPainter () |
Get pad painter from TCanvas. More... | |
Double_t | GetPhi () const |
Int_t | GetPixmapID () const |
virtual TObject * | GetPrimitive (const char *name) const |
Get primitive. More... | |
virtual void | GetRange (Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2) |
Return pad world coordinates range. More... | |
virtual void | GetRangeAxis (Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax) |
Return pad axis coordinates range. More... | |
virtual TObject * | GetSelected () const |
Get selected. More... | |
TVirtualPad * | GetSelectedPad () const |
Get selected pad. More... | |
Double_t | GetTheta () const |
Int_t | GetTickx () const |
Int_t | GetTicky () const |
const char * | GetTitle () const |
Returns title of object. More... | |
Double_t | GetUxmax () const |
Returns the maximum x-coordinate value visible on the pad. If log axis the returned value is in decades. More... | |
Double_t | GetUxmin () const |
Returns the minimum x-coordinate value visible on the pad. If log axis the returned value is in decades. More... | |
Double_t | GetUymax () const |
Returns the maximum y-coordinate value visible on the pad. If log axis the returned value is in decades. More... | |
Double_t | GetUymin () const |
Returns the minimum y-coordinate value visible on the pad. If log axis the returned value is in decades. More... | |
TView * | GetView () const |
TObject * | GetView3D () const |
virtual TVirtualViewer3D * | GetViewer3D (Option_t *type="") |
Create/obtain handle to 3D viewer. More... | |
virtual TVirtualPad * | GetVirtCanvas () const |
Get virtual canvas. More... | |
virtual UInt_t | GetWh () const |
Get Wh. More... | |
Double_t | GetWNDC () const |
Get width of pad along X in Normalized Coordinates (NDC) More... | |
virtual UInt_t | GetWw () const |
Get Ww. More... | |
Double_t | GetX1 () const |
Double_t | GetX2 () const |
Double_t | GetXlowNDC () const |
Double_t | GetY1 () const |
Double_t | GetY2 () const |
Double_t | GetYlowNDC () const |
virtual Bool_t | HasCrosshair () const |
Return kTRUE if the crosshair has been activated (via SetCrosshair). More... | |
Bool_t | HasFixedAspectRatio () const |
ULong_t | Hash () const |
Return hash value for this object. More... | |
virtual Bool_t | HasViewer3D () const |
void | HighLight (Color_t col=kRed, Bool_t set=kTRUE) |
Highlight pad. More... | |
Int_t | IncrementPaletteColor (Int_t i, TString opt) |
Increment (i==1) or set (i>1) the number of autocolor in the pad. More... | |
virtual Bool_t | IsBatch () const |
Is pad in batch mode ? More... | |
virtual Bool_t | IsEditable () const |
Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More... | |
Bool_t | IsModified () const |
virtual Bool_t | IsRetained () const |
Is pad retained ? More... | |
virtual Bool_t | IsVertical () const |
virtual void | ls (Option_t *option="") const |
List all primitives in pad. More... | |
void | Modified (Bool_t flag=1) |
Int_t | NextPaletteColor () |
Get the next autocolor in the pad. More... | |
virtual Bool_t | OpaqueMoving () const |
Is pad moving in opaque mode ? More... | |
virtual Bool_t | OpaqueResizing () const |
Is pad resizing in opaque mode ? More... | |
Double_t | PadtoX (Double_t x) const |
Convert x from pad to X. More... | |
Double_t | PadtoY (Double_t y) const |
Convert y from pad to Y. More... | |
virtual void | Paint (Option_t *option="") |
Paint all primitives in pad. More... | |
void | PaintBox (Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t *option="") |
Paint box in CurrentPad World coordinates. More... | |
void | PaintFillArea (Int_t n, Double_t *x, Double_t *y, Option_t *option="") |
Paint fill area in CurrentPad World coordinates. More... | |
void | PaintFillArea (Int_t n, Float_t *x, Float_t *y, Option_t *option="") |
void | PaintFillAreaHatches (Int_t n, Double_t *x, Double_t *y, Int_t FillStyle) |
This function paints hatched fill area according to the FillStyle value The convention for the Hatch is the following: More... | |
void | PaintFillAreaNDC (Int_t n, Double_t *x, Double_t *y, Option_t *option="") |
Paint fill area in CurrentPad NDC coordinates. More... | |
void | PaintHatches (Double_t dy, Double_t angle, Int_t nn, Double_t *xx, Double_t *yy) |
This routine draw hatches inclined with the angle "angle" and spaced of "dy" in normalized device coordinates in the surface defined by n,xx,yy. More... | |
void | PaintLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2) |
Paint line in CurrentPad World coordinates. More... | |
void | PaintLine3D (Double_t *p1, Double_t *p2) |
Paint 3-D line in the CurrentPad. More... | |
void | PaintLine3D (Float_t *p1, Float_t *p2) |
Paint 3-D line in the CurrentPad. More... | |
void | PaintLineNDC (Double_t u1, Double_t v1, Double_t u2, Double_t v2) |
Paint line in normalized coordinates. More... | |
virtual void | PaintModified () |
Traverse pad hierarchy and (re)paint only modified pads. More... | |
void | PaintPadFrame (Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax) |
Paint histogram/graph frame. More... | |
void | PaintPolyLine (Int_t n, Double_t *x, Double_t *y, Option_t *option="") |
Paint polyline in CurrentPad World coordinates. More... | |
void | PaintPolyLine (Int_t n, Float_t *x, Float_t *y, Option_t *option="") |
Paint polyline in CurrentPad World coordinates. More... | |
void | PaintPolyLine3D (Int_t n, Double_t *p) |
Paint 3-D polyline in the CurrentPad. More... | |
void | PaintPolyLineNDC (Int_t n, Double_t *x, Double_t *y, Option_t *option="") |
Paint polyline in CurrentPad NDC coordinates. More... | |
void | PaintPolyMarker (Int_t n, Double_t *x, Double_t *y, Option_t *option="") |
Paint polymarker in CurrentPad World coordinates. More... | |
void | PaintPolyMarker (Int_t n, Float_t *x, Float_t *y, Option_t *option="") |
Paint polymarker in CurrentPad World coordinates. More... | |
void | PaintText (Double_t x, Double_t y, const char *text) |
Paint text in CurrentPad World coordinates. More... | |
void | PaintText (Double_t x, Double_t y, const wchar_t *text) |
Paint text in CurrentPad World coordinates. More... | |
void | PaintTextNDC (Double_t u, Double_t v, const char *text) |
Paint text in CurrentPad NDC coordinates. More... | |
void | PaintTextNDC (Double_t u, Double_t v, const wchar_t *text) |
Paint text in CurrentPad NDC coordinates. More... | |
virtual TPad * | Pick (Int_t px, Int_t py, TObjLink *&pickobj) |
Search for an object at pixel position px,py. More... | |
Double_t | PixeltoX (Int_t px) |
virtual void | PixeltoXY (Int_t xpixel, Int_t ypixel, Double_t &x, Double_t &y) |
Double_t | PixeltoY (Int_t py) |
Bool_t | PlaceBox (TObject *o, Double_t w, Double_t h, Double_t &xl, Double_t &yb) |
Place a box in NDC space. More... | |
virtual void | Pop () |
Pop pad to the top of the stack. More... | |
virtual void | Print (const char *filename, Option_t *option) |
Save Canvas contents in a file in one of various formats. More... | |
virtual void | Print (const char *filename="") const |
Save Pad contents in a file in one of various formats. More... | |
virtual void | Range (Double_t x1, Double_t y1, Double_t x2, Double_t y2) |
Set world coordinate system for the pad. More... | |
virtual void | RangeAxis (Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax) |
Set axis coordinate system for the pad. More... | |
virtual void | RangeAxisChanged () |
virtual void | RangeChanged () |
virtual void | RecordLatex (const TObject *obj) |
Emit RecordLatex() signal. More... | |
virtual void | RecordPave (const TObject *obj) |
Emit RecordPave() signal. More... | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove object from a pad and its sub-pads. More... | |
virtual void | RedrawAxis (Option_t *option="") |
Redraw the frame axis Redrawing axis may be necessary in case of superimposed histograms when one or more histograms have a fill color Instead of calling this function, it may be more convenient to call directly h1->Draw("sameaxis") where h1 is the pointer to the first histogram drawn in the pad. More... | |
virtual void | ReleaseViewer3D (Option_t *type="") |
Release current (external) viewer. More... | |
virtual void | ResetToolTip (TObject *tip) |
Reset tool tip, i.e. More... | |
virtual void | ResetView3D (TObject *view=0) |
virtual void | Resized () |
virtual void | ResizePad (Option_t *option="") |
Compute pad conversion coefficients. More... | |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save Pad contents in a file in one of various formats. More... | |
virtual void | SetAttFillPS (Color_t color, Style_t style) |
Set postscript fill area attributes. More... | |
virtual void | SetAttLinePS (Color_t color, Style_t style, Width_t lwidth) |
Set postscript line attributes. More... | |
virtual void | SetAttMarkerPS (Color_t color, Style_t style, Size_t msize) |
Set postscript marker attributes. More... | |
virtual void | SetAttTextPS (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize) |
Set postscript text attributes. More... | |
virtual void | SetBBoxCenter (const TPoint &p) |
Set center of the Pad. More... | |
virtual void | SetBBoxCenterX (const Int_t x) |
Set X coordinate of the center of the Pad. More... | |
virtual void | SetBBoxCenterY (const Int_t y) |
Set Y coordinate of the center of the Pad. More... | |
virtual void | SetBBoxX1 (const Int_t x) |
Set lefthandside of BoundingBox to a value (resize in x direction on left) More... | |
virtual void | SetBBoxX2 (const Int_t x) |
Set right hand side of BoundingBox to a value (resize in x direction on right) More... | |
virtual void | SetBBoxY1 (const Int_t y) |
Set top of BoundingBox to a value (resize in y direction on top) More... | |
virtual void | SetBBoxY2 (const Int_t y) |
Set bottom of BoundingBox to a value (resize in y direction on bottom) More... | |
virtual void | SetBorderMode (Short_t bordermode) |
virtual void | SetBorderSize (Short_t bordersize) |
void | SetCanvas (TCanvas *c) |
virtual void | SetCanvasSize (UInt_t ww, UInt_t wh) |
Set canvas size. More... | |
virtual void | SetCopyGLDevice (Bool_t copy) |
virtual void | SetCrosshair (Int_t crhair=1) |
Set crosshair active/inactive. More... | |
virtual void | SetCursor (ECursor cursor) |
Set cursor type. More... | |
virtual void | SetDoubleBuffer (Int_t mode=1) |
Set double buffer mode ON or OFF. More... | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. More... | |
virtual void | SetEditable (Bool_t mode=kTRUE) |
Set pad editable yes/no If a pad is not editable: More... | |
virtual void | SetFillStyle (Style_t fstyle) |
Override TAttFill::FillStyle for TPad because we want to handle style=0 as style 4000. More... | |
virtual void | SetFixedAspectRatio (Bool_t fixed=kTRUE) |
Fix pad aspect ratio to current value if fixed is true. More... | |
virtual void | SetGLDevice (Int_t dev) |
virtual void | SetGrid (Int_t valuex=1, Int_t valuey=1) |
virtual void | SetGridx (Int_t value=1) |
virtual void | SetGridy (Int_t value=1) |
virtual void | SetLogx (Int_t value=1) |
Set Lin/Log scale for X. More... | |
virtual void | SetLogy (Int_t value=1) |
Set Lin/Log scale for Y. More... | |
virtual void | SetLogz (Int_t value=1) |
Set Lin/Log scale for Z. More... | |
virtual void | SetName (const char *name) |
virtual void | SetNumber (Int_t number) |
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. More... | |
virtual void | SetPad (Double_t xlow, Double_t ylow, Double_t xup, Double_t yup) |
Set canvas range for pad and resize the pad. More... | |
virtual void | SetPhi (Double_t phi=30) |
virtual void | SetSelected (TObject *obj) |
Set selected. More... | |
virtual void | SetTheta (Double_t theta=30) |
virtual void | SetTicks (Int_t valuex=1, Int_t valuey=1) |
virtual void | SetTickx (Int_t value=1) |
virtual void | SetTicky (Int_t value=1) |
virtual void | SetTitle (const char *title="") |
virtual void | SetToolTipText (const char *text, Long_t delayms=1000) |
Set tool tip text associated with this pad. More... | |
virtual void | SetVertical (Bool_t vert=kTRUE) |
Set pad vertical (default) or horizontal. More... | |
virtual void | SetView (TView *view=0) |
Set the current TView. Delete previous view if view=0. More... | |
virtual void | SetViewer3D (TVirtualViewer3D *viewer3d) |
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, shows distance arrows if two objects on screen have the same distance to another object Call from primitive in Execute Event, in ButtonMotion after the new coordinates have been set, to 'stick' once when button is up to delete lines. More... | |
virtual void | StartEditing () |
virtual void | Update () |
Update pad. More... | |
virtual void | UseCurrentStyle () |
Force a copy of current style for all objects in pad. More... | |
Int_t | UtoAbsPixel (Double_t u) const |
Int_t | UtoPixel (Double_t u) const |
Int_t | VtoAbsPixel (Double_t v) const |
Int_t | VtoPixel (Double_t v) const |
virtual TObject * | WaitPrimitive (const char *pname="", const char *emode="") |
Loop and sleep until a primitive with name=pname is found in the pad. More... | |
virtual void | x3d (Option_t *type="") |
Deprecated: use TPad::GetViewer3D() instead. More... | |
Int_t | XtoAbsPixel (Double_t x) const |
Double_t | XtoPad (Double_t x) const |
Convert x from X to pad. More... | |
Int_t | XtoPixel (Double_t x) const |
virtual void | XYtoAbsPixel (Double_t x, Double_t y, Int_t &xpixel, Int_t &ypixel) const |
virtual void | XYtoPixel (Double_t x, Double_t y, Int_t &xpixel, Int_t &ypixel) const |
Int_t | YtoAbsPixel (Double_t y) const |
Double_t | YtoPad (Double_t y) const |
Convert y from Y to pad. More... | |
Int_t | YtoPixel (Double_t y) const |
Public Member Functions inherited from TVirtualPad | |
TVirtualPad () | |
VirtualPad default constructor. More... | |
TVirtualPad (const char *name, const char *title, Double_t xlow, Double_t ylow, Double_t xup, Double_t yup, Color_t color=19, Short_t bordersize=4, Short_t bordermode=1) | |
VirtualPad constructor. More... | |
virtual | ~TVirtualPad () |
VirtualPad destructor. More... | |
virtual void | AbsCoordinates (Bool_t set)=0 |
virtual Double_t | AbsPixeltoX (Int_t px)=0 |
virtual Double_t | AbsPixeltoY (Int_t py)=0 |
virtual void | AddExec (const char *name, const char *command)=0 |
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="")=0 |
virtual TVirtualPad * | cd (Int_t subpadnumber=0)=0 |
virtual void | Clear (Option_t *option="")=0 |
virtual Int_t | Clip (Double_t *x, Double_t *y, Double_t xclipl, Double_t yclipb, Double_t xclipr, Double_t yclipt)=0 |
virtual void | Close (Option_t *option="")=0 |
virtual void | CloseToolTip (TObject *tip)=0 |
virtual void | CopyPixmap ()=0 |
virtual void | CopyPixmaps ()=0 |
virtual TObject * | CreateToolTip (const TBox *b, const char *text, Long_t delayms)=0 |
virtual void | DeleteExec (const char *name)=0 |
virtual void | DeleteToolTip (TObject *tip)=0 |
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)=0 |
virtual void | Draw (Option_t *option="")=0 |
Default Draw method for all objects. More... | |
virtual void | DrawClassObject (const TObject *obj, Option_t *option="")=0 |
virtual TH1F * | DrawFrame (Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, const char *title="")=0 |
virtual void | ExecuteEventAxis (Int_t event, Int_t px, Int_t py, TAxis *axis)=0 |
virtual Double_t | GetAbsHNDC () const =0 |
virtual Double_t | GetAbsWNDC () const =0 |
virtual Double_t | GetAbsXlowNDC () const =0 |
virtual Double_t | GetAbsYlowNDC () const =0 |
virtual Double_t | GetAspectRatio () const =0 |
virtual Short_t | GetBorderMode () const =0 |
virtual Short_t | GetBorderSize () const =0 |
virtual TCanvas * | GetCanvas () const =0 |
virtual Int_t | GetCanvasID () const =0 |
virtual TCanvasImp * | GetCanvasImp () const =0 |
virtual Int_t | GetEvent () const =0 |
virtual Int_t | GetEventX () const =0 |
virtual Int_t | GetEventY () const =0 |
virtual TFrame * | GetFrame ()=0 |
virtual Int_t | GetGLDevice ()=0 |
virtual Bool_t | GetGridx () const =0 |
virtual Bool_t | GetGridy () const =0 |
virtual Color_t | GetHighLightColor () const =0 |
virtual Double_t | GetHNDC () const =0 |
virtual TList * | GetListOfExecs () const =0 |
virtual TList * | GetListOfPrimitives () const =0 |
virtual Int_t | GetLogx () const =0 |
virtual Int_t | GetLogy () const =0 |
virtual Int_t | GetLogz () const =0 |
virtual TVirtualPad * | GetMother () const =0 |
virtual const char * | GetName () const =0 |
Returns name of object. More... | |
virtual Int_t | GetNumber () const =0 |
virtual TVirtualPad * | GetPad (Int_t subpadnumber) const =0 |
virtual Int_t | GetPadPaint () const =0 |
virtual void | GetPadPar (Double_t &xlow, Double_t &ylow, Double_t &xup, Double_t &yup)=0 |
virtual TObject * | GetPadPointer () const =0 |
virtual TVirtualPad * | GetPadSave () const =0 |
virtual TVirtualPadPainter * | GetPainter ()=0 |
virtual Double_t | GetPhi () const =0 |
virtual Int_t | GetPixmapID () const =0 |
virtual TObject * | GetPrimitive (const char *name) const =0 |
virtual void | GetRange (Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2)=0 |
virtual void | GetRangeAxis (Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax)=0 |
virtual TObject * | GetSelected () const =0 |
virtual TVirtualPad * | GetSelectedPad () const =0 |
virtual Double_t | GetTheta () const =0 |
virtual Int_t | GetTickx () const =0 |
virtual Int_t | GetTicky () const =0 |
virtual const char * | GetTitle () const =0 |
Returns title of object. More... | |
virtual Double_t | GetUxmax () const =0 |
virtual Double_t | GetUxmin () const =0 |
virtual Double_t | GetUymax () const =0 |
virtual Double_t | GetUymin () const =0 |
virtual TView * | GetView () const =0 |
virtual TObject * | GetView3D () const =0 |
virtual TVirtualViewer3D * | GetViewer3D (Option_t *type="")=0 |
virtual TVirtualPad * | GetVirtCanvas () const =0 |
virtual UInt_t | GetWh () const =0 |
virtual Double_t | GetWNDC () const =0 |
virtual UInt_t | GetWw () const =0 |
virtual Double_t | GetX1 () const =0 |
virtual Double_t | GetX2 () const =0 |
virtual Double_t | GetXlowNDC () const =0 |
virtual Double_t | GetY1 () const =0 |
virtual Double_t | GetY2 () const =0 |
virtual Double_t | GetYlowNDC () const =0 |
virtual Bool_t | HasCrosshair () const =0 |
virtual Bool_t | HasFixedAspectRatio () const =0 |
virtual Bool_t | HasViewer3D () const =0 |
virtual void | HighLight (Color_t col=kRed, Bool_t set=kTRUE)=0 |
virtual Int_t | IncrementPaletteColor (Int_t i, TString opt)=0 |
virtual Bool_t | IsBatch () const =0 |
Bool_t | IsBeingResized () const |
virtual Bool_t | IsEditable () const =0 |
virtual Bool_t | IsModified () const =0 |
virtual Bool_t | IsRetained () const =0 |
virtual Bool_t | IsVertical () const =0 |
virtual void | ls (Option_t *option="") const =0 |
The ls function lists the contents of a class on stdout. More... | |
virtual void | Modified (Bool_t flag=1)=0 |
virtual Int_t | NextPaletteColor ()=0 |
virtual Bool_t | OpaqueMoving () const =0 |
virtual Bool_t | OpaqueResizing () const =0 |
virtual Bool_t | PadInHighlightMode () const |
Should always return false, unless you can highlight selected object in pad. More... | |
virtual Bool_t | PadInSelectionMode () const |
Should always return false unless you have non-standard picking. More... | |
virtual Double_t | PadtoX (Double_t x) const =0 |
virtual Double_t | PadtoY (Double_t y) const =0 |
virtual void | Paint (Option_t *option="")=0 |
This method must be overridden if a class wants to paint itself. More... | |
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)=0 |
virtual void | PaintBox (Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t *option="")=0 |
virtual void | PaintFillArea (Int_t n, Double_t *x, Double_t *y, Option_t *option="")=0 |
virtual void | PaintFillArea (Int_t n, Float_t *x, Float_t *y, Option_t *option="")=0 |
virtual void | PaintFillAreaNDC (Int_t n, Double_t *x, Double_t *y, Option_t *option="")=0 |
virtual void | PaintLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2)=0 |
virtual void | PaintLine3D (Double_t *p1, Double_t *p2)=0 |
virtual void | PaintLine3D (Float_t *p1, Float_t *p2)=0 |
virtual void | PaintLineNDC (Double_t u1, Double_t v1, Double_t u2, Double_t v2)=0 |
virtual void | PaintModified ()=0 |
virtual void | PaintPadFrame (Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax)=0 |
virtual void | PaintPolyLine (Int_t n, Double_t *x, Double_t *y, Option_t *option="")=0 |
virtual void | PaintPolyLine (Int_t n, Float_t *x, Float_t *y, Option_t *option="")=0 |
virtual void | PaintPolyLine3D (Int_t n, Double_t *p)=0 |
virtual void | PaintPolyLineNDC (Int_t n, Double_t *x, Double_t *y, Option_t *option="")=0 |
virtual void | PaintPolyMarker (Int_t n, Double_t *x, Double_t *y, Option_t *option="")=0 |
virtual void | PaintPolyMarker (Int_t n, Float_t *x, Float_t *y, Option_t *option="")=0 |
virtual void | PaintText (Double_t x, Double_t y, const char *text)=0 |
virtual void | PaintText (Double_t x, Double_t y, const wchar_t *text)=0 |
virtual void | PaintTextNDC (Double_t u, Double_t v, const char *text)=0 |
virtual void | PaintTextNDC (Double_t u, Double_t v, const wchar_t *text)=0 |
virtual Double_t | PixeltoX (Int_t px)=0 |
virtual Double_t | PixeltoY (Int_t py)=0 |
virtual Bool_t | PlaceBox (TObject *o, Double_t w, Double_t h, Double_t &xl, Double_t &yb)=0 |
virtual void | Pop ()=0 |
Pop on object drawn in a pad to the top of the display list. More... | |
virtual void | PopTopLevelSelectable () |
Does nothing, unless you implement your own picking. More... | |
virtual void | Print (const char *filename, Option_t *option)=0 |
virtual void | Print (const char *filename="") const =0 |
Print function. More... | |
virtual void | PushSelectableObject (TObject *obj) |
Does nothing, unless you implement your own picking. More... | |
virtual void | PushTopLevelSelectable (TObject *top) |
Does nothing, unless you implement your own picking. More... | |
virtual void | Range (Double_t x1, Double_t y1, Double_t x2, Double_t y2)=0 |
virtual void | RangeAxis (Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax)=0 |
virtual void | RecursiveRemove (TObject *obj)=0 |
Recursively remove this object from a list. More... | |
virtual void | RedrawAxis (Option_t *option="")=0 |
virtual void | ReleaseViewer3D (Option_t *type="")=0 |
virtual void | ResetToolTip (TObject *tip)=0 |
virtual void | ResetView3D (TObject *view=0)=0 |
virtual void | ResizePad (Option_t *option="")=0 |
virtual void | SaveAs (const char *filename="", Option_t *option="") const =0 |
Save this object in the file specified by filename. More... | |
virtual void | SetAttFillPS (Color_t color, Style_t style)=0 |
virtual void | SetAttLinePS (Color_t color, Style_t style, Width_t lwidth)=0 |
virtual void | SetAttMarkerPS (Color_t color, Style_t style, Size_t msize)=0 |
virtual void | SetAttTextPS (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize)=0 |
virtual void | SetBatch (Bool_t batch=kTRUE)=0 |
virtual void | SetBorderMode (Short_t bordermode)=0 |
virtual void | SetBorderSize (Short_t bordersize)=0 |
virtual void | SetCanvas (TCanvas *c)=0 |
virtual void | SetCanvasSize (UInt_t ww, UInt_t wh)=0 |
virtual void | SetCopyGLDevice (Bool_t copy)=0 |
virtual void | SetCrosshair (Int_t crhair=1)=0 |
virtual void | SetCursor (ECursor cursor)=0 |
virtual void | SetDoubleBuffer (Int_t mode=1)=0 |
virtual void | SetEditable (Bool_t mode=kTRUE)=0 |
virtual void | SetFixedAspectRatio (Bool_t fixed=kTRUE)=0 |
virtual void | SetGrid (Int_t valuex=1, Int_t valuey=1)=0 |
virtual void | SetGridx (Int_t value=1)=0 |
virtual void | SetGridy (Int_t value=1)=0 |
virtual void | SetLogx (Int_t value=1)=0 |
virtual void | SetLogy (Int_t value=1)=0 |
virtual void | SetLogz (Int_t value=1)=0 |
virtual void | SetName (const char *name)=0 |
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)=0 |
virtual void | SetPad (Double_t xlow, Double_t ylow, Double_t xup, Double_t yup)=0 |
virtual void | SetPhi (Double_t phi=30)=0 |
virtual void | SetSelected (TObject *obj)=0 |
virtual void | SetTheta (Double_t theta=30)=0 |
virtual void | SetTicks (Int_t valuex=1, Int_t valuey=1)=0 |
virtual void | SetTickx (Int_t value=1)=0 |
virtual void | SetTicky (Int_t value=1)=0 |
virtual void | SetTitle (const char *title="")=0 |
virtual void | SetToolTipText (const char *text, Long_t delayms=1000)=0 |
virtual void | SetVertical (Bool_t vert=kTRUE)=0 |
virtual void | SetView (TView *view=0)=0 |
virtual void | SetViewer3D (TVirtualViewer3D *) |
virtual void | ShowGuidelines (TObject *object, const Int_t event, const char mode='i', const bool cling=true)=0 |
virtual void | UnZoomed () |
virtual void | Update ()=0 |
virtual Int_t | UtoAbsPixel (Double_t u) const =0 |
virtual Int_t | UtoPixel (Double_t u) const =0 |
virtual Int_t | VtoAbsPixel (Double_t v) const =0 |
virtual Int_t | VtoPixel (Double_t v) const =0 |
virtual TObject * | WaitPrimitive (const char *pname="", const char *emode="")=0 |
virtual Int_t | XtoAbsPixel (Double_t x) const =0 |
virtual Double_t | XtoPad (Double_t x) const =0 |
virtual Int_t | XtoPixel (Double_t x) const =0 |
virtual Int_t | YtoAbsPixel (Double_t y) const =0 |
virtual Double_t | YtoPad (Double_t y) const =0 |
virtual Int_t | YtoPixel (Double_t y) const =0 |
Public Member Functions inherited from TObject | |
TObject () | |
TObject constructor. More... | |
TObject (const TObject &object) | |
TObject copy ctor. More... | |
virtual | ~TObject () |
TObject destructor. More... | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. More... | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. More... | |
virtual void | Browse (TBrowser *b) |
Browse object. May be overridden for another default action. More... | |
ULong_t | CheckedHash () |
Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. More... | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. More... | |
virtual void | Clear (Option_t *="") |
virtual TObject * | Clone (const char *newname="") const |
Make a clone of an object using the Streamer facility. More... | |
virtual Int_t | Compare (const TObject *obj) const |
Compare abstract method. More... | |
virtual void | Copy (TObject &object) const |
Copy this to obj. More... | |
virtual void | Delete (Option_t *option="") |
Delete this object. More... | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. More... | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. More... | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. More... | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad) . More... | |
virtual void | Dump () const |
Dump contents of object on stdout. More... | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. More... | |
virtual void | Execute (const char *method, const char *params, Int_t *error=0) |
Execute method on this object with the given parameter string, e.g. More... | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
Execute method on this object with parameters stored in the TObjArray. More... | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). More... | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. More... | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. More... | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. More... | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. More... | |
virtual const char * | GetIconName () const |
Returns mime type name of object. More... | |
virtual const char * | GetName () const |
Returns name of object. More... | |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). More... | |
virtual Option_t * | GetOption () const |
virtual const char * | GetTitle () const |
Returns title of object. More... | |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. More... | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. More... | |
virtual ULong_t | Hash () const |
Return hash value for this object. More... | |
Bool_t | HasInconsistentHash () const |
Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. More... | |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. More... | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". More... | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. More... | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. More... | |
void | InvertBit (UInt_t f) |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). More... | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More... | |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
virtual Bool_t | IsSortable () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
virtual void | ls (Option_t *option="") const |
The ls function lists the contents of a class on stdout. More... | |
void | MayNotUse (const char *method) const |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More... | |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. More... | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. More... | |
void | operator delete (void *ptr) |
Operator delete. More... | |
void | operator delete[] (void *ptr) |
Operator delete []. More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. More... | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. More... | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. More... | |
virtual void | Print (Option_t *option="") const |
This method must be overridden when a class wants to print itself. More... | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. More... | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. More... | |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. More... | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". More... | |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. More... | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. More... | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. More... | |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. More... | |
R__ALWAYS_INLINE Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
virtual void | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More... | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. More... | |
Public Member Functions inherited from TAttLine | |
TAttLine () | |
AttLine default constructor. More... | |
TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth) | |
AttLine normal constructor. More... | |
virtual | ~TAttLine () |
AttLine destructor. More... | |
void | Copy (TAttLine &attline) const |
Copy this line attributes to a new TAttLine. More... | |
Int_t | DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2) |
Compute distance from point px,py to a line. More... | |
virtual Color_t | GetLineColor () const |
Return the line color. More... | |
virtual Style_t | GetLineStyle () const |
Return the line style. More... | |
virtual Width_t | GetLineWidth () const |
Return the line width. More... | |
virtual void | Modify () |
Change current line attributes if necessary. More... | |
virtual void | ResetAttLine (Option_t *option="") |
Reset this line attributes to default values. More... | |
virtual void | SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1) |
Save line attributes as C++ statement(s) on output stream out. More... | |
virtual void | SetLineAttributes () |
Invoke the DialogCanvas Line attributes. More... | |
virtual void | SetLineColor (Color_t lcolor) |
Set the line color. More... | |
virtual void | SetLineColorAlpha (Color_t lcolor, Float_t lalpha) |
Set a transparent line color. More... | |
virtual void | SetLineStyle (Style_t lstyle) |
Set the line style. More... | |
virtual void | SetLineWidth (Width_t lwidth) |
Set the line width. More... | |
Public Member Functions inherited from TAttFill | |
TAttFill () | |
AttFill default constructor. More... | |
TAttFill (Color_t fcolor, Style_t fstyle) | |
AttFill normal constructor. More... | |
virtual | ~TAttFill () |
AttFill destructor. More... | |
void | Copy (TAttFill &attfill) const |
Copy this fill attributes to a new TAttFill. More... | |
virtual Color_t | GetFillColor () const |
Return the fill area color. More... | |
virtual Style_t | GetFillStyle () const |
Return the fill area style. More... | |
virtual Bool_t | IsTransparent () const |
virtual void | Modify () |
Change current fill area attributes if necessary. More... | |
virtual void | ResetAttFill (Option_t *option="") |
Reset this fill attributes to default values. More... | |
virtual void | SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001) |
Save fill attributes as C++ statement(s) on output stream out. More... | |
virtual void | SetFillAttributes () |
Invoke the DialogCanvas Fill attributes. More... | |
virtual void | SetFillColor (Color_t fcolor) |
Set the fill area color. More... | |
virtual void | SetFillColorAlpha (Color_t fcolor, Float_t falpha) |
Set a transparent fill color. More... | |
virtual void | SetFillStyle (Style_t fstyle) |
Set the fill area style. More... | |
Public Member Functions inherited from TAttPad | |
TAttPad () | |
Constructor. More... | |
virtual | ~TAttPad () |
Destructor. More... | |
virtual void | Copy (TAttPad &attpad) const |
copy function More... | |
Float_t | GetAfile () const |
Float_t | GetAstat () const |
Float_t | GetBottomMargin () const |
Int_t | GetFrameBorderMode () const |
Width_t | GetFrameBorderSize () const |
Color_t | GetFrameFillColor () const |
Style_t | GetFrameFillStyle () const |
Color_t | GetFrameLineColor () const |
Style_t | GetFrameLineStyle () const |
Width_t | GetFrameLineWidth () const |
Float_t | GetLeftMargin () const |
Float_t | GetRightMargin () const |
Float_t | GetTopMargin () const |
Float_t | GetXfile () const |
Float_t | GetXstat () const |
Float_t | GetYfile () const |
Float_t | GetYstat () const |
virtual void | Print (Option_t *option="") const |
Print function. More... | |
virtual void | ResetAttPad (Option_t *option="") |
Reset pad attributes. More... | |
virtual void | SetAfile (Float_t afile) |
virtual void | SetAstat (Float_t astat) |
virtual void | SetBottomMargin (Float_t bottommargin) |
Set Pad bottom margin in fraction of the pad height. More... | |
void | SetFrameBorderMode (Int_t mode=1) |
void | SetFrameBorderSize (Width_t size=1) |
void | SetFrameFillColor (Color_t color=1) |
void | SetFrameFillStyle (Style_t styl=0) |
void | SetFrameLineColor (Color_t color=1) |
void | SetFrameLineStyle (Style_t styl=0) |
void | SetFrameLineWidth (Width_t width=1) |
virtual void | SetLeftMargin (Float_t leftmargin) |
Set Pad left margin in fraction of the pad width. More... | |
virtual void | SetMargin (Float_t left, Float_t right, Float_t bottom, Float_t top) |
Set all margins. More... | |
virtual void | SetRightMargin (Float_t rightmargin) |
Set Pad right margin in fraction of the pad width. More... | |
virtual void | SetTopMargin (Float_t topmargin) |
Set Pad top margin in fraction of the pad height. More... | |
virtual void | SetXfile (Float_t xfile) |
virtual void | SetXstat (Float_t xstat) |
virtual void | SetYfile (Float_t yfile) |
virtual void | SetYstat (Float_t ystat) |
Public Member Functions inherited from TQObject | |
TQObject () | |
TQObject Constructor. More... | |
virtual | ~TQObject () |
TQObject Destructor. More... | |
Bool_t | AreSignalsBlocked () const |
Bool_t | BlockSignals (Bool_t b) |
virtual void | ChangedBy (const char *method) |
void | CollectClassSignalLists (TList &list, TClass *cls) |
Collect class signal lists from class cls and all its base-classes. More... | |
Bool_t | Connect (const char *signal, const char *receiver_class, void *receiver, const char *slot) |
Non-static method is used to connect from the signal of this object to the receiver slot. More... | |
virtual void | Connected (const char *) |
virtual void | Destroyed () |
Bool_t | Disconnect (const char *signal=0, void *receiver=0, const char *slot=0) |
Disconnects signal of this object from slot of receiver. More... | |
virtual void | Disconnected (const char *) |
void | Emit (const char *signal) |
Acitvate signal without args. More... | |
template<typename T > | |
void | Emit (const char *signal, const T &arg) |
Activate signal with single parameter. More... | |
template<typename... T> | |
void | EmitVA (const char *signal_name, Int_t, const T &... params) |
Emit a signal with a varying number of arguments. More... | |
TList * | GetListOfClassSignals () const |
Returns pointer to list of signals of this class. More... | |
TList * | GetListOfConnections () const |
TList * | GetListOfSignals () const |
virtual Bool_t | HasConnection (const char *signal_name) const |
Return true if there is any object connected to this signal. More... | |
virtual void | HighPriority (const char *signal_name, const char *slot_name=0) |
virtual void | LowPriority (const char *signal_name, const char *slot_name=0) |
virtual void | Message (const char *msg) |
virtual Int_t | NumberOfConnections () const |
Return number of connections for this object. More... | |
virtual Int_t | NumberOfSignals () const |
Return number of signals for this object. More... | |
Public Member Functions inherited from TAttBBox2D | |
virtual | ~TAttBBox2D () |
virtual Rectangle_t | GetBBox ()=0 |
virtual TPoint | GetBBoxCenter ()=0 |
virtual void | SetBBoxCenter (const TPoint &p)=0 |
virtual void | SetBBoxCenterX (const Int_t x)=0 |
virtual void | SetBBoxCenterY (const Int_t y)=0 |
virtual void | SetBBoxX1 (const Int_t x)=0 |
virtual void | SetBBoxX2 (const Int_t x)=0 |
virtual void | SetBBoxY1 (const Int_t y)=0 |
virtual void | SetBBoxY2 (const Int_t y)=0 |
Static Public Member Functions | |
static void | DrawColorTable () |
Static function to Display Color Table in a pad. More... | |
static Int_t | GetMaxPickDistance () |
Static function (see also TPad::SetMaxPickDistance) More... | |
static void | SetMaxPickDistance (Int_t maxPick=5) |
static function to set the maximum Pick Distance fgMaxPickDistance This parameter is used in TPad::Pick to select an object if its DistancetoPrimitive returns a value < fgMaxPickDistance The default value is 5 pixels. More... | |
Static Public Member Functions inherited from TVirtualPad | |
static TVirtualPad *& | Pad () |
Return the current pad for the current thread. More... | |
Static Public Member Functions inherited from TObject | |
static Long_t | GetDtorOnly () |
Return destructor only flag. More... | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. More... | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. More... | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. More... | |
Static Public Member Functions inherited from TQObject | |
static Bool_t | AreAllSignalsBlocked () |
Returns true if all signals are blocked. More... | |
static Bool_t | BlockAllSignals (Bool_t b) |
Block or unblock all signals. Returns the previous block status. More... | |
static Bool_t | Connect (const char *sender_class, const char *signal, const char *receiver_class, void *receiver, const char *slot) |
This method allows to make a connection from any object of the same class to a single slot. More... | |
static Bool_t | Connect (TQObject *sender, const char *signal, const char *receiver_class, void *receiver, const char *slot) |
Create connection between sender and receiver. More... | |
static Bool_t | Disconnect (const char *class_name, const char *signal, void *receiver=0, const char *slot=0) |
Disconnects "class signal". More... | |
static Bool_t | Disconnect (TQObject *sender, const char *signal=0, void *receiver=0, const char *slot=0) |
Disconnects signal in object sender from slot_method in object receiver. More... | |
Protected Member Functions | |
void | DestroyExternalViewer3D () |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Compute distance from point px,py to a box. More... | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to one event. More... | |
virtual void | HideToolTip (Int_t event) |
Hide tool tip depending on the event type. More... | |
void | PaintBorder (Color_t color, Bool_t tops) |
Paint the pad border. More... | |
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. More... | |
void | PaintDate () |
Paint the current date and time if the option date is on. More... | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save primitives in this pad on the C++ source file out. More... | |
virtual void | SetBatch (Bool_t batch=kTRUE) |
Set pad in batch mode. More... | |
Protected Member Functions inherited from TVirtualPad | |
virtual void * | GetSender () |
true when resizing the pad More... | |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). More... | |
void | MakeZombie () |
Protected Member Functions inherited from TQObject | |
virtual void * | GetSender () |
virtual const char * | GetSenderClassName () const |
Protected Attributes | |
Bool_t | fAbsCoord |
Use absolute coordinates. More... | |
Double_t | fAbsHNDC |
Absolute Height of pad along Y in NDC. More... | |
Double_t | fAbsPixeltoXk |
Conversion coefficient for absolute pixel to X World. More... | |
Double_t | fAbsPixeltoYk |
Conversion coefficient for absolute pixel to Y World. More... | |
Double_t | fAbsWNDC |
Absolute Width of pad along X in NDC. More... | |
Double_t | fAbsXlowNDC |
Absolute X top left corner of pad in NDC [0,1]. More... | |
Double_t | fAbsYlowNDC |
Absolute Y top left corner of pad in NDC [0,1]. More... | |
Double_t | fAspectRatio |
ratio of w/h in case of fixed ratio More... | |
Short_t | fBorderMode |
Bordermode (-1=down, 0 = no border, 1=up) More... | |
Short_t | fBorderSize |
pad bordersize in pixels More... | |
TCanvas * | fCanvas |
! Pointer to mother canvas More... | |
Int_t | fCGnx |
! Size of the collide grid along x More... | |
Int_t | fCGny |
! Size of the collide grid along y More... | |
Bool_t * | fCollideGrid |
! Grid used to find empty space when adding a box (Legend) in a pad More... | |
Bool_t | fCopyGLDevice |
! More... | |
Int_t | fCrosshair |
Crosshair type (0 if no crosshair requested) More... | |
Int_t | fCrosshairPos |
Position of crosshair. More... | |
Bool_t | fEditable |
True if canvas is editable. More... | |
Bool_t | fEmbeddedGL |
! More... | |
TList * | fExecs |
List of commands to be executed when a pad event occurs. More... | |
Bool_t | fFixedAspectRatio |
True if fixed aspect ratio. More... | |
TFrame * | fFrame |
! Pointer to 2-D frame (if one exists) More... | |
Int_t | fGLDevice |
! OpenGL off-screen pixmap identifier More... | |
Bool_t | fGridx |
Set to true if grid along X. More... | |
Bool_t | fGridy |
Set to true if grid along Y. More... | |
Double_t | fHNDC |
Height of pad along Y in Normalized Coordinates (NDC) More... | |
Int_t | fLogx |
(=0 if X linear scale, =1 if log scale) More... | |
Int_t | fLogy |
(=0 if Y linear scale, =1 if log scale) More... | |
Int_t | fLogz |
(=0 if Z linear scale, =1 if log scale) More... | |
Bool_t | fModified |
Set to true when pad is modified. More... | |
TPad * | fMother |
! pointer to mother of the list More... | |
TString | fName |
Pad name. More... | |
Int_t | fNextPaletteColor |
Next automatic color. More... | |
Int_t | fNumber |
pad number identifier More... | |
Int_t | fNumPaletteColor |
Number of objects with an automatic color. More... | |
Int_t | fPadPaint |
Set to 1 while painting the pad. More... | |
TObject * | fPadPointer |
! free pointer More... | |
TObject * | fPadView3D |
! 3D View of this TPad More... | |
Double_t | fPhi |
phi angle to view as lego/surface More... | |
Double_t | fPixeltoX |
xworld = fPixeltoXk + fPixeltoX*xpixel More... | |
Double_t | fPixeltoXk |
Conversion coefficient for pixel to X World. More... | |
Double_t | fPixeltoY |
yworld = fPixeltoYk + fPixeltoY*ypixel More... | |
Double_t | fPixeltoYk |
Conversion coefficient for pixel to Y World. More... | |
Int_t | fPixmapID |
! Off-screen pixmap identifier More... | |
TList * | fPrimitives |
->List of primitives (subpads) More... | |
Double_t | fTheta |
theta angle to view as lego/surface More... | |
Int_t | fTickx |
Set to 1 if tick marks along X. More... | |
Int_t | fTicky |
Set to 1 if tick marks along Y. More... | |
TString | fTitle |
Pad title. More... | |
Double_t | fUtoAbsPixelk |
Conversion coefficient for U NDC to absolute pixel. More... | |
Double_t | fUtoPixel |
xpixel = fUtoPixelk + fUtoPixel*undc More... | |
Double_t | fUtoPixelk |
Conversion coefficient for U NDC to pixel. More... | |
Double_t | fUxmax |
Maximum value on the X axis. More... | |
Double_t | fUxmin |
Minimum value on the X axis. More... | |
Double_t | fUymax |
Maximum value on the Y axis. More... | |
Double_t | fUymin |
Minimum value on the Y axis. More... | |
TView * | fView |
! Pointer to 3-D view (if one exists) More... | |
TVirtualViewer3D * | fViewer3D |
! Current 3D viewer More... | |
Double_t | fVtoAbsPixelk |
Conversion coefficient for V NDC to absolute pixel. More... | |
Double_t | fVtoPixel |
ypixel = fVtoPixelk + fVtoPixel*vndc More... | |
Double_t | fVtoPixelk |
Conversion coefficient for V NDC to pixel. More... | |
Double_t | fWNDC |
Width of pad along X in Normalized Coordinates (NDC) More... | |
Double_t | fX1 |
X of lower X coordinate. More... | |
Double_t | fX2 |
X of upper X coordinate. More... | |
Double_t | fXlowNDC |
X bottom left corner of pad in NDC [0,1]. More... | |
Double_t | fXtoAbsPixelk |
Conversion coefficient for X World to absolute pixel. More... | |
Double_t | fXtoPixel |
xpixel = fXtoPixelk + fXtoPixel*xworld More... | |
Double_t | fXtoPixelk |
Conversion coefficient for X World to pixel. More... | |
Double_t | fXUpNDC |
Double_t | fY1 |
Y of lower Y coordinate. More... | |
Double_t | fY2 |
Y of upper Y coordinate. More... | |
Double_t | fYlowNDC |
Y bottom left corner of pad in NDC [0,1]. More... | |
Double_t | fYtoAbsPixelk |
Conversion coefficient for Y World to absolute pixel. More... | |
Double_t | fYtoPixel |
ypixel = fYtoPixelk + fYtoPixel*yworld More... | |
Double_t | fYtoPixelk |
Conversion coefficient for Y World to pixel. More... | |
Double_t | fYUpNDC |
Protected Attributes inherited from TVirtualPad | |
Bool_t | fResizing |
Protected Attributes inherited from TAttLine | |
Color_t | fLineColor |
Line color. More... | |
Style_t | fLineStyle |
Line style. More... | |
Width_t | fLineWidth |
Line width. More... | |
Protected Attributes inherited from TAttFill | |
Color_t | fFillColor |
Fill area color. More... | |
Style_t | fFillStyle |
Fill area style. More... | |
Protected Attributes inherited from TAttPad | |
Float_t | fAfile |
Alignment for the file name. More... | |
Float_t | fAstat |
Alignment for the statistics. More... | |
Float_t | fBottomMargin |
BottomMargin. More... | |
Int_t | fFrameBorderMode |
Pad frame border mode. More... | |
Width_t | fFrameBorderSize |
Pad frame border size. More... | |
Color_t | fFrameFillColor |
Pad frame fill color. More... | |
Style_t | fFrameFillStyle |
Pad frame fill style. More... | |
Color_t | fFrameLineColor |
Pad frame line color. More... | |
Style_t | fFrameLineStyle |
Pad frame line style. More... | |
Width_t | fFrameLineWidth |
Pad frame line width. More... | |
Float_t | fLeftMargin |
LeftMargin. More... | |
Float_t | fRightMargin |
RightMargin. More... | |
Float_t | fTopMargin |
TopMargin. More... | |
Float_t | fXfile |
X position where to draw the file name. More... | |
Float_t | fXstat |
X position where to draw the statistics. More... | |
Float_t | fYfile |
Y position where to draw the file name. More... | |
Float_t | fYstat |
Y position where to draw the statistics. More... | |
Protected Attributes inherited from TQObject | |
TList * | fListOfConnections |
list of signals from this object More... | |
TList * | fListOfSignals |
Bool_t | fSignalsBlocked |
list of connections to this object More... | |
Static Protected Attributes | |
static Int_t | fgMaxPickDistance = 5 |
Maximum Pick Distance. More... | |
Static Protected Attributes inherited from TQObject | |
static Bool_t | fgAllSignalsBlocked = kFALSE |
flag used for suppression of signals More... | |
Private Member Functions | |
TPad (const TPad &pad) | |
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. More... | |
void | CopyBackgroundPixmap (Int_t x, Int_t y) |
Copy pixmap of this pad as background of the current pad. More... | |
void | CopyBackgroundPixmaps (TPad *start, TPad *stop, Int_t x, Int_t y) |
Copy pixmaps of pads laying below pad "stop" into pad "stop". More... | |
void | DrawDist (Rectangle_t aBBox, Rectangle_t bBBox, char mode) |
Draw Arrows to indicated equal distances of Objects with given BBoxes. More... | |
void | FillCollideGrid (TObject *o) |
Initialise the grid used to find empty space when adding a box (Legend) in a pad. More... | |
void | FillCollideGridTBox (TObject *o) |
void | FillCollideGridTFrame (TObject *o) |
void | FillCollideGridTGraph (TObject *o) |
void | FillCollideGridTH1 (TObject *o) |
void | LineNotFree (Int_t x1, Int_t x2, Int_t y1, Int_t y2) |
Mark as "not free" the cells along a line. More... | |
TPad & | operator= (const TPad &rhs) |
Private Attributes | |
TObject * | fTip |
! tool tip associated with box More... | |
Additional Inherited Members | |
Static Protected Member Functions inherited from TQObject | |
static Int_t | CheckConnectArgs (TQObject *sender, TClass *sender_class, const char *signal, TClass *receiver_class, const char *slot) |
Checking of consitency of sender/receiver methods/arguments. More... | |
static TString | CompressName (const char *method_name) |
Removes "const" words and blanks from full (with prototype) method name and resolve any typedefs in the method signature. More... | |
static Bool_t | ConnectToClass (const char *sender_class, const char *signal, TClass *receiver_class, void *receiver, const char *slot) |
This method allows to make connection from any object of the same class to the receiver object. More... | |
static Bool_t | ConnectToClass (TQObject *sender, const char *signal, TClass *receiver_class, void *receiver, const char *slot) |
Create connection between sender and receiver. More... | |
#include <TPad.h>
anonymous enum |
|
private |
TPad::TPad | ( | const char * | name, |
const char * | title, | ||
Double_t | xlow, | ||
Double_t | ylow, | ||
Double_t | xup, | ||
Double_t | yup, | ||
Color_t | color = -1 , |
||
Short_t | bordersize = -1 , |
||
Short_t | bordermode = -2 |
||
) |
Pad constructor.
A pad is a linked list of primitives. A pad is contained in a canvas. It may contain other pads. A pad has attributes. When a pad is created, the attributes defined in the current style are copied to the pad attributes.
[in] | name | pad name |
[in] | title | pad title |
[in] | xlow | [0,1] is the position of the bottom left point of the pad expressed in the mother pad reference system |
[in] | ylow | [0,1] is the Y position of this point. |
[in] | xup | [0,1] is the x position of the top right point of the pad expressed in the mother pad reference system |
[in] | yup | [0,1] is the Y position of this point. |
[in] | color | pad color |
[in] | bordersize | border size in pixels |
[in] | bordermode | border mode
|
Implements TVirtualPad.
Implements TVirtualPad.
Implements TVirtualPad.
|
virtual |
Add a new TExec object to the list of Execs.
When an event occurs in the pad (mouse click, etc) the list of C++ commands in the list of Execs are executed via TPad::AutoExec.
When a pad event occurs (mouse move, click, etc) all the commands contained in the fExecs list are executed in the order found in the list.
This facility is activated by default. It can be deactivated by using the canvas "Option" menu.
The following examples of TExec commands are provided in the tutorials: macros exec1.C and exec2.C.
At this point you can use the mouse to click on the contour of the histogram hpx. When the mouse is clicked, the bin number and its contents are printed.
When moving the mouse in the canvas, a second canvas shows the projection along X of the bin corresponding to the Y position of the mouse. The resulting histogram is fitted with a gaussian. A "dynamic" line shows the current bin position in Y. This more elaborated example can be used as a starting point to develop more powerful interactive applications exploiting the C++ interpreter as a development engine.
Implements TVirtualPad.
|
virtual |
|
virtual |
Build a legend from the graphical objects in the pad.
A simple method to build automatically a TLegend from the primitives in a TPad.
Only those deriving from TAttLine, TAttMarker and TAttFill are added, excluding TPave and TFrame derived classes.
[in] | x1,y1,x2,y2 | The TLegend coordinates |
[in] | title | The legend title. By default it is " " |
[in] | option | The TLegend option |
The caller program owns the returned TLegend.
If the pad contains some TMultiGraph or THStack the individual graphs or histograms in them are added to the TLegend.
If x1
is equal to x2
and y1
is equal to y2
the legend will be automatically placed to avoid overlapping with the existing primitives already displayed. x1
is considered as the width of the legend and y1
the height. By default the legend is automatically placed with width = x1
= x2
= 0.3 and height = y1
= y2
= 0.21.
Implements TVirtualPad.
|
virtual |
Set Current pad.
When a canvas/pad is divided via TPad::Divide, one can directly set the current path to one of the subdivisions. See TPad::Divide for the convention to number sub-pads.
Returns the new current pad, or 0 in case of failure.
For example:
To set the current pad to the bottom right pad, do
Note1: c1.cd() is equivalent to c1.cd(0) and sets the current pad to c1 itself.
Note2: after a statement like c1.cd(6), the global variable gPad points to the current pad. One can use gPad to set attributes of the current pad.
Note3: One can get a pointer to one of the sub-pads of pad with: TPad subpad = (TPad)pad->GetPad(subpadnumber);
Implements TVirtualPad.
Delete all pad primitives.
If the bit kClearAfterCR has been set for this pad, the Clear function will execute only after having pressed a CarriageReturn Set the bit with mypad->SetBit(TPad::kClearAfterCR)
Implements TVirtualPad.
|
virtual |
Clipping routine: Cohen Sutherland algorithm.
[in] | x[],y[] | Segment coordinates (2 points) |
[in] | xclipl,yclipb,xclipr,yclipt | Clipping boundary |
[out] | x[],y[] | New segment coordinates(2 points) |
Implements TVirtualPad.
|
virtual |
Clipping routine: Cohen Sutherland algorithm.
[in] | x[],y[] | Segment coordinates (2 points) |
[in] | xclipl,yclipb,xclipr,yclipt | Clipping boundary |
[out] | x[],y[] | New segment coordinates( 2 points) |
|
virtual |
Compute the endpoint codes for TPad::Clip.
|
virtual |
Clip polygon using the Sutherland-Hodgman algorithm.
[in] | n | Number of points in the polygon to be clipped |
[in] | x[n],y[n] | Polygon do be clipped vertices |
[in] | xclipl,yclipb,xclipr,yclipt | Clipping boundary |
[out] | nn | Number of points in xc and yc |
[out] | xc,yc | Clipped polygon vertices. The Int_t returned by this function is the number of points in the clipped polygon. These vectors must be allocated by the calling function. A size of 2*n for each is enough. |
Sutherland and Hodgman's polygon-clipping algorithm uses a divide-and-conquer strategy: It solves a series of simple and identical problems that, when combined, solve the overall problem. The simple problem is to clip a polygon against a single infinite clip edge. Four clip edges, each defining one boundary of the clip rectangle, successively clip a polygon against a clip rectangle.
Steps of Sutherland-Hodgman's polygon-clipping algorithm:
The clip boundary determines a visible and invisible region. The edges from vertex i to vertex i+1 can be one of four types:
Delete all primitives in pad and pad itself.
Pad cannot be used anymore after this call. Emits signal "Closed()".
Implements TVirtualPad.
Reimplemented in TCanvas.
|
inlinevirtual |
|
virtual |
Copy the pixmap of the pad to the canvas.
Implements TVirtualPad.
|
virtual |
Create a tool tip and return its pointer.
Implements TVirtualPad.
|
virtual |
Remove TExec name from the list of Execs.
Implements TVirtualPad.
|
protected |
|
virtual |
Automatic pad generation by division.
Pads are automatically named canvasname_n
where n
is the division number starting from top left pad.
Example if canvasname=c1 , nx=2, ny=3:
Once a pad is divided into sub-pads, one can set the current pad to a subpad with a given division number as illustrated above with TPad::cd(subpad_number).
For example, to set the current pad to c1_4, one can do:
Note1: c1.cd() is equivalent to c1.cd(0) and sets the current pad to c1 itself.
Note2: after a statement like c1.cd(6), the global variable gPad points to the current pad. One can use gPad to set attributes of the current pad.
Note3: in case xmargin <=0 and ymargin <= 0, there is no space between pads. The current pad margins are recomputed to optimize the layout.
Implements TVirtualPad.
Reimplemented in TButton, TDialogCanvas, and TInspectCanvas.
Draw Pad in Current pad (re-parent pad if necessary).
Implements TVirtualPad.
Draw class inheritance tree of the class to which obj belongs.
If a class B inherits from a class A, description of B is drawn on the right side of description of A.
Member functions overridden by B are shown in class A with a blue line crossing-out the corresponding member function.
Implements TVirtualPad.
void TPad::DrawCollideGrid | ( | ) |
|
static |
|
virtual |
Function called to draw a crosshair in the canvas.
Example:
When moving the mouse in the canvas, a crosshair is drawn
|
private |
|
virtual |
Draw an empty pad frame with X and Y axis.
[in] | xmin | X axis lower limit |
[in] | xmax | X axis upper limit |
[in] | ymin | Y axis lower limit |
[in] | ymax | Y axis upper limit |
[in] | title | Pad title.If title is of the form "stringt;stringx;stringy" the pad title is set to stringt, the x axis title to stringx, the y axis title to stringy. |
Implements TVirtualPad.
Execute action corresponding to one event.
This member function is called when a TPad object is clicked.
If the mouse is clicked in one of the 4 corners of the pad (pA,pB,pC,pD) the pad is resized with the rubber rectangle.
If the mouse is clicked inside the pad, the pad is moved.
If the mouse is clicked on the 4 edges (pL,pR,pTop,pBot), the pad is scaled parallel to this edge.
Note that this function duplicates on purpose the functionality already implemented in TBox::ExecuteEvent. If somebody modifies this function, may be similar changes should also be applied to TBox::ExecuteEvent.
Reimplemented from TObject.
Reimplemented in TButton, TCanvas, and TGroupButton.
Execute action corresponding to one event for a TAxis object (called by TAxis::ExecuteEvent.) This member function is called when an axis is clicked with the locator.
The axis range is set between the position where the mouse is pressed and the position where it is released.
If the mouse position is outside the current axis range when it is released the axis is unzoomed with the corresponding proportions.
Note that the mouse does not need to be in the pad or even canvas when it is released.
Implements TVirtualPad.
|
virtual |
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
virtual |
Return the bounding Box of the Pad.
Implements TAttBBox2D.
|
virtual |
Return the center of the Pad as TPoint in pixels.
Implements TAttBBox2D.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
virtual |
|
virtual |
Int_t TPad::GetCrosshair | ( | ) | const |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
virtual |
|
inlinevirtual |
Get height of pad along Y in Normalized Coordinates (NDC)
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
static |
Static function (see also TPad::SetMaxPickDistance)
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Returns name of object.
This default method returns the class name. Classes that give objects a name should override this method.
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
virtual |
Get a pointer to subpadnumber of this pad.
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
Return lower and upper bounds of the pad in NDC coordinates.
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
virtual |
|
virtual |
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
virtual |
Return pad world coordinates range.
Implements TVirtualPad.
|
virtual |
Return pad axis coordinates range.
Implements TVirtualPad.
|
virtual |
|
virtual |
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Returns title of object.
This default method returns the class title (i.e. description). Classes that give objects a title should override this method.
Implements TVirtualPad.
|
inlinevirtual |
Returns the maximum x-coordinate value visible on the pad. If log axis the returned value is in decades.
Implements TVirtualPad.
|
inlinevirtual |
Returns the minimum x-coordinate value visible on the pad. If log axis the returned value is in decades.
Implements TVirtualPad.
|
inlinevirtual |
Returns the maximum y-coordinate value visible on the pad. If log axis the returned value is in decades.
Implements TVirtualPad.
|
inlinevirtual |
Returns the minimum y-coordinate value visible on the pad. If log axis the returned value is in decades.
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
virtual |
Create/obtain handle to 3D viewer.
Valid types are:
Implements TVirtualPad.
Reimplemented in TEvePad.
|
virtual |
|
virtual |
|
inlinevirtual |
Get width of pad along X in Normalized Coordinates (NDC)
Implements TVirtualPad.
|
virtual |
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
virtual |
Return kTRUE if the crosshair has been activated (via SetCrosshair).
Implements TVirtualPad.
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
Return hash value for this object.
Note: If this routine is overloaded in a derived class, this derived class should also add
Otherwise, when RecursiveRemove is called (by ~TObject or example) for this type of object, the transversal of THashList and THashTable containers will will have to be done without call Hash (and hence be linear rather than logarithmic complexity). You will also see warnings like
Reimplemented from TObject.
|
inlinevirtual |
Implements TVirtualPad.
Increment (i==1) or set (i>1) the number of autocolor in the pad.
Implements TVirtualPad.
|
virtual |
|
inlinevirtual |
Implements TVirtualPad.
|
inlinevirtual |
|
inlinevirtual |
Implements TVirtualPad.
|
virtual |
|
inlinevirtual |
Implements TVirtualPad.
Implements TVirtualPad.
|
virtual |
Get the next autocolor in the pad.
Implements TVirtualPad.
|
virtual |
|
virtual |
|
protectedvirtual |
Paint a frame border with Postscript.
Implements TVirtualPad.
|
virtual |
Paint box in CurrentPad World coordinates.
Implements TVirtualPad.
|
protected |
Paint fill area in CurrentPad World coordinates.
Implements TVirtualPad.
Implements TVirtualPad.
This function paints hatched fill area according to the FillStyle value The convention for the Hatch is the following:
`FillStyle = 3ijk`
Paint fill area in CurrentPad NDC coordinates.
Implements TVirtualPad.
Paint line in CurrentPad World coordinates.
Implements TVirtualPad.
Paint line in normalized coordinates.
Implements TVirtualPad.
|
virtual |
Traverse pad hierarchy and (re)paint only modified pads.
Implements TVirtualPad.
Reimplemented in TButton.
Paint polyline in CurrentPad World coordinates.
If option[0] == 'C' no clipping
Implements TVirtualPad.
Paint polyline in CurrentPad World coordinates.
Implements TVirtualPad.
Paint 3-D polyline in the CurrentPad.
Implements TVirtualPad.
Paint polyline in CurrentPad NDC coordinates.
Implements TVirtualPad.
Paint polymarker in CurrentPad World coordinates.
Implements TVirtualPad.
Paint polymarker in CurrentPad World coordinates.
Implements TVirtualPad.
Paint text in CurrentPad World coordinates.
Implements TVirtualPad.
Paint text in CurrentPad World coordinates.
Implements TVirtualPad.
Paint text in CurrentPad NDC coordinates.
Implements TVirtualPad.
Paint text in CurrentPad NDC coordinates.
Implements TVirtualPad.
Search for an object at pixel position px,py.
Check if point is in this pad.
If yes, check if it is in one of the sub-pads
If found in the pad, compute closest distance of approach to each primitive.
If one distance of approach is found to be within the limit Distancemaximum the corresponding primitive is selected and the routine returns.
Reimplemented in TCanvas.
Implements TVirtualPad.
Implements TVirtualPad.
Place a box in NDC space.
true
if the box could be placed, false
if not.[in] | w | box width to be placed |
[in] | h | box height to be placed |
[out] | xl | x position of the bottom left corner of the placed box |
[out] | yb | y position of the bottom left corner of the placed box |
Implements TVirtualPad.
|
virtual |
Save Canvas contents in a file in one of various formats.
option can be:
"root" a ROOT binary file
filename = 0 - filename is defined by the GetName and its extension is defined with the option
When Postscript output is selected (ps, eps), the canvas is saved to filename.ps or filename.eps. The aspect ratio of the canvas is preserved on the Postscript file. When the "ps" option is selected, the Postscript page will be landscape format if the canvas is in landscape format, otherwise portrait format is selected.
The physical size of the Postscript page is the one selected in the current style. This size can be modified via TStyle::SetPaperSize.
Examples:
where TStyle::kA4 and TStyle::kUSLetter are defined in the enum EPaperSize in TStyle.h
An alternative is to call:
The above numbers take into account some margins and are in centimeters.
The "Preview" option allows to generate a preview (in the TIFF format) within the Encapsulated Postscript file. This preview can be used by programs like MSWord to visualize the picture on screen. The "Preview" option relies on the "epstool" command (http://www.cs.wisc.edu/~ghost/gsview/epstool.htm).
Example:
The "EmbedFonts" option allows to embed the fonts used in a PDF file inside that file. This option relies on the "gs" command (https://ghostscript.com).
Example:
Example:
In the previous example replacing "ps" by "pdf" will create a multi-pages PDF file.
Note that the following sequence writes the canvas to "c1.ps" and closes the ps file.:
The TCanvas::Print("file.ps(") mechanism is very useful, but it can be a little inconvenient to have the action of opening/closing a file being atomic with printing a page. Particularly if pages are being generated in some loop one needs to detect the special cases of first and last page and then munge the argument to Print() accordingly.
The "[" and "]" can be used instead of "(" and ")".
Example:
As before, the same macro is valid for PDF files.
It is possible to print a canvas into an animated GIF file by specifying the file name as "myfile.gif+" or "myfile.gif+NN", where NN*10ms is delay between the subimages' display. If NN is omitted the delay between subimages is zero. Each picture is added in the animation thanks to a loop similar to the following one:
The delay between each frame must be specified in each Print() statement. If the file "myfile.gif" already exists, the new frame are appended at the end of the file. To avoid this, delete it first with gSystem->Unlink(myfile.gif); If you want the gif file to repeat or loop forever, check TASImage::WriteImage documentation
Implements TVirtualPad.
|
virtual |
Save Pad contents in a file in one of various formats.
See comments in TPad::SaveAs or the TPad::Print function below
Implements TVirtualPad.
Set world coordinate system for the pad.
Emits signal "RangeChanged()", in the slot get the range via GetRange().
Implements TVirtualPad.
Reimplemented in TButton, and TDialogCanvas.
Set axis coordinate system for the pad.
The axis coordinate system is a subset of the world coordinate system xmin,ymin is the origin of the current coordinate system, xmax is the end of the X axis, ymax is the end of the Y axis. By default a margin of 10 per cent is left on all sides of the pad Emits signal "RangeAxisChanged()", in the slot get the axis range via GetRangeAxis().
Implements TVirtualPad.
Emit RecordLatex() signal.
Emit RecordPave() signal.
Recursively remove object from a pad and its sub-pads.
Implements TVirtualPad.
Reimplemented in TDialogCanvas, and TInspectCanvas.
Redraw the frame axis Redrawing axis may be necessary in case of superimposed histograms when one or more histograms have a fill color Instead of calling this function, it may be more convenient to call directly h1->Draw("sameaxis") where h1 is the pointer to the first histogram drawn in the pad.
By default, if the pad has the options gridx or/and gridy activated, the grid is not drawn by this function. if option="g" is specified, this will force the drawing of the grid on top of the picture
Implements TVirtualPad.
Release current (external) viewer.
Implements TVirtualPad.
Reset tool tip, i.e.
within time specified in CreateToolTip the tool tip will pop up.
Implements TVirtualPad.
Implements TVirtualPad.
Compute pad conversion coefficients.
\[\frac{x-xmin}{xrange} = \frac{px-pxlow}{pxrange}\]
with:
\[ xrange = xmax-xmin \]
\[ pxrange = pxmax-pxmin \]
\[ \Rightarrow px = \frac{pxrange(x-xmin)}{xrange} + pxlow = fXtoPixelk + fXtoPixel \times x \]
\[ \Rightarrow fXtoPixelk = pxlow - pxrange \frac{xmin}{xrange} \]
\[ fXtoPixel = \frac{pxrange}{xrange} \]
where:
\[ pxlow = fAbsXlowNDC \times fCw \]
\[ pxrange = fAbsWNDC \times fCw \]
\[\frac{y-ymin}{yrange} = \frac{py-pylow}{pyrange}\]
with:
\[ yrange = ymax-ymin \]
\[ pyrange = pymax-pymin \]
\[ \Rightarrow py = \frac{pyrange(y-xmin)}{yrange} + pylow = fYtoPixelk + fYtoPixel \times y \]
\[ \Rightarrow fYtoPixelk = pylow - pyrange \frac{ymin}{yrange} \]
\[ fYtoPixel = \frac{pyrange}{yrange} \]
where:
\[ pylow = fAbsYlowNDC \times fCh \]
\[ pyrange = fAbsHNDC \times fCh \]
\[ \Rightarrow x = \frac{xrange(px-pxlow)}{pxrange}+ xmin = fPixeltoXk + fPixeltoX \times px \]
\[ \Rightarrow fPixeltoXk = xmin - pxlow \times\frac{xrange}{pxrange} \]
\[ fPixeltoX = \frac{xrange}{pxrange} \]
\[ \Rightarrow y = \frac{yrange(py-pylow)}{pyrange}+ ymin = fPixeltoYk + fPixeltoY \times py \]
\[ \Rightarrow fPixeltoYk = ymin - pylow \times\frac{yrange}{pyrange} \]
\[ fPixeltoY = \frac{yrange}{pyrange} \]
\[ u = \frac{Log(x) - Log(xmin)}{Log(xmax) - Log(xmin)} = \frac{Log(x/xmin)}{Log(xmax/xmin)} = \frac{px - pxlow}{pxrange} \]
\[ \Rightarrow Log(\frac{x}{xmin}) = u \times Log(\frac{xmax}{xmin}) \]
\[ x = xmin \times e^{(u \times Log(\frac{xmax}{xmin})} \]
Let:
\[ alfa = \frac{Log(\frac{xmax}{xmin})}{fAbsWNDC} \]
\[ x = xmin \times e^{(-alfa \times pxlow)} + e^{(alfa \times px)} \]
\[ x = fPixeltoXk \times e^{(fPixeltoX \times px)} \]
\[ ==> fPixeltoXk = xmin \times e^{(-alfa*pxlow)} \]
\[ fPixeltoX = alfa \]
\[ v = \frac{Log(y) - Log(ymin)}{Log(ymax) - Log(ymin)} = \frac{Log(y/ymin)}{Log(ymax/ymin)} = \frac{py - pylow}{pyrange} \]
Let:
\[ beta = Log(\frac{ymax}{ymin}) \]
\[ Log(\frac{y}{ymin}) = beta \times pylow - beta \times py \]
\[ \frac{y}{ymin} = e^{(beta \times pylow - beta \times py)} \]
\[ y = ymin \times e^{(beta \times pylow)} \times e^{(-beta \times py)}\]
\[ \Rightarrow y = fPixeltoYk \times e^{(fPixeltoY \times py)} \]
\[ fPixeltoYk = ymin \times e^{(beta \times pylow)} \]
\[ fPixeltoY = -beta \]
\[ px = pxlow + u*pxrange \]
\[ = pxlow + Log(x/xmin)/alfa \]
\[ = pxlow -Log(xmin)/alfa + Log(x)/alfa \]
\[ = fXtoPixelk + fXtoPixel*Log(x) \]
\[ \Rightarrow fXtoPixelk = pxlow -Log(xmin)/alfa \]
\[ \Rightarrow fXtoPixel = 1/alfa \]
\[ py = pylow - Log(y/ymin)/beta \]
\[ = fYtoPixelk + fYtoPixel*Log(y) \]
\[ \Rightarrow fYtoPixelk = pylow - Log(ymin)/beta \]
\[ fYtoPixel = 1/beta \]
Implements TVirtualPad.
Save Pad contents in a file in one of various formats.
if filename contains .xml, a XML file is produced
See comments in TPad::Print for the Postscript formats
Implements TVirtualPad.
Set postscript fill area attributes.
Implements TVirtualPad.
Set X coordinate of the center of the Pad.
Implements TAttBBox2D.
Set Y coordinate of the center of the Pad.
Implements TAttBBox2D.
Set lefthandside of BoundingBox to a value (resize in x direction on left)
Implements TAttBBox2D.
Set right hand side of BoundingBox to a value (resize in x direction on right)
Implements TAttBBox2D.
Set top of BoundingBox to a value (resize in y direction on top)
Implements TAttBBox2D.
Set bottom of BoundingBox to a value (resize in y direction on bottom)
Implements TAttBBox2D.
Implements TVirtualPad.
Reimplemented in TButton, and TDialogCanvas.
Implements TVirtualPad.
Implements TVirtualPad.
Implements TVirtualPad.
Set crosshair active/inactive.
Implements TVirtualPad.
Set drawing option for object.
This option only affects the drawing style and is stored in the option field of the TObjOptLink supporting a TPad's primitive list (TList). Note that it does not make sense to call object.SetDrawOption(option) before having called object.Draw().
Reimplemented from TObject.
Set pad editable yes/no If a pad is not editable:
Implements TVirtualPad.
Fix pad aspect ratio to current value if fixed is true.
Implements TVirtualPad.
Reimplemented in TCanvas.
Implements TVirtualPad.
Reimplemented in TButton, TDialogCanvas, and TInspectCanvas.
Set Lin/Log scale for X.
Implements TVirtualPad.
Reimplemented in TButton, TDialogCanvas, and TInspectCanvas.
Set Lin/Log scale for Y.
Implements TVirtualPad.
Reimplemented in TButton, TDialogCanvas, and TInspectCanvas.
static function to set the maximum Pick Distance fgMaxPickDistance This parameter is used in TPad::Pick to select an object if its DistancetoPrimitive returns a value < fgMaxPickDistance The default value is 5 pixels.
Setting a smaller value will make picking more precise but also more difficult
|
inlinevirtual |
Implements TVirtualPad.
Reimplemented in TButton, TDialogCanvas, and TCanvas.
Set canvas range for pad and resize the pad.
If the aspect ratio was fixed before the call it will be un-fixed.
Implements TVirtualPad.
Implements TVirtualPad.
Implements TVirtualPad.
Implements TVirtualPad.
|
inlinevirtual |
Set tool tip text associated with this pad.
The delay is in milliseconds (minimum 250). To remove tool tip call method with text = 0.
Implements TVirtualPad.
Set pad vertical (default) or horizontal.
Implements TVirtualPad.
Set the current TView. Delete previous view if view=0.
Implements TVirtualPad.
|
inlinevirtual |
Reimplemented from TVirtualPad.
|
virtual |
Shows lines to indicate if a TAttBBox2D object is aligned to the center or to another object, shows distance arrows if two objects on screen have the same distance to another object Call from primitive in Execute Event, in ButtonMotion after the new coordinates have been set, to 'stick' once when button is up to delete lines.
modes: t (Top), b (bottom), l (left), r (right), i (inside) in resize modes (t,b,l,r) only size arrows are sticky
in mode, the function gets the point on the element that is clicked to move (i) or resize (all others). The expected values are:
Implements TVirtualPad.
|
virtual |
|
virtual |
Implements TVirtualPad.
Implements TVirtualPad.
Implements TVirtualPad.
Implements TVirtualPad.
|
virtual |
Loop and sleep until a primitive with name=pname is found in the pad.
If emode is given, the editor is automatically set to emode, ie it is not required to have the editor control bar.
The possible values for emode are:
If emode is specified and it is not valid, "PolyLine" is assumed. If emode is not specified or ="", an attempt is to use pname[1...]
for example if pname="TArc", emode="Arc" will be assumed. When this function is called within a macro, the macro execution is suspended until a primitive corresponding to the arguments is found in the pad.
If CRTL/C is typed in the pad, the function returns 0.
While this function is executing, one can use the mouse, interact with the graphics pads, use the Inspector, Browser, TreeViewer, etc.
Examples:
The following macro waits for 10 primitives of any type to be created.
If ROOT runs in batch mode a call to this method does nothing.
Implements TVirtualPad.
Deprecated: use TPad::GetViewer3D() instead.
Reimplemented in TButton, TDialogCanvas, and TInspectCanvas.
Implements TVirtualPad.
Implements TVirtualPad.
Implements TVirtualPad.
Implements TVirtualPad.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |