Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
TInspectCanvas Class Reference

A TInspectCanvas is a canvas specialized to inspect Root objects.

Definition at line 21 of file TInspectCanvas.h.

Public Types

enum  {
  kFraming = (1ULL << (6)) , kHori = (1ULL << (9)) , kClipFrame = (1ULL << (10)) , kPrintingPS = (1ULL << (11)) ,
  kCannotMove = (1ULL << (12)) , kClearAfterCR = (1ULL << (14))
}
enum  { kSingleKey = (1ULL << (0)) , kOverwrite = (1ULL << (1)) , kWriteDelete = (1ULL << (2)) }
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
enum  {
  kShowEventStatus = (1ULL << (15)) , kAutoExec = (1ULL << (16)) , kMenuBar = (1ULL << (17)) , kShowToolBar = (1ULL << (18)) ,
  kShowEditor = (1ULL << (19)) , kMoveOpaque = (1ULL << (20)) , kResizeOpaque = (1ULL << (21)) , kIsGrayscale = (1ULL << (22)) ,
  kShowToolTips = (1ULL << (23))
}
enum  EDeprecatedStatusBits { kObjInCanvas = (1ULL << (3)) }
enum  EStatusBits {
  kCanDelete = (1ULL << (0)) , kMustCleanup = (1ULL << (3)) , kIsReferenced = (1ULL << (4)) , kHasUUID = (1ULL << (5)) ,
  kCannotPick = (1ULL << (6)) , kNoContextMenu = (1ULL << (8)) , kInvalidObject = (1ULL << (13))
}

Public Member Functions

 TInspectCanvas ()
 InspectCanvas default constructor.
 TInspectCanvas (UInt_t ww, UInt_t wh)
 InspectCanvas constructor.
 ~TInspectCanvas () override
 InspectCanvas default destructor.
void AbsCoordinates (Bool_t set) override
Double_t AbsPixeltoX (Double_t px) override
void AbsPixeltoXY (Double_t xpixel, Double_t ypixel, Double_t &x, Double_t &y) override
 Convert absolute pixel into X/Y coordinates.
Double_t AbsPixeltoY (Double_t py) override
void AbstractMethod (const char *method) const
 Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.
void Add (TObject *obj, Option_t *opt="", Bool_t modified=kTRUE) override
 Add an object to list of primitives with specified draw option When.
void AddExec (const char *name, const char *command) override
 Add a new TExec object to the list of Execs.
void AddFirst (TObject *obj, Option_t *opt="", Bool_t modified=kTRUE) override
 Add an object as first in list of primitives with specified draw option When.
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
Bool_t AreSignalsBlocked () const
virtual void AutoExec ()
 Execute the list of Execs when a pad event occurs.
Bool_t BlockSignals (Bool_t b)
void Browse (TBrowser *b) override
 Browse.
TLegendBuildLegend (Double_t x1=0.3, Double_t y1=0.21, Double_t x2=0.3, Double_t y2=0.21, const char *title="", Option_t *option="") override
 Build a legend from the graphical objects in the pad.
TVirtualPadcd (Int_t subpadnumber=0) override
 Set current canvas & pad.
virtual void ChangedBy (const char *method)
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.
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
void Clear (Option_t *option="") override
 Remove all primitives from the canvas.
virtual void Cleared (TVirtualPad *pad)
 Emit pad Cleared signal.
void ClearPadSave ()
Int_t Clip (Double_t *x, Double_t *y, Double_t xclipl, Double_t yclipb, Double_t xclipr, Double_t yclipt) override
 Clipping routine: Cohen Sutherland algorithm.
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.
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.
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.
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility.
void Close (Option_t *option="") override
 Close canvas.
void Closed () override
 Emit Closed signal.
void CloseToolTip (TObject *tip) override
 Hide tool tip.
void CollectClassSignalLists (TList &list, TClass *cls)
 Collect class signal lists from class cls and all its base-classes.
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method.
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.
virtual void Connected (const char *)
void Constructor ()
 Canvas default constructor.
void Constructor (const char *name, const char *title, Int_t form)
 Create a new canvas with a predefined size form.
void Constructor (const char *name, const char *title, Int_t wtopx, Int_t wtopy, Int_t ww, Int_t wh)
 Create a new canvas.
void Constructor (const char *name, const char *title, Int_t ww, Int_t wh)
 Create a new canvas at a random position.
void Copy (TAttFill &attfill) const
void Copy (TAttLine &attline) const
virtual void Copy (TAttPad &attpad) const
 copy function
void Copy (TAttText &atttext) const
virtual void Copy (TObject &object) const
 Copy this to obj.
void CopyPixmap () override
 Copy the pixmap of the pad to the canvas.
TObjectCreateToolTip (const TBox *b, const char *text, Long_t delayms) override
 Create a tool tip and return its pointer.
void Delete (Option_t *="") override
 Delete this object.
void DeleteCanvasPainter ()
 assert on IsBatch() == false?
void DeleteExec (const char *name) override
 Remove TExec name from the list of Execs.
void DeleteToolTip (TObject *tip) override
 Delete tool tip object.
virtual void Destroyed ()
void Destructor ()
 Actual canvas destructor.
Bool_t Disconnect (const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
 Disconnects signal of this object from slot of receiver.
virtual void Disconnected (const char *)
void DisconnectWidget ()
 Used by friend class TCanvasImp.
Int_t DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
void Divide (Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0) override
void DivideRatios (Int_t nrows, Int_t ncolumns, const std::vector< double > &widthRatios={}, const std::vector< double > &heightRatios={}, const double canvasTopMargin=0., const double canvasLeftMargin=0.)
 Divide the canvas according to ratios.
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.
void Draw (Option_t *option="") override
 Draw a canvas.
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
void DrawClassObject (const TObject *obj, Option_t *option="") override
 Draw class inheritance tree of the class to which obj belongs.
TObjectDrawClone (Option_t *option="") const override
 Draw a clone of this canvas A new canvas is created that is a clone of this canvas.
virtual TObjectDrawClonePad ()
 Draw a clone of this canvas into the current pad In an interactive session, select the destination/current pad with the middle mouse button, then point to the canvas area to select the canvas context menu item DrawClonePad.
void DrawCollideGrid ()
 This method draws the collide grid on top of the canvas.
virtual void DrawCrosshair ()
 Function called to draw a crosshair in the canvas.
TH1FDrawFrame (Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, const char *title="") override
 Draw an empty pad frame with X and Y axis.
virtual void Dump () const
 Dump contents of object on stdout.
virtual void EditorBar ()
 Get editor bar.
void EmbedInto (Int_t winid, Int_t ww, Int_t wh)
 Embedded a canvas into a TRootEmbeddedCanvas.
void Emit (const char *signal)
 Activate signal without args.
template<typename T>
void Emit (const char *signal, const T &arg)
 Activate signal with single parameter.
template<typename... T>
void EmitVA (const char *signal_name, Int_t, const T &... params)
 Emit a signal with a varying number of arguments.
void EnterLeave (TPad *prevSelPad, TObject *prevSelObj)
 Generate kMouseEnter and kMouseLeave events depending on the previously selected object and the currently selected object.
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
virtual void EventPave ()
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 Execute method on this object with the given parameter string, e.g.
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 Execute method on this object with parameters stored in the TObjArray.
void ExecuteEventAxis (Int_t event, Int_t px, Int_t py, TAxis *axis) override
 Execute action corresponding to one event for a TAxis object (called by TAxis::ExecuteEvent.) This member function is called when an axis is clicked with the locator.
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
void FeedbackMode (Bool_t set)
 Turn rubberband feedback mode on or off.
TObjectFindObject (const char *name) const override
 Search if object named name is inside this pad or in pads inside this pad.
TObjectFindObject (const TObject *obj) const override
 Search if obj is in pad or in pads inside this pad.
void Flush ()
 Flush canvas buffers.
void ForceUpdate ()
 Force canvas update.
Double_t GetAbsHNDC () const override
Double_t GetAbsWNDC () const override
Double_t GetAbsXlowNDC () const override
Double_t GetAbsYlowNDC () const override
Float_t GetAfile () const
Double_t GetAspectRatio () const override
Float_t GetAstat () const
Bool_t GetAutoExec () const
TButtonGetBackward () const
Rectangle_t GetBBox () override
 Return the bounding Box of the Pad.
TPoint GetBBoxCenter () override
 Return the center of the Pad as TPoint in pixels.
Short_t GetBorderMode () const override
Short_t GetBorderSize () const override
Float_t GetBottomMargin () const
TCanvasGetCanvas () const override
Int_t GetCanvasID () const override
TCanvasImpGetCanvasImp () const override
TVirtualPadPainterGetCanvasPainter ()
 Access and (probably) creation of pad painter.
virtual void GetCanvasPar (Int_t &wtopx, Int_t &wtopy, UInt_t &ww, UInt_t &wh)
TObjectGetClickSelected () const
TVirtualPadGetClickSelectedPad () const
TContextMenuGetContextMenu () const
Int_t GetCrosshair () const
 Return the crosshair type (from the mother canvas) crosshair type = 0 means no crosshair.
TObjectGetCurObject () const
const char * GetDISPLAY () const
Int_t GetDoubleBuffer () const
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
Int_t GetEvent () const override
Int_t GetEventX () const override
Int_t GetEventY () const override
virtual Color_t GetFillColor () const
 Return the fill area color.
virtual Style_t GetFillStyle () const
 Return the fill area style.
TButtonGetForward () const
TFrameGetFrame () override
 Get frame.
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
Int_t GetGLDevice () override
 Get GL device.
Bool_t GetGridx () const override
Bool_t GetGridy () const override
Color_t GetHighLightColor () const override
Double_t GetHNDC () const override
 Get height of pad along Y in Normalized Coordinates (NDC).
virtual const char * GetIconName () const
 Returns mime type name of object.
Float_t GetLeftMargin () const
virtual Color_t GetLineColor () const
 Return the line color.
virtual Style_t GetLineStyle () const
 Return the line style.
virtual Width_t GetLineWidth () const
 Return the line width.
TListGetListOfClassSignals () const
 Returns pointer to list of signals of this class.
TListGetListOfConnections () const
TListGetListOfExecs () const override
TListGetListOfPrimitives () const override
TListGetListOfSignals () const
Int_t GetLogx () const override
Int_t GetLogy () const override
Int_t GetLogz () const override
TVirtualPadGetMother () const override
const char * GetName () const override
 Returns name of object.
Int_t GetNumber () const override
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
TListGetObjects () const
virtual Option_tGetOption () const
TVirtualPadGetPad (Int_t subpadnumber) const override
 Get a pointer to subpadnumber of this pad.
UInt_t GetPadHeight () const override
Int_t GetPadPaint () const override
void GetPadPar (Double_t &xlow, Double_t &ylow, Double_t &xup, Double_t &yup) override
 Return lower and upper bounds of the pad in NDC coordinates.
TObjectGetPadPointer () const override
TVirtualPadGetPadSave () const override
UInt_t GetPadWidth () const override
TVirtualPadPainterGetPainter () override
 Get pad painter from TCanvas.
Double_t GetPhi () const override
Int_t GetPixmapID () const override
TObjectGetPrimitive (const char *name) const override
 Get primitive.
void GetRange (Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2) override
 Return pad world coordinates range.
void GetRangeAxis (Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax) override
 Return pad axis coordinates range.
Float_t GetRightMargin () const
TObjectGetSelected () const override
Option_tGetSelectedOpt () const
TVirtualPadGetSelectedPad () const override
Int_t GetSelectedX () const
Int_t GetSelectedY () const
Bool_t GetShowEditor () const
Bool_t GetShowEventStatus () const
Bool_t GetShowToolBar () const
Bool_t GetShowToolTips () const
virtual Short_t GetTextAlign () const
 Return the text alignment.
virtual Float_t GetTextAngle () const
 Return the text angle.
virtual Color_t GetTextColor () const
 Return the text color.
virtual Font_t GetTextFont () const
 Return the text font.
virtual Float_t GetTextSize () const
 Return the text size.
virtual Float_t GetTextSizePercent (Float_t size)
 Return the text in percent of the pad size.
virtual Float_t GetTextSizePixels (TVirtualPad &pad) const
 Return the text size in pixels for specified pad.
virtual Float_t GetTextSizeRelative (TVirtualPad &pad) const
 Return the text size in relative units.
Double_t GetTheta () const override
Int_t GetTickx () const override
Int_t GetTicky () const override
const char * GetTitle () const override
 Returns title of object.
Float_t GetTopMargin () const
virtual UInt_t GetUniqueID () const
 Return the unique object id.
Double_t GetUxmax () const override
 Returns the maximum x-coordinate value visible on the pad. If log axis the returned value is in decades.
Double_t GetUxmin () const override
 Returns the minimum x-coordinate value visible on the pad. If log axis the returned value is in decades.
Double_t GetUymax () const override
 Returns the maximum y-coordinate value visible on the pad. If log axis the returned value is in decades.
Double_t GetUymin () const override
 Returns the minimum y-coordinate value visible on the pad. If log axis the returned value is in decades.
TViewGetView () const override
TObjectGetView3D () const override
TVirtualViewer3DGetViewer3D (Option_t *type="") override
 Create/obtain handle to 3D viewer.
TVirtualPadGetVirtCanvas () const override
 Get virtual canvas.
UInt_t GetWh () const override
UInt_t GetWindowHeight () const
Int_t GetWindowTopX ()
 Returns current top x position of window on screen.
Int_t GetWindowTopY ()
 Returns current top y position of window on screen.
UInt_t GetWindowWidth () const
Double_t GetWNDC () const override
 Get width of pad along X in Normalized Coordinates (NDC).
UInt_t GetWw () const override
Double_t GetX1 () const override
Double_t GetX2 () const override
Float_t GetXfile () const
Double_t GetXlowNDC () const override
Size_t GetXsizeReal () const
Size_t GetXsizeUser () const
Float_t GetXstat () const
Double_t GetY1 () const override
Double_t GetY2 () const override
Float_t GetYfile () const
Double_t GetYlowNDC () const override
Size_t GetYsizeReal () const
Size_t GetYsizeUser () const
Float_t GetYstat () const
virtual void HandleInput (EEventType button, Int_t x, Int_t y)
 Handle Input Events.
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
virtual Bool_t HasConnection (const char *signal_name) const
 Return true if there is any object connected to this signal.
Bool_t HasCrosshair () const override
 Return kTRUE if the crosshair has been activated (via SetCrosshair).
Bool_t HasFixedAspectRatio () const override
ULong_t Hash () const override
 Return hash value for this object.
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.
Bool_t HasMenuBar () const
Bool_t HasViewer3D () const override
void HighLight (Color_t col=kRed, Bool_t set=kTRUE) override
 Highlight pad.
virtual void HighlightConnect (const char *slot)
 This is "simplification" for function TCanvas::Connect with Highlighted signal for specific slot.
virtual void Highlighted (TVirtualPad *pad, TObject *obj, Int_t x, Int_t y)
 Emit Highlighted() signal.
virtual void HighPriority (const char *signal_name, const char *slot_name=nullptr)
Int_t HtoAbsPixel (Double_t y1, Double_t y2) const override
 Convert a vertical distance [y1,y2] to pixel.
void Iconify ()
 Iconify canvas.
Int_t IncrementPaletteColor (Int_t i, TString opt) override
 Increment (i==1) or set (i>1) the number of autocolor in the pad.
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
virtual void InspectObject (TObject *obj)
 Dump contents of obj in a graphics canvas.
void InvertBit (UInt_t f)
TClassIsA () const override
Bool_t IsBatch () const override
Bool_t IsBeingResized () const
Bool_t IsDestructed () const
 IsDestructed.
Bool_t IsDrawn () const
Bool_t IsEditable () const override
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory).
Bool_t IsFolder () const override
 Is folder ?
Bool_t IsGrayscale ()
 Check whether this canvas is to be drawn in grayscale mode.
Bool_t IsModified () const override
Bool_t IsOnHeap () const
Bool_t IsRetained () const override
virtual Bool_t IsSortable () const
virtual Bool_t IsTransparent () const
Bool_t IsUpdated () const
Bool_t IsVertical () const override
Bool_t IsWeb () const override
 Is web canvas.
Bool_t IsZombie () const
virtual void LowPriority (const char *signal_name, const char *slot_name=nullptr)
void ls (Option_t *option="") const override
 List all pads.
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).
virtual void Message (const char *msg)
void Modified (Bool_t flag=true) override
 Mark pad modified Will be repainted when TCanvas::Update() will be called next time.
void ModifiedUpdate () override
 Short cut to call Modified() and Update() in a single call.
virtual void Modify ()
virtual void Modify ()
virtual void Modify ()
virtual void ModifyOn (TVirtualPad &pad)
virtual void ModifyOn (TVirtualPad &pad)
virtual void ModifyOn (TVirtualPad &pad)
void MoveOpaque (Int_t set=1)
 Set option to move objects/pads in a canvas.
Int_t NextPaletteColor () override
 Get the next autocolor in the pad.
virtual Bool_t Notify ()
 This method must be overridden to handle object notification (the base implementation is no-op).
virtual Int_t NumberOfConnections () const
 Return number of connections for this object.
virtual Int_t NumberOfSignals () const
 Return number of signals for this object.
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
Bool_t OpaqueMoving () const override
Bool_t OpaqueResizing () const override
void operator delete (void *, size_t)
 Operator delete for sized deallocation.
void operator delete (void *ptr)
 Operator delete.
void operator delete (void *ptr, void *vp)
 Only called by placement new when throwing an exception.
void operator delete[] (void *, size_t)
 Operator delete [] for sized deallocation.
void operator delete[] (void *ptr)
 Operator delete [].
void operator delete[] (void *ptr, void *vp)
 Only called by placement new[] when throwing an exception.
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)
virtual Bool_t PadInHighlightMode () const
 Should always return false, unless you can highlight selected object in pad.
virtual Bool_t PadInSelectionMode () const
 Should always return false unless you have non-standard picking.
Double_t PadtoX (Double_t x) const override
 Convert x from pad to X.
Double_t PadtoY (Double_t y) const override
 Convert y from pad to Y.
void Paint (Option_t *option="") override
 Paint canvas.
void PaintBox (Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t *option="") override
 Paint box in CurrentPad World coordinates.
void PaintFillArea (Int_t n, Double_t *x, Double_t *y, Option_t *option="") override
 Paint fill area in CurrentPad World coordinates.
void PaintFillArea (Int_t n, Float_t *x, Float_t *y, Option_t *option="") override
void PaintFillAreaHatches (Int_t n, Double_t *x, Double_t *y, Int_t FillStyle)
 This function paints hatched fill area according to the FillStyle value The convention for the Hatch is the following:
void PaintFillAreaNDC (Int_t n, Double_t *x, Double_t *y, Option_t *option="") override
 Paint fill area in CurrentPad NDC coordinates.
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.
void PaintLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2) override
 Paint line in CurrentPad World coordinates.
void PaintLine3D (Double_t *p1, Double_t *p2) override
 Paint 3-D line in the CurrentPad.
void PaintLine3D (Float_t *p1, Float_t *p2) override
 Paint 3-D line in the CurrentPad.
void PaintLineNDC (Double_t u1, Double_t v1, Double_t u2, Double_t v2) override
 Paint line in normalized coordinates.
void PaintMarker3D (Double_t x, Double_t y, Double_t z) override
 Paint 3-D marker in the CurrentPad.
void PaintModified () override
 Traverse pad hierarchy and (re)paint only modified pads.
void PaintPadFrame (Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax) override
 Paint histogram/graph frame.
void PaintPolyLine (Int_t n, Double_t *x, Double_t *y, Option_t *option="") override
 Paint polyline in CurrentPad World coordinates.
void PaintPolyLine (Int_t n, Float_t *x, Float_t *y, Option_t *option="") override
 Paint polyline in CurrentPad World coordinates.
void PaintPolyLine3D (Int_t n, Double_t *p) override
 Paint 3-D polyline in the CurrentPad.
void PaintPolyLineNDC (Int_t n, Double_t *x, Double_t *y, Option_t *option="") override
 Paint polyline in CurrentPad NDC coordinates.
void PaintPolyMarker (Int_t n, Double_t *x, Double_t *y, Option_t *option="") override
 Paint polymarker in CurrentPad World coordinates.
void PaintPolyMarker (Int_t n, Float_t *x, Float_t *y, Option_t *option="") override
 Paint polymarker in CurrentPad World coordinates.
void PaintSegments (Int_t n, Double_t *x, Double_t *y, Option_t *option="") override
 Paint N individual segments Provided arrays should have 2*n elements IMPORTANT!
void PaintSegmentsNDC (Int_t n, Double_t *u, Double_t *v) override
 Paint N individual segments in NDC coordinates Provided arrays should have 2*n elements IMPORTANT!
void PaintText (Double_t x, Double_t y, const char *text) override
 Paint text in CurrentPad World coordinates.
void PaintText (Double_t x, Double_t y, const wchar_t *text) override
 Paint text in CurrentPad World coordinates.
void PaintTextNDC (Double_t u, Double_t v, const char *text) override
 Paint text in CurrentPad NDC coordinates.
void PaintTextNDC (Double_t u, Double_t v, const wchar_t *text) override
 Paint text in CurrentPad NDC coordinates.
void PaintTextUrl (Double_t x, Double_t y, const char *text, const char *url) override
 Paint text with URL in CurrentPad World coordinates.
virtual TPadPick (Int_t px, Int_t py, TObject *prevSelObj)
 Prepare for pick, call TPad::Pick() and when selected object is different from previous then emit Picked() signal.
TPadPick (Int_t px, Int_t py, TObjLink *&pickobj) override
 Search for an object at pixel position px,py.
virtual void Picked (TPad *selpad, TObject *selected, Int_t event)
 Emit Picked() signal.
Double_t PixeltoX (Double_t px) override
 Convert pixel to X coordinate.
void PixeltoXY (Double_t xpixel, Double_t ypixel, Double_t &x, Double_t &y) override
 Convert pixel to X/Y coordinates.
Double_t PixeltoY (Double_t py) override
 Convert pixel to Y coordinate.
Bool_t PlaceBox (TObject *o, Double_t w, Double_t h, Double_t &xl, Double_t &yb, Option_t *option="lb") override
 Place a box in NDC space.
void Pop () override
 Pop pad to the top of the stack.
virtual void PopTopLevelSelectable ()
 Does nothing, unless you implement your own picking.
void Print (const char *filename, Option_t *option) override
 Save Canvas contents in a file in one of various formats.
void Print (const char *filename="") const override
 This method is equivalent to SaveAs("filename"). See TPad::SaveAs for details.
virtual void ProcessedEvent (Int_t event, Int_t x, Int_t y, TObject *selected)
 Emit ProcessedEvent() signal.
virtual void PushSelectableObject (TObject *obj)
 Does nothing, unless you implement your own picking.
virtual void PushTopLevelSelectable (TObject *top)
 Does nothing, unless you implement your own picking.
void RaiseWindow ()
 Raise canvas window.
void Range (Double_t x1, Double_t y1, Double_t x2, Double_t y2) override
 Set world coordinate system for the pad.
void RangeAxis (Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax) override
 Set axis coordinate system for the pad.
virtual void RangeAxisChanged ()
virtual void RangeChanged ()
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
virtual void RecordLatex (const TObject *obj)
 Emit RecordLatex() signal.
virtual void RecordPave (const TObject *obj)
 Emit RecordPave() signal.
void RecursiveRemove (TObject *obj) override
 Recursively remove object from the list of objects.
void RedrawAxis (Option_t *option="") override
 Redraw the frame axis.
void ReleaseViewer3D (Option_t *type="") override
 Release current (external) viewer.
TObjectRemove (TObject *obj, Bool_t modified=kTRUE) override
 Remove object from list of primitives When.
virtual void ResetAttFill (Option_t *option="")
virtual void ResetAttLine (Option_t *option="")
virtual void ResetAttPad (Option_t *option="")
 Reset pad attributes.
virtual void ResetAttText (Option_t *toption="")
void ResetBit (UInt_t f)
void ResetDrawn ()
void ResetToolTip (TObject *tip) override
 Reset tool tip, i.e.
void ResetUpdated ()
void ResetView3D (TObject *view=nullptr) override
virtual void Resize (Option_t *option="")
 Recompute canvas parameters following a X11 Resize.
virtual void Resized ()
void ResizeOpaque (Int_t set=1)
 Set option to resize objects/pads in a canvas.
void ResizePad (Option_t *option="") override
 Compute pad conversion coefficients.
void SaveAs (const char *filename="", Option_t *option="") const override
 Save the pad content in a file.
virtual void SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
virtual void SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
void SavePrimitive (std::ostream &out, Option_t *option="") override
 Save primitives in this canvas in C++ macro file with GUI.
void SaveSource (const char *filename="", Option_t *option="")
 Save primitives in this canvas as a C++ macro file.
virtual void SaveTextAttributes (std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1)
virtual void Selected (TVirtualPad *pad, TObject *obj, Int_t event)
 Emit Selected() signal.
virtual void SetAfile (Float_t afile)
virtual void SetAstat (Float_t astat)
void SetAttFillPS (Color_t color, Style_t style) override
 Set postscript fill area attributes.
void SetAttLinePS (Color_t color, Style_t style, Width_t lwidth) override
 Set postscript line attributes.
void SetAttMarkerPS (Color_t color, Style_t style, Size_t msize) override
 Set postscript marker attributes.
void SetAttTextPS (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize) override
 Set postscript text attributes.
void SetBatch (Bool_t batch=kTRUE) override
 Toggle batch mode.
void SetBBoxCenter (const TPoint &p) override
 Set center of the Pad.
void SetBBoxCenterX (const Int_t x) override
 Set X coordinate of the center of the Pad.
void SetBBoxCenterY (const Int_t y) override
 Set Y coordinate of the center of the Pad.
void SetBBoxX1 (const Int_t x) override
 Set lefthandside of BoundingBox to a value (resize in x direction on left).
void SetBBoxX2 (const Int_t x) override
 Set right hand side of BoundingBox to a value (resize in x direction on right).
void SetBBoxY1 (const Int_t y) override
 Set top of BoundingBox to a value (resize in y direction on top).
void SetBBoxY2 (const Int_t y) override
 Set bottom of BoundingBox to a value (resize in y direction on bottom).
void SetBit (UInt_t f)
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
void SetBorderMode (Short_t bordermode) override
void SetBorderSize (Short_t bordersize) override
virtual void SetBottomMargin (Float_t bottommargin)
 Set Pad bottom margin in fraction of the pad height.
void SetCanvas (TCanvas *c) override
void SetCanvasImp (TCanvasImp *i)
 Set canvas implementation If web-based implementation provided, some internal fields also initialized.
void SetCanvasSize (UInt_t ww, UInt_t wh) override
 Set Width and Height of canvas to ww and wh respectively.
void SetClickSelected (TObject *obj)
void SetClickSelectedPad (TPad *pad)
void SetCopyGLDevice (Bool_t copy) override
void SetCrosshair (Int_t crhair=1) override
 Set crosshair active/inactive.
void SetCursor (ECursor cursor) override
 Set cursor.
void SetDoubleBuffer (Int_t mode=1) override
 Set Double Buffer On/Off.
void SetDrawOption (Option_t *="") override
 Set drawing option for object.
void SetEditable (Bool_t mode=kTRUE) override
 Set pad editable yes/no If a pad is not editable:
virtual void SetFillAttributes ()
virtual void SetFillColor (Color_t fcolor)
 Set the fill area color.
void SetFillColor (TColorNumber)
virtual void SetFillColorAlpha (Color_t fcolor, Float_t falpha)
void SetFillStyle (Style_t fstyle) override
 Override TAttFill::FillStyle for TPad because we want to handle style=0 as style 4000.
void SetFixedAspectRatio (Bool_t fixed=kTRUE) override
 Fix canvas aspect ratio to current value if fixed is true.
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 SetGLDevice (Int_t dev)
void SetGrayscale (Bool_t set=kTRUE)
 Set whether this canvas should be painted in grayscale, and re-paint it if necessary.
void SetGrid (Int_t valuex=1, Int_t valuey=1) override
void SetGridx (Int_t value=1) override
void SetGridy (Int_t value=1) override
void SetHighLightColor (Color_t col)
virtual void SetLeftMargin (Float_t leftmargin)
 Set Pad left margin in fraction of the pad width.
virtual void SetLineAttributes ()
virtual void SetLineColor (Color_t lcolor)
 Set the line color.
void SetLineColor (TColorNumber lcolor)
virtual void SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
virtual void SetLineStyle (Style_t lstyle)
 Set the line style.
virtual void SetLineWidth (Width_t lwidth)
 Set the line width.
void SetLogx (Int_t value=1) override
void SetLogy (Int_t value=1) override
void SetLogz (Int_t value=1) override
virtual void SetMargin (Float_t left, Float_t right, Float_t bottom, Float_t top)
 Set all margins.
void SetName (const char *name="") override
 Set canvas name.
virtual void SetNumber (Int_t number)
void SetPad (const char *name, const char *title, Double_t xlow, Double_t ylow, Double_t xup, Double_t yup, Color_t color=35, Short_t bordersize=5, Short_t bordermode=-1) override
 Set all pad parameters.
void SetPad (Double_t xlow, Double_t ylow, Double_t xup, Double_t yup) override
 Set canvas range for pad and resize the pad.
void SetPadSave (TPad *pad)
void SetPhi (Double_t phi=30) override
bool SetRealAspectRatio (const Int_t axis=1)
 Function to resize a canvas so that the plot inside is shown in real aspect ratio.
void SetRetained (Bool_t retained=kTRUE)
virtual void SetRightMargin (Float_t rightmargin)
 Set Pad right margin in fraction of the pad width.
void SetSelected (TObject *obj) override
 Set selected canvas.
void SetSelectedPad (TPad *pad)
void SetSupportGL (Bool_t support)
virtual void SetTextAlign (Short_t align=11)
 Set the text alignment.
virtual void SetTextAngle (Float_t tangle=0)
 Set the text angle.
virtual void SetTextAttributes ()
virtual void SetTextColor (Color_t tcolor=1)
 Set the text color.
void SetTextColor (TColorNumber lcolor)
virtual void SetTextColorAlpha (Color_t tcolor, Float_t talpha)
virtual void SetTextFont (Font_t tfont=62)
 Set the text font.
virtual void SetTextSize (Float_t tsize=1)
 Set the text size.
virtual void SetTextSizePixels (Int_t npixels)
 Set the text size in pixel.
void SetTheta (Double_t theta=30) override
void SetTicks (Int_t valuex=1, Int_t valuey=1) override
void SetTickx (Int_t value=1) override
void SetTicky (Int_t value=1) override
void SetTitle (const char *title="") override
 Set canvas title.
void SetToolTipText (const char *text, Long_t delayms=1000) override
 Set tool tip text associated with this pad.
virtual void SetTopMargin (Float_t topmargin)
 Set Pad top margin in fraction of the pad height.
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
void SetVertical (Bool_t vert=kTRUE) override
 Set pad vertical (default) or horizontal.
void SetView (TView *view=nullptr) override
 Set the current TView. Delete previous view if view=0.
void SetViewer3D (TVirtualViewer3D *viewer3d) override
void SetWindowPosition (Int_t x, Int_t y)
 Set canvas window position.
void SetWindowSize (UInt_t ww, UInt_t wh)
 Set canvas window size.
virtual void SetXfile (Float_t xfile)
virtual void SetXstat (Float_t xstat)
virtual void SetYfile (Float_t yfile)
virtual void SetYstat (Float_t ystat)
void Show ()
 Show canvas.
void ShowGuidelines (TObject *object, const Int_t event, const char mode='i', const bool cling=true) override
 Shows lines to indicate if a TAttBBox2D object is aligned to the center or to another object, shows distance arrows if two objects on screen have the same distance to another object Call from primitive in Execute Event, in ButtonMotion after the new coordinates have been set, to 'stick' once when button is up to delete lines.
virtual void Size (Float_t xsizeuser=0, Float_t ysizeuser=0)
 Set the canvas scale in centimeters.
virtual void StartEditing ()
void Streamer (TBuffer &) override
 Stream a class object.
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
Bool_t TestBit (UInt_t f) const
Int_t TestBits (UInt_t f) const
virtual void ToggleAutoExec ()
 Toggle pad auto execution of list of TExecs.
virtual void ToggleEditor ()
 Toggle editor.
virtual void ToggleEventStatus ()
 Toggle event statusbar.
virtual void ToggleToolBar ()
 Toggle toolbar.
virtual void ToggleToolTips ()
 Toggle tooltip display.
virtual void UnZoomed ()
void Update () override
 Update canvas pad buffers.
void UpdateAsync () override
 Asynchronous pad update.
void UseCurrentStyle () override
 Force a copy of current style for all objects in canvas.
Bool_t UseGL () const
Int_t UtoAbsPixel (Double_t u) const override
 Convert X NDC to absolute pixel.
Int_t UtoPixel (Double_t u) const override
 Convert X NDC to pixel.
Int_t VtoAbsPixel (Double_t v) const override
 Convert Y NDC to absolute pixel.
Int_t VtoPixel (Double_t v) const override
 Convert Y NDC to pixel.
TObjectWaitPrimitive (const char *pname="", const char *emode="") override
 Loop and sleep until a primitive with name=pname is found in the pad.
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.
Int_t WtoAbsPixel (Double_t x1, Double_t x2) const override
 Convert a horizontal distance [x1,x2] to pixel.
void x3d (Option_t *option="") override
 Deprecated: use TPad::GetViewer3D() instead.
Int_t XtoAbsPixel (Double_t x) const override
 Convert X coordinate to absolute pixel.
Double_t XtoPad (Double_t x) const override
 Convert x from X to pad.
Int_t XtoPixel (Double_t x) const override
 Convert X coordinate to pixel.
void XYtoAbsPixel (Double_t x, Double_t y, Double_t &xpixel, Double_t &ypixel) const override
 Convert X/Y into absolute pixel coordinates - doble Introduced to avoid pixel rounding problems.
void XYtoAbsPixel (Double_t x, Double_t y, Int_t &xpixel, Int_t &ypixel) const override
 Convert X/Y into absolute pixel coordinates - integer.
void XYtoPixel (Double_t x, Double_t y, Double_t &xpixel, Double_t &ypixel) const override
 Convert X/Y into pixel coordinates - double.
void XYtoPixel (Double_t x, Double_t y, Int_t &xpixel, Int_t &ypixel) const override
 Convert X/Y into pixel coordinates - integer.
Int_t YtoAbsPixel (Double_t y) const override
 Convert Y coordinate to absolute pixel.
Double_t YtoPad (Double_t y) const override
 Convert y from Y to pad.
Int_t YtoPixel (Double_t y) const override
 Convert Y coordinate to pixel.

Static Public Member Functions

static Bool_t AreAllSignalsBlocked ()
 Returns true if all signals are blocked.
static Bool_t BlockAllSignals (Bool_t b)
 Block or unblock all signals. Returns the previous block status.
static TClassClass ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
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.
static Bool_t Connect (TQObject *sender, const char *signal, const char *receiver_class, void *receiver, const char *slot)
 Create connection between sender and receiver.
static const char * DeclFileName ()
static Bool_t Disconnect (const char *class_name, const char *signal, void *receiver=nullptr, const char *slot=nullptr)
 Disconnects "class signal".
static Bool_t Disconnect (TQObject *sender, const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
 Disconnects signal in object sender from slot_method in object receiver.
static void DrawColorTable ()
 Static function to Display Color Table in a pad.
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
static Int_t GetMaxPickDistance ()
 Static function (see also TPad::SetMaxPickDistance).
static Bool_t GetObjectStat ()
 Get status of object stat flag.
static void GoBackward ()
 static function , inspect previous object
static void GoForward ()
 static function , inspect next object
static void Inspector (TObject *obj)
 static function , interface to InspectObject.
static TCanvasMakeDefCanvas ()
 Static function to build a default canvas.
static TVirtualPad *& Pad ()
 Return the current pad for the current thread.
static Bool_t SaveAll (const std::vector< TPad * > &={}, const char *filename="", Option_t *option="")
 Save provided pads/canvases into the image file(s) Filename can include printf argument for image number - like "image%03d.png".
static void SetDtorOnly (void *obj)
 Set destructor only flag.
static void SetFolder (Bool_t isfolder=kTRUE)
 If isfolder=kTRUE, the canvas can be browsed like a folder by default a canvas is not browsable.
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.
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
static Bool_t SupportAlpha ()
 Static function returning "true" if transparency is supported.

Protected Types

enum  { kOnlyPrepStep = (1ULL << (3)) }

Protected Member Functions

void DestroyExternalViewer3D ()
Int_t DistancetoPrimitive (Int_t px, Int_t py) override
 Compute distance from point px,py to a box.
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
void ExecuteEvent (Int_t event, Int_t px, Int_t py) override
 Execute action corresponding to one event.
void * GetSender () override
virtual const char * GetSenderClassName () const
Double_t GetXCoord (const Int_t x, Bool_t is_ndc=kFALSE)
Double_t GetYCoord (const Int_t y, Bool_t is_ndc=kFALSE)
virtual void HideToolTip (Int_t event)
 Hide tool tip depending on the event type.
void Init ()
 Initialize the TCanvas members. Called by all constructors.
void MakeZombie ()
void PaintBorder (Color_t color, Bool_t tops)
 Paint the pad border.
void PaintBorderPS (Double_t xl, Double_t yl, Double_t xt, Double_t yt, Int_t bmode, Int_t bsize, Int_t dark, Int_t light) override
 Paint a frame border with Postscript - no longer used.
void PaintDate ()
 Paint the current date and time if the option Date is set on via gStyle->SetOptDate() Paint the current file name if the option File is set on via gStyle->SetOptFile().

Static Protected Member Functions

static Int_t CheckConnectArgs (TQObject *sender, TClass *sender_class, const char *signal, TClass *receiver_class, const char *slot)
 Checking of consistency of sender/receiver methods/arguments.
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.
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.
static Bool_t ConnectToClass (TQObject *sender, const char *signal, TClass *receiver_class, void *receiver, const char *slot)
 Create connection between sender and receiver.
static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
 Save object constructor in the output stream "out".
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
 Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Int_t flag=0)
 Save array in the output stream "out" as vector.

Protected Attributes

Bool_t fAbsCoord
 Use absolute coordinates.
Double_t fAbsHNDC
 Absolute Height of pad along Y in NDC.
Double_t fAbsPixeltoXk
 Conversion coefficient for absolute pixel to X World.
Double_t fAbsPixeltoYk
 Conversion coefficient for absolute pixel to Y World.
Double_t fAbsWNDC
 Absolute Width of pad along X in NDC.
Double_t fAbsXlowNDC
 Absolute X top left corner of pad in NDC [0,1].
Double_t fAbsYlowNDC
 Absolute Y top left corner of pad in NDC [0,1].
Float_t fAfile
 Alignment for the file name.
Double_t fAspectRatio
 ratio of w/h in case of fixed ratio
Float_t fAstat
 Alignment for the statistics.
TButtonfBackward {nullptr}
 Pointer to the Backward button.
Bool_t fBatch
 ! True when in batchmode
Short_t fBorderMode
 Bordermode (-1=down, 0 = no border, 1=up).
Short_t fBorderSize
 pad bordersize in pixels
Float_t fBottomMargin
 BottomMargin.
TCanvasfCanvas {nullptr}
 ! Pointer to mother canvas
Int_t fCanvasID
 ! Canvas identifier
TCanvasImpfCanvasImp
 ! Window system specific canvas implementation
TAttCanvas fCatt
 Canvas attributes.
Int_t fCGnx
 ! Size of the collide grid along x
Int_t fCGny
 ! Size of the collide grid along y
UInt_t fCh
 Height of the canvas along Y (pixels).
TObjectfClickSelected
 ! Currently click-selected object
TPadfClickSelectedPad
 ! Pad containing currently click-selected object
std::vector< Bool_tfCollideGrid
 ! Grid used to find empty space when adding a box (Legend) in a pad
TContextMenufContextMenu
 ! Context menu pointer
Bool_t fCopyGLDevice
 !
Int_t fCrosshair
 Crosshair type (0 if no crosshair requested).
Int_t fCrosshairPos
 Position of crosshair.
TObjectfCurObject {nullptr}
 Pointer to object being inspected.
UInt_t fCw
 Width of the canvas along X (pixels).
TString fDISPLAY
 Name of destination screen.
Int_t fDoubleBuffer
 Double buffer flag (0=off, 1=on).
Bool_t fDrawn
 ! Set to True when the Draw method is called
Bool_t fEditable
 True if canvas is editable.
Bool_t fEmbeddedGL
 !
Int_t fEvent
 ! Type of current or last handled event
Int_t fEventX
 ! Last X mouse position in canvas
Int_t fEventY
 ! Last Y mouse position in canvas
TListfExecs {nullptr}
 List of commands to be executed when a pad event occurs.
Color_t fFillColor
 Fill area color.
Style_t fFillStyle
 Fill area style.
Bool_t fFixedAspectRatio
 True if fixed aspect ratio.
TButtonfForward {nullptr}
 Pointer to the Forward button.
TFramefFrame {nullptr}
 ! Pointer to 2-D frame (if one exists)
Int_t fFrameBorderMode
 Pad frame border mode.
Width_t fFrameBorderSize
 Pad frame border size.
Color_t fFrameFillColor
 Pad frame fill color.
Style_t fFrameFillStyle
 Pad frame fill style.
Color_t fFrameLineColor
 Pad frame line color.
Style_t fFrameLineStyle
 Pad frame line style.
Width_t fFrameLineWidth
 Pad frame line width.
Int_t fGLDevice
 ! OpenGL off-screen pixmap identifier
Bool_t fGridx
 Set to true if grid along X.
Bool_t fGridy
 Set to true if grid along Y.
Color_t fHighLightColor
 Highlight color of active pad.
TVirtualPadfHilightPadBorder = nullptr
 ! pad which border will be hilghlighrt when paint canvas
Double_t fHNDC
 Height of pad along Y in Normalized Coordinates (NDC).
Float_t fLeftMargin
 LeftMargin.
Color_t fLineColor
 Line color.
Style_t fLineStyle
 Line style.
Width_t fLineWidth
 Line width.
TListfListOfConnections
 ! list of connections to this object
TListfListOfSignals
 ! list of signals from this object
Int_t fLogx
 (=0 if X linear scale, =1 if log scale)
Int_t fLogy
 (=0 if Y linear scale, =1 if log scale)
Int_t fLogz
 (=0 if Z linear scale, =1 if log scale)
Bool_t fModified
 Set to true when pad is modified.
TPadfMother {nullptr}
 ! pointer to mother of the list
TString fName
 Pad name.
Int_t fNextPaletteColor
 Next automatic color.
Int_t fNumber
 pad number identifier
Int_t fNumPaletteColor
 Number of objects with an automatic color.
TListfObjects {nullptr}
 List of objects inspected.
Int_t fPadPaint
 Set to 1 while painting the pad.
TObjectfPadPointer {nullptr}
 ! free pointer
TPadfPadSave
 ! Pointer to saved pad in HandleInput
TObjectfPadView3D {nullptr}
 ! 3D View of this TPad
TVirtualPadPainterfPainter
 ! Canvas (pad) painter.
Double_t fPhi
 phi angle to view as lego/surface
Double_t fPixeltoX
 xworld = fPixeltoXk + fPixeltoX*xpixel
Double_t fPixeltoXk
 Conversion coefficient for pixel to X World.
Double_t fPixeltoY
 yworld = fPixeltoYk + fPixeltoY*ypixel
Double_t fPixeltoYk
 Conversion coefficient for pixel to Y World.
Int_t fPixmapID
 ! Off-screen pixmap identifier
TListfPrimitives {nullptr}
 ->List of primitives (subpads)
Bool_t fResizing
 !true when resizing the pad
Bool_t fRetained
 Retain structure flag.
Float_t fRightMargin
 RightMargin.
TObjectfSelected
 ! Currently selected object
TString fSelectedOpt
 ! Drawing option of selected object
TPadfSelectedPad
 ! Pad containing currently selected object
Int_t fSelectedX
 ! X of selected object
Int_t fSelectedY
 ! Y of selected object
Bool_t fSignalsBlocked
 ! flag used for suppression of signals
Short_t fTextAlign
 Text alignment.
Float_t fTextAngle
 Text angle.
Color_t fTextColor
 Text color.
Font_t fTextFont
 Text font.
Float_t fTextSize
 Text size.
Double_t fTheta
 theta angle to view as lego/surface
Int_t fTickx
 Set to 1 if tick marks along X.
Int_t fTicky
 Set to 1 if tick marks along Y.
TString fTitle
 Pad title.
Float_t fTopMargin
 TopMargin.
Bool_t fUpdated
 ! Set to True when Update method was called
Bool_t fUpdating
 ! True when Updating the canvas
Bool_t fUseGL
 ! True when rendering is with GL
Double_t fUtoAbsPixelk
 Conversion coefficient for U NDC to absolute pixel.
Double_t fUtoPixel
 xpixel = fUtoPixelk + fUtoPixel*undc
Double_t fUtoPixelk
 Conversion coefficient for U NDC to pixel.
Double_t fUxmax
 Maximum value on the X axis.
Double_t fUxmin
 Minimum value on the X axis.
Double_t fUymax
 Maximum value on the Y axis.
Double_t fUymin
 Minimum value on the Y axis.
TViewfView {nullptr}
 ! Pointer to 3-D view (if one exists)
TVirtualViewer3DfViewer3D {nullptr}
 ! Current 3D viewer
Double_t fVtoAbsPixelk
 Conversion coefficient for V NDC to absolute pixel.
Double_t fVtoPixel
 ypixel = fVtoPixelk + fVtoPixel*vndc
Double_t fVtoPixelk
 Conversion coefficient for V NDC to pixel.
UInt_t fWindowHeight
 Height of window (including menubar, borders, etc.).
Int_t fWindowTopX
 Top X position of window (in pixels).
Int_t fWindowTopY
 Top Y position of window (in pixels).
UInt_t fWindowWidth
 Width of window (including borders, etc.).
Double_t fWNDC
 Width of pad along X in Normalized Coordinates (NDC).
Double_t fX1
 X of lower X coordinate.
Double_t fX2
 X of upper X coordinate.
Float_t fXfile
 X position where to draw the file name.
Double_t fXlowNDC
 X bottom left corner of pad in NDC [0,1].
Size_t fXsizeReal
 Current size of canvas along X in CM.
Size_t fXsizeUser
 User specified size of canvas along X in CM.
Float_t fXstat
 X position where to draw the statistics.
Double_t fXtoAbsPixelk
 Conversion coefficient for X World to absolute pixel.
Double_t fXtoPixel
 xpixel = fXtoPixelk + fXtoPixel*xworld
Double_t fXtoPixelk
 Conversion coefficient for X World to pixel.
Double_t fXUpNDC
Double_t fY1
 Y of lower Y coordinate.
Double_t fY2
 Y of upper Y coordinate.
Float_t fYfile
 Y position where to draw the file name.
Double_t fYlowNDC
 Y bottom left corner of pad in NDC [0,1].
Size_t fYsizeReal
 Current size of canvas along Y in CM.
Size_t fYsizeUser
 User specified size of canvas along Y in CM.
Float_t fYstat
 Y position where to draw the statistics.
Double_t fYtoAbsPixelk
 Conversion coefficient for Y World to absolute pixel.
Double_t fYtoPixel
 ypixel = fYtoPixelk + fYtoPixel*yworld
Double_t fYtoPixelk
 Conversion coefficient for Y World to pixel.
Double_t fYUpNDC

Static Protected Attributes

static Bool_t fgAllSignalsBlocked = kFALSE
static Bool_t fgIsFolder = kFALSE
 Indicates if canvas can be browsed as a folder.
static Int_t fgMaxPickDistance = 5
 Maximum Pick Distance.

Private Member Functions

void Build ()
 Build a canvas. Called by all constructors.
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.
void CopyBackgroundPixmaps (TPad *stop, Int_t x, Int_t y)
 Copy pixmaps of pads laying below pad "stop" into pad "stop".
void CopyPixmaps () override
 Copy the canvas pixmap of the pad to the canvas.
void CreatePainter ()
 Probably, TPadPainter must be placed in a separate ROOT module - "padpainter" (the same as "histpainter").
void DrawDist (Rectangle_t aBBox, Rectangle_t bBBox, char mode)
 Draw Arrows to indicated equal distances of Objects with given BBoxes.
void DrawEventStatus (Int_t event, Int_t x, Int_t y, TObject *selected)
 Report name and title of primitive below the cursor.
Bool_t EnsurePSPainter (Bool_t create, TVirtualPadPainter *&oldp)
 Replace canvas painter For intenral use only - when creating PS images.
void FillCollideGrid (TObject *o)
 Initialise the grid used to find empty space when adding a box (Legend) in a pad.
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.
void RunAutoExec ()
 Execute the list of TExecs in the current pad.

Static Private Member Functions

static void AddToTObjectTable (TObject *)
 Private helper function which will dispatch to TObjectTable::AddObj.

Private Attributes

UInt_t fBits
 bit field status word
TObjectfTip {nullptr}
 ! tool tip associated with box
UInt_t fUniqueID
 object unique identifier

Static Private Attributes

static Longptr_t fgDtorOnly = 0
 object for which to call dtor only (i.e. no delete)
static Bool_t fgObjectStat = kTRUE
 if true keep track of objects in TObjectTable

#include <TInspectCanvas.h>

Inheritance diagram for TInspectCanvas:
TCanvas TAttText TPad TVirtualPad TAttBBox2D TObject TAttLine TAttFill TAttPad TQObject

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
kOnlyPrepStep 

Used to request that the class specific implementation of TObject::Write just prepare the objects to be ready to be written but do not actually write them into the TBuffer.

This is just for example by TBufferMerger to request that the TTree inside the file calls TTree::FlushBaskets (outside of the merging lock) and TBufferMerger will later ask for the write (inside the merging lock). To take advantage of this feature the class needs to overload TObject::Write and use this enum value accordingly. (See TTree::Write and TObject::Write) Do not use, this feature will be migrate to the Merge function (See TClass and TTree::Merge)

Definition at line 106 of file TObject.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kFraming 

Frame is requested.

kHori 

Pad is horizontal.

kClipFrame 

Clip on frame.

kPrintingPS 

PS Printing.

kCannotMove 

Fixed position.

kClearAfterCR 

Clear after CR.

Definition at line 152 of file TPad.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kSingleKey 

write collection with single key

kOverwrite 

overwrite existing object with same name

kWriteDelete 

write object, then delete previous key with same name

Definition at line 99 of file TObject.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kIsOnHeap 

object is on heap

kNotDeleted 

object has not been deleted

kZombie 

object ctor failed

kInconsistent 

class overload Hash but does call RecursiveRemove in destructor

kBitMask 

Definition at line 89 of file TObject.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kShowEventStatus 
kAutoExec 
kMenuBar 
kShowToolBar 
kShowEditor 
kMoveOpaque 
kResizeOpaque 
kIsGrayscale 
kShowToolTips 

Definition at line 92 of file TCanvas.h.

◆ EDeprecatedStatusBits

Enumerator
kObjInCanvas 

for backward compatibility only, use kMustCleanup

Definition at line 84 of file TObject.h.

◆ EStatusBits

enum TObject::EStatusBits
inherited
Enumerator
kCanDelete 

if object in a list can be deleted

kMustCleanup 

if object destructor must call RecursiveRemove()

kIsReferenced 

if object is referenced by a TRef or TRefArray

kHasUUID 

if object has a TUUID (its fUniqueID=UUIDNumber)

kCannotPick 

if object in a pad cannot be picked

kNoContextMenu 

if object does not want context menu

kInvalidObject 

if object ctor succeeded but object should not be used

Definition at line 70 of file TObject.h.

Constructor & Destructor Documentation

◆ TInspectCanvas() [1/2]

TInspectCanvas::TInspectCanvas ( )

InspectCanvas default constructor.

Definition at line 65 of file TInspectCanvas.cxx.

◆ TInspectCanvas() [2/2]

TInspectCanvas::TInspectCanvas ( UInt_t ww,
UInt_t wh )

InspectCanvas constructor.

Definition at line 75 of file TInspectCanvas.cxx.

◆ ~TInspectCanvas()

TInspectCanvas::~TInspectCanvas ( )
override

InspectCanvas default destructor.

Definition at line 87 of file TInspectCanvas.cxx.

Member Function Documentation

◆ AbsCoordinates()

void TPad::AbsCoordinates ( Bool_t set)
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 166 of file TPad.h.

◆ AbsPixeltoX()

Double_t TPad::AbsPixeltoX ( Double_t px)
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 167 of file TPad.h.

◆ AbsPixeltoXY()

void TPad::AbsPixeltoXY ( Double_t xpixel,
Double_t ypixel,
Double_t & x,
Double_t & y )
overridevirtualinherited

Convert absolute pixel into X/Y coordinates.

Implements TVirtualPad.

Definition at line 7360 of file TPad.cxx.

◆ AbsPixeltoY()

Double_t TPad::AbsPixeltoY ( Double_t py)
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 168 of file TPad.h.

◆ AbstractMethod()

void TObject::AbstractMethod ( const char * method) const
inherited

Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.

In other word, this method acts as a "runtime purely virtual" warning instead of a "compiler purely virtual" error.

Warning
This interface is a legacy function that is no longer recommended to be used by new development code.
Note
The name "AbstractMethod" does not imply that it's an abstract method in the strict C++ sense.

Definition at line 1149 of file TObject.cxx.

◆ Add()

void TPad::Add ( TObject * obj,
Option_t * opt = "",
Bool_t modified = kTRUE )
overridevirtualinherited

Add an object to list of primitives with specified draw option When.

modified set to kTRUE (default) pad will be marked as modified
Let avoid usage of gPad when drawing object(s) in canvas or in subpads.
auto c1 = new TCanvas("c1","Canvas with subpoads", 600, 600);
c1->Divide(2,2);
for (Int_t n = 1; n <= 4; ++n) {
auto h1 = new TH1I(TString::Format("hist_%d",n), "Random hist", 100, -5, 5);
h1->FillRandom("gaus", 2000 + n*1000);
c1->GetPad(n)->Add(h1);
}
int Int_t
Signed integer 4 bytes (int).
Definition RtypesCore.h:59
TCanvas(const TCanvas &canvas)=delete
1-D histogram with an int per channel (see TH1 documentation)
Definition TH1.h:796
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Definition TString.cxx:2385
return c1
Definition legend1.C:41
const Int_t n
Definition legend1.C:16
TH1F * h1
Definition legend1.C:5

Implements TVirtualPad.

Definition at line 419 of file TPad.cxx.

◆ AddExec()

void TPad::AddExec ( const char * name,
const char * command )
overridevirtualinherited

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.

Example1 of use of exec1.C

Root > TFile f("hsimple.root")
Root > hpx.Draw()
Root > c1.AddExec("ex1",".x exec1.C")
#define f(i)
Definition RSha256.hxx:104
void Draw(Option_t *option="") override
Draw a canvas.
Definition TCanvas.cxx:853
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
Definition TFile.h:130
void AddExec(const char *name, const char *command) override
Add a new TExec object to the list of Execs.
Definition TPad.cxx:499

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.

Example2 of use of exec1.C

Root > TFile f("hsimple.root")
Root > hpxpy.Draw()
Root > c1.AddExec("ex2",".x exec2.C")

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.

Definition at line 499 of file TPad.cxx.

◆ AddFirst()

void TPad::AddFirst ( TObject * obj,
Option_t * opt = "",
Bool_t modified = kTRUE )
overridevirtualinherited

Add an object as first in list of primitives with specified draw option When.

modified set to kTRUE (default) pad will be marked as modified
Let avoid usage of gPad when drawing object(s) in canvas or in subpads.

Implements TVirtualPad.

Definition at line 440 of file TPad.cxx.

◆ AddToTObjectTable()

void TObject::AddToTObjectTable ( TObject * op)
staticprivateinherited

Private helper function which will dispatch to TObjectTable::AddObj.

Included here to avoid circular dependency between header files.

Definition at line 195 of file TObject.cxx.

◆ AppendPad()

void TObject::AppendPad ( Option_t * option = "")
virtualinherited

Append graphics object to current pad.

In case no current pad is set yet, create a default canvas with the name "c1".

Definition at line 204 of file TObject.cxx.

◆ AreAllSignalsBlocked()

Bool_t TQObject::AreAllSignalsBlocked ( )
staticinherited

Returns true if all signals are blocked.

Definition at line 1045 of file TQObject.cxx.

◆ AreSignalsBlocked()

Bool_t TQObject::AreSignalsBlocked ( ) const
inlineinherited

Definition at line 91 of file TQObject.h.

◆ AutoExec()

void TPad::AutoExec ( )
virtualinherited

Execute the list of Execs when a pad event occurs.

Definition at line 509 of file TPad.cxx.

◆ BlockAllSignals()

Bool_t TQObject::BlockAllSignals ( Bool_t b)
staticinherited

Block or unblock all signals. Returns the previous block status.

Definition at line 1053 of file TQObject.cxx.

◆ BlockSignals()

Bool_t TQObject::BlockSignals ( Bool_t b)
inlineinherited

Definition at line 92 of file TQObject.h.

◆ Browse()

void TCanvas::Browse ( TBrowser * b)
overridevirtualinherited

Browse.

Reimplemented from TObject.

Definition at line 682 of file TCanvas.cxx.

◆ Build()

void TCanvas::Build ( )
privateinherited

Build a canvas. Called by all constructors.

Definition at line 586 of file TCanvas.cxx.

◆ BuildLegend()

TLegend * TPad::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 = "" )
overridevirtualinherited

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.

Returns
The built TLegend
Parameters
[in]x1,y1,x2,y2The TLegend coordinates
[in]titleThe legend title. By default it is " "
[in]optionThe 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.

Automatic placement of the legend

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.

Definition at line 556 of file TPad.cxx.

◆ cd()

TVirtualPad * TCanvas::cd ( Int_t subpadnumber = 0)
overridevirtualinherited

Set current canvas & pad.

Returns the new current pad, or 0 in case of failure. See TPad::cd() for an explanation of the parameter.

Implements TVirtualPad.

Definition at line 716 of file TCanvas.cxx.

◆ ChangedBy()

virtual void TQObject::ChangedBy ( const char * method)
inlinevirtualinherited

Definition at line 199 of file TQObject.h.

◆ CheckConnectArgs()

Int_t TQObject::CheckConnectArgs ( TQObject * sender,
TClass * sender_class,
const char * signal,
TClass * receiver_class,
const char * slot )
staticprotectedinherited

Checking of consistency of sender/receiver methods/arguments.

Returns -1 on error, otherwise number or arguments of signal function. Static method.

Definition at line 175 of file TQObject.cxx.

◆ CheckedHash()

ULong_t TObject::CheckedHash ( )
inlineinherited

Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.

The intent is for this routine to be called instead of directly calling the function Hash during "insert" operations. See TObject::HasInconsistenTObjectHash();

(*) The setup is consistent when all classes in the class hierarchy that overload TObject::Hash do call ROOT::CallRecursiveRemoveIfNeeded in their destructor. i.e. it is safe to call the Hash virtual function during the RecursiveRemove operation.

Definition at line 332 of file TObject.h.

◆ Class()

TClass * TInspectCanvas::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

const char * TInspectCanvas::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

constexpr Version_t TInspectCanvas::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 56 of file TInspectCanvas.h.

◆ ClassName()

const char * TObject::ClassName ( ) const
virtualinherited

Returns name of class to which the object belongs.

Definition at line 227 of file TObject.cxx.

◆ Clear()

void TCanvas::Clear ( Option_t * option = "")
overridevirtualinherited

Remove all primitives from the canvas.

If option "D" is specified, direct sub-pads are cleared but not deleted. This option is not recursive, i.e. pads in direct sub-pads are deleted.

Implements TVirtualPad.

Definition at line 734 of file TCanvas.cxx.

◆ Cleared()

void TCanvas::Cleared ( TVirtualPad * pad)
virtualinherited

Emit pad Cleared signal.

Definition at line 767 of file TCanvas.cxx.

◆ ClearPadSave()

void TCanvas::ClearPadSave ( )
inlineinherited

Definition at line 144 of file TCanvas.h.

◆ Clip() [1/2]

Int_t TPad::Clip ( Double_t * x,
Double_t * y,
Double_t xclipl,
Double_t yclipb,
Double_t xclipr,
Double_t yclipt )
overridevirtualinherited

Clipping routine: Cohen Sutherland algorithm.

  • If Clip ==2 the segment is outside the boundary.
  • If Clip ==1 the segment has one point outside the boundary.
  • If Clip ==0 the segment is inside the boundary.
Parameters
[in,out]x[],y[]Segment coordinates (2 points)
[in]xclipl,yclipb,xclipr,ycliptClipping boundary

Implements TVirtualPad.

Definition at line 833 of file TPad.cxx.

◆ Clip() [2/2]

Int_t TPad::Clip ( Float_t * x,
Float_t * y,
Float_t xclipl,
Float_t yclipb,
Float_t xclipr,
Float_t yclipt )
virtualinherited

Clipping routine: Cohen Sutherland algorithm.

  • If Clip ==2 the segment is outside the boundary.
  • If Clip ==1 the segment has one point outside the boundary.
  • If Clip ==0 the segment is inside the boundary.
Parameters
[in,out]x[],y[]Segment coordinates (2 points)
[in]xclipl,yclipb,xclipr,ycliptClipping boundary

Definition at line 771 of file TPad.cxx.

◆ ClippingCode()

Int_t TPad::ClippingCode ( Double_t x,
Double_t y,
Double_t xcl1,
Double_t ycl1,
Double_t xcl2,
Double_t ycl2 )
virtualinherited

Compute the endpoint codes for TPad::Clip.

Definition at line 904 of file TPad.cxx.

◆ ClipPolygon()

Int_t TPad::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 )
virtualinherited

Clip polygon using the Sutherland-Hodgman algorithm.

Parameters
[in]nNumber of points in the polygon to be clipped
[in]x,yPolygon x[n], y[n] do be clipped vertices
[in]xclipl,yclipb,xclipr,ycliptClipping boundary
[out]nnNumber of points in xc and yc
[out]xc,ycClipped 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:

  • Polygons can be clipped against each edge of the window one at a time. Windows/edge intersections, if any, are easy to find since the X or Y coordinates are already known.
  • Vertices which are kept after clipping against one window edge are saved for clipping against the remaining edges.
  • Note that the number of vertices usually changes and will often increases.

The clip boundary determines a visible and invisible region. The edges from vertex i to vertex i+1 can be one of four types:

  • Case 1 : Wholly inside visible region - save endpoint
  • Case 2 : Exit visible region - save the intersection
  • Case 3 : Wholly outside visible region - save nothing
  • Case 4 : Enter visible region - save intersection and endpoint

Definition at line 953 of file TPad.cxx.

◆ Clone()

TObject * TObject::Clone ( const char * newname = "") const
virtualinherited

Make a clone of an object using the Streamer facility.

If the object derives from TNamed, this function is called by TNamed::Clone. TNamed::Clone uses the optional argument to set a new name to the newly created object.

If the object class has a DirectoryAutoAdd function, it will be called at the end of the function with the parameter gDirectory. This usually means that the object will be appended to the current ROOT directory.

Reimplemented in RooAbsArg, RooAbsBinning, RooAbsCollection, RooAbsStudy, RooCatType, RooCmdArg, RooDataHist, RooDataSet, RooFitResult, RooLinkedList, RooStats::HypoTestResult, RooStats::ModelConfig, RooStudyPackage, RooTemplateProxy< T >, RooTemplateProxy< const RooHistFunc >, RooTemplateProxy< RooAbsCategory >, RooTemplateProxy< RooAbsPdf >, RooTemplateProxy< RooAbsReal >, RooTemplateProxy< RooAbsRealLValue >, RooTemplateProxy< RooMultiCategory >, RooTemplateProxy< RooRealVar >, RooWorkspace, TASImage, TChainIndex, TClass, TCollection, TF1, TFunction, TFunctionTemplate, TH1, TImage, TMethod, TMethodCall, TMinuit, TMVA::MinuitWrapper, TNamed, TStreamerInfo, and TTreeIndex.

Definition at line 243 of file TObject.cxx.

◆ Close()

void TCanvas::Close ( Option_t * option = "")
overridevirtualinherited

Close canvas.

Delete window/pads data structure

Implements TVirtualPad.

Definition at line 785 of file TCanvas.cxx.

◆ Closed()

void TCanvas::Closed ( )
overridevirtualinherited

Emit Closed signal.

Reimplemented from TPad.

Definition at line 775 of file TCanvas.cxx.

◆ CloseToolTip()

void TPad::CloseToolTip ( TObject * tip)
overridevirtualinherited

Hide tool tip.

Implements TVirtualPad.

Definition at line 7086 of file TPad.cxx.

◆ CollectClassSignalLists()

void TQObject::CollectClassSignalLists ( TList & list,
TClass * cls )
inherited

Collect class signal lists from class cls and all its base-classes.

The recursive traversal is not performed for classes not deriving from TQClass.

Definition at line 447 of file TQObject.cxx.

◆ Collide()

Bool_t TPad::Collide ( Int_t i,
Int_t j,
Int_t w,
Int_t h )
privateinherited

Check if a box of size w and h collide some primitives in the pad at position i,j.

Definition at line 3207 of file TPad.cxx.

◆ Compare()

Int_t TObject::Compare ( const TObject * obj) const
virtualinherited

Compare abstract method.

Must be overridden if a class wants to be able to compare itself with other objects. Must return -1 if this is smaller than obj, 0 if objects are equal and 1 if this is larger than obj.

Reimplemented in RooAbsArg, RooDouble, TCollection, TEnvRec, TFileInfo, TGeoBranchArray, TGeoOverlap, TGFSFrameElement, TGLBFrameElement, TNamed, TObjString, TParameter< AParamType >, TParameter< Long64_t >, TStructNode, TStructNodeProperty, and TUrl.

Definition at line 258 of file TObject.cxx.

◆ CompressName()

TString TQObject::CompressName ( const char * method_name)
staticprotectedinherited

Removes "const" words and blanks from full (with prototype) method name and resolve any typedefs in the method signature.

If a null or empty string is passed in, an empty string is returned.

Example:

CompressName(" Draw(const char *, const char *,
Option_t * , Int_t , Int_t)");
static TString CompressName(const char *method_name)
Removes "const" words and blanks from full (with prototype) method name and resolve any typedefs in t...
Definition TQObject.cxx:94

returns the string "Draw(char*,char*,char*,int,int)".

Definition at line 94 of file TQObject.cxx.

◆ Connect() [1/3]

Bool_t TQObject::Connect ( const char * class_name,
const char * signal,
const char * cl,
void * receiver,
const char * slot )
staticinherited

This method allows to make a connection from any object of the same class to a single slot.

Signal and slot string must have a form: "Draw(char*, Option_t* ,Int_t)" All blanks and "const" words will be removed,

cl != 0 - class name, it can be class with or without dictionary, e.g interpreted class. Example:

TGButton *myButton;
TH2F *myHist;
TQObject::Connect("TGButton", "Clicked()",
"TH2F", myHist, "Draw(Option_t*)");
A button abstract base class.
Definition TGButton.h:68
2-D histogram with a float per channel (see TH1 documentation)
Definition TH2.h:345
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.
Definition TQObject.cxx:865

cl == 0 - corresponds to function (interpereted or global) the name of the function is defined by the slot string, parameter receiver should be 0. Example:

TGButton *myButton;
TH2F *myHist;
TQObject::Connect("TGButton", "Clicked()",
0, 0, "hsimple()");

Warning:

If receiver class not derived from TQObject and going to be deleted, disconnect all connections to this receiver. In case of class derived from TQObject it is done automatically.

Definition at line 791 of file TQObject.cxx.

◆ Connect() [2/3]

Bool_t TQObject::Connect ( const char * signal,
const char * receiver_class,
void * receiver,
const char * slot )
inherited

Non-static method is used to connect from the signal of this object to the receiver slot.

Warning! No check on consistency of sender/receiver classes/methods.

This method makes possible to have connection/signals from interpreted class. See also RQ_OBJECT.h.

Definition at line 865 of file TQObject.cxx.

◆ Connect() [3/3]

Bool_t TQObject::Connect ( TQObject * sender,
const char * signal,
const char * cl,
void * receiver,
const char * slot )
staticinherited

Create connection between sender and receiver.

Signal and slot string must have a form: "Draw(char*, Option_t* ,Int_t)" All blanks and "const" words will be removed,

cl != 0 - class name, it can be class with or without dictionary, e.g interpreted class. Example:

TGButton *myButton;
TH2F *myHist;
TQObject::Connect(myButton,"Clicked()",
"TH2F", myHist,"Draw(Option_t*)");

cl == 0 - corresponds to function (interpereted or global) the name of the function is defined by the slot string, parameter receiver should be 0. Example:

TGButton *myButton;
TH2F *myHist;
TQObject::Connect(myButton,"Clicked()",
0, 0,"hsimple()");

Warning: If receiver is class not derived from TQObject and going to be deleted, disconnect all connections to this receiver. In case of class derived from TQObject it is done automatically.

Definition at line 699 of file TQObject.cxx.

◆ Connected()

virtual void TQObject::Connected ( const char * )
inlinevirtualinherited

Definition at line 194 of file TQObject.h.

◆ ConnectToClass() [1/2]

Bool_t TQObject::ConnectToClass ( const char * class_name,
const char * signal,
TClass * cl,
void * receiver,
const char * slot )
staticprotectedinherited

This method allows to make connection from any object of the same class to the receiver object.

Receiver class needs to have a dictionary.

Definition at line 615 of file TQObject.cxx.

◆ ConnectToClass() [2/2]

Bool_t TQObject::ConnectToClass ( TQObject * sender,
const char * signal,
TClass * cl,
void * receiver,
const char * slot )
staticprotectedinherited

Create connection between sender and receiver.

Receiver class needs to have a dictionary.

Definition at line 559 of file TQObject.cxx.

◆ Constructor() [1/4]

void TCanvas::Constructor ( )
inherited

Canvas default constructor.

Definition at line 190 of file TCanvas.cxx.

◆ Constructor() [2/4]

void TCanvas::Constructor ( const char * name,
const char * title,
Int_t form )
inherited

Create a new canvas with a predefined size form.

If form < 0 the menubar is not shown.

  • form = 1 700x500 at 10,10 (set by TStyle::SetCanvasDefH,W,X,Y)
  • form = 2 500x500 at 20,20
  • form = 3 500x500 at 30,30
  • form = 4 500x500 at 40,40
  • form = 5 500x500 at 50,50

Definition at line 286 of file TCanvas.cxx.

◆ Constructor() [3/4]

void TCanvas::Constructor ( const char * name,
const char * title,
Int_t wtopx,
Int_t wtopy,
Int_t ww,
Int_t wh )
inherited

Create a new canvas.

Parameters
[in]namecanvas name
[in]titlecanvas title
[in]wtopx,wtopyare the pixel coordinates of the top left corner of the canvas (if wtopx < 0) the menubar is not shown)
[in]wwis the window size in pixels along X
[in]whis the window size in pixels along Y

Definition at line 477 of file TCanvas.cxx.

◆ Constructor() [4/4]

void TCanvas::Constructor ( const char * name,
const char * title,
Int_t ww,
Int_t wh )
inherited

Create a new canvas at a random position.

Parameters
[in]namecanvas name
[in]titlecanvas title
[in]wwis the window size in pixels along X (if ww < 0 the menubar is not shown)
[in]whis the window size in pixels along Y

Definition at line 388 of file TCanvas.cxx.

◆ Copy() [1/5]

void TAttFill::Copy ( TAttFill & attfill) const
inherited

◆ Copy() [2/5]

void TAttLine::Copy ( TAttLine & attline) const
inherited

◆ Copy() [3/5]

void TAttPad::Copy ( TAttPad & attpad) const
virtualinherited

copy function

Definition at line 43 of file TAttPad.cxx.

◆ Copy() [4/5]

void TAttText::Copy ( TAttText & atttext) const
inherited

◆ Copy() [5/5]

◆ CopyBackgroundPixmaps()

void TPad::CopyBackgroundPixmaps ( TPad * stop,
Int_t x,
Int_t y )
privateinherited

Copy pixmaps of pads laying below pad "stop" into pad "stop".

This gives the effect of pad "stop" being transparent.

Definition at line 3951 of file TPad.cxx.

◆ CopyPixmap()

void TPad::CopyPixmap ( )
overridevirtualinherited

Copy the pixmap of the pad to the canvas.

Implements TVirtualPad.

Definition at line 1143 of file TPad.cxx.

◆ CopyPixmaps()

void TCanvas::CopyPixmaps ( )
overrideprivatevirtualinherited

Copy the canvas pixmap of the pad to the canvas.

Implements TVirtualPad.

Definition at line 835 of file TCanvas.cxx.

◆ CreatePainter()

void TCanvas::CreatePainter ( )
privateinherited

Probably, TPadPainter must be placed in a separate ROOT module - "padpainter" (the same as "histpainter").

But now, it's directly in a gpad dir, so, in case of default painter, no *.so should be loaded, no need in plugin managers. May change in future.

Definition at line 2592 of file TCanvas.cxx.

◆ CreateToolTip()

TObject * TPad::CreateToolTip ( const TBox * b,
const char * text,
Long_t delayms )
overridevirtualinherited

Create a tool tip and return its pointer.

Implements TVirtualPad.

Definition at line 7054 of file TPad.cxx.

◆ DeclFileName()

const char * TInspectCanvas::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 56 of file TInspectCanvas.h.

◆ Delete()

void TCanvas::Delete ( Option_t * option = "")
inlineoverridevirtualinherited

Delete this object.

Typically called as a command via the interpreter. Normally use "delete" operator when object has been allocated on the heap.

Reimplemented from TObject.

Definition at line 124 of file TCanvas.h.

◆ DeleteCanvasPainter()

void TCanvas::DeleteCanvasPainter ( )
inherited

assert on IsBatch() == false?

Definition at line 2646 of file TCanvas.cxx.

◆ DeleteExec()

void TPad::DeleteExec ( const char * name)
overridevirtualinherited

Remove TExec name from the list of Execs.

Implements TVirtualPad.

Definition at line 1175 of file TPad.cxx.

◆ DeleteToolTip()

void TPad::DeleteToolTip ( TObject * tip)
overridevirtualinherited

Delete tool tip object.

Implements TVirtualPad.

Definition at line 7064 of file TPad.cxx.

◆ Destroyed()

virtual void TQObject::Destroyed ( )
inlinevirtualinherited

Reimplemented in TQConnection.

Definition at line 197 of file TQObject.h.

◆ DestroyExternalViewer3D()

void TPad::DestroyExternalViewer3D ( )
protectedinherited

◆ Destructor()

void TCanvas::Destructor ( )
inherited

Actual canvas destructor.

Definition at line 692 of file TCanvas.cxx.

◆ Disconnect() [1/3]

Bool_t TQObject::Disconnect ( const char * class_name,
const char * signal,
void * receiver = nullptr,
const char * slot = nullptr )
staticinherited

Disconnects "class signal".

The class is defined by class_name. See also Connect(class_name,signal,receiver,slot).

Definition at line 1004 of file TQObject.cxx.

◆ Disconnect() [2/3]

Bool_t TQObject::Disconnect ( const char * signal = nullptr,
void * receiver = nullptr,
const char * slot = nullptr )
inherited

Disconnects signal of this object from slot of receiver.

Equivalent to Disconnect(this, signal, receiver, slot)

Definition at line 1023 of file TQObject.cxx.

◆ Disconnect() [3/3]

Bool_t TQObject::Disconnect ( TQObject * sender,
const char * signal = nullptr,
void * receiver = nullptr,
const char * slot = nullptr )
staticinherited

Disconnects signal in object sender from slot_method in object receiver.

For objects derived from TQObject signal-slot connection is removed when either of the objects involved are destroyed.

Disconnect() is typically used in three ways, as the following examples shows:

  • Disconnect everything connected to an object's signals:
    Disconnect(myObject);
    Bool_t Disconnect(const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
    Disconnects signal of this object from slot of receiver.
  • Disconnect everything connected to a signal:
    Disconnect(myObject, "mySignal()");
  • Disconnect a specific receiver:
    Disconnect(myObject, 0, myReceiver, 0);

0 may be used as a wildcard in three of the four arguments, meaning "any signal", "any receiving object" or "any slot in the receiving object", respectively.

The sender has no default and may never be 0 (you cannot disconnect signals from more than one object).

If signal is 0, it disconnects receiver and slot_method from any signal. If not, only the specified signal is disconnected.

If receiver is 0, it disconnects anything connected to signal. If not, slots in objects other than receiver are not disconnected

If slot_method is 0, it disconnects anything that is connected to receiver. If not, only slots named slot_method will be disconnected, and all other slots are left alone. The slot_method must be 0 if receiver is left out, so you cannot disconnect a specifically-named slot on all objects.

Definition at line 956 of file TQObject.cxx.

◆ Disconnected()

virtual void TQObject::Disconnected ( const char * )
inlinevirtualinherited

Definition at line 195 of file TQObject.h.

◆ DisconnectWidget()

void TCanvas::DisconnectWidget ( )
inherited

Used by friend class TCanvasImp.

Definition at line 2555 of file TCanvas.cxx.

◆ DistancetoLine()

Int_t TAttLine::DistancetoLine ( Int_t px,
Int_t py,
Double_t xp1,
Double_t yp1,
Double_t xp2,
Double_t yp2 )
inherited

◆ DistancetoPrimitive()

Int_t TPad::DistancetoPrimitive ( Int_t px,
Int_t py )
overrideprotectedvirtualinherited

Compute distance from point px,py to a box.

Compute the closest distance of approach from point px,py to the edges of this pad. The distance is computed in pixels units.

Reimplemented from TObject.

Definition at line 1191 of file TPad.cxx.

◆ Divide()

void TInspectCanvas::Divide ( Int_t nx = 1,
Int_t ny = 1,
Float_t xmargin = 0.01,
Float_t ymargin = 0.01,
Int_t color = 0 )
inlineoverridevirtual

Implements TVirtualPad.

Definition at line 59 of file TInspectCanvas.h.

◆ DivideRatios()

void TPad::DivideRatios ( Int_t nx,
Int_t ny,
const std::vector< double > & widthRatios = {},
const std::vector< double > & heightRatios = {},
const double canvasTopMargin = 0.,
const double canvasLeftMargin = 0. )
inherited

Divide the canvas according to ratios.

The current canvas is divided in nx by ny according to the width and height ratios. If the ratios are not specified they are assumed to be equal.

Pads are automatically named canvasname_n where n is the division number starting from top left pad.

Top and left margins can be defined.

Definition at line 1394 of file TPad.cxx.

◆ DivideSquare()

void TPad::DivideSquare ( Int_t n,
Float_t xmargin = 0.01,
Float_t ymargin = 0.01,
Int_t color = 0 )
virtualinherited

"n" is the total number of sub-pads.

The number of sub-pads along the X and Y axis are computed according to the square root of n.

Definition at line 1489 of file TPad.cxx.

◆ DoError()

void TObject::DoError ( int level,
const char * location,
const char * fmt,
va_list va ) const
protectedvirtualinherited

Interface to ErrorHandler (protected).

Reimplemented in TThread, and TTreeViewer.

Definition at line 1059 of file TObject.cxx.

◆ Draw()

void TCanvas::Draw ( Option_t * option = "")
overridevirtualinherited

Draw a canvas.

If a canvas with the name is already on the screen, the canvas is repainted. This function is useful when a canvas object has been saved in a Root file. One can then do:

Root > TFile::Open("file.root");
Root > canvas->Draw();
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
Definition TFile.cxx:3787

Implements TVirtualPad.

Definition at line 853 of file TCanvas.cxx.

◆ DrawClass()

void TObject::DrawClass ( ) const
virtualinherited

Draw class inheritance tree of the class to which this object 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. The following picture is the class inheritance tree of class TPaveLabel:

Reimplemented in TGFrame, TSystemDirectory, and TSystemFile.

Definition at line 308 of file TObject.cxx.

◆ DrawClassObject()

void TPad::DrawClassObject ( const TObject * classobj,
Option_t * option = "" )
overridevirtualinherited

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.

Definition at line 1551 of file TPad.cxx.

◆ DrawClone()

TObject * TCanvas::DrawClone ( Option_t * option = "") const
overridevirtualinherited

Draw a clone of this canvas A new canvas is created that is a clone of this canvas.

Reimplemented from TObject.

Definition at line 906 of file TCanvas.cxx.

◆ DrawClonePad()

TObject * TCanvas::DrawClonePad ( )
virtualinherited

Draw a clone of this canvas into the current pad In an interactive session, select the destination/current pad with the middle mouse button, then point to the canvas area to select the canvas context menu item DrawClonePad.

Note that the original canvas may have subpads.

Definition at line 923 of file TCanvas.cxx.

◆ DrawCollideGrid()

void TPad::DrawCollideGrid ( )
inherited

This method draws the collide grid on top of the canvas.

This is used for debugging only. At some point it will be removed.

Definition at line 3501 of file TPad.cxx.

◆ DrawColorTable()

void TPad::DrawColorTable ( )
staticinherited

Static function to Display Color Table in a pad.

Definition at line 1885 of file TPad.cxx.

◆ DrawCrosshair()

void TPad::DrawCrosshair ( )
virtualinherited

Function called to draw a crosshair in the canvas.

Example:

Root > TFile f("hsimple.root");
Root > hpxpy.Draw();
Root > c1.SetCrosshair();

When moving the mouse in the canvas, a crosshair is drawn

  • if the canvas fCrosshair = 1 , the crosshair spans the full canvas
  • if the canvas fCrosshair > 1 , the crosshair spans only the pad

Definition at line 1753 of file TPad.cxx.

◆ DrawDist()

void TPad::DrawDist ( Rectangle_t aBBox,
Rectangle_t bBBox,
char mode )
privateinherited

Draw Arrows to indicated equal distances of Objects with given BBoxes.

Used by ShowGuidelines

Definition at line 6229 of file TPad.cxx.

◆ DrawEventStatus()

void TCanvas::DrawEventStatus ( Int_t event,
Int_t px,
Int_t py,
TObject * selected )
privateinherited

Report name and title of primitive below the cursor.

This function is called when the option "Event Status" in the canvas menu "Options" is selected.

Definition at line 977 of file TCanvas.cxx.

◆ DrawFrame()

TH1F * TPad::DrawFrame ( Double_t xmin,
Double_t ymin,
Double_t xmax,
Double_t ymax,
const char * title = "" )
overridevirtualinherited

Draw an empty pad frame with X and Y axis.

Returns
The pointer to the histogram used to draw the frame.
Parameters
[in]xminX axis lower limit
[in]xmaxX axis upper limit
[in]yminY axis lower limit
[in]ymaxY axis upper limit
[in]titlePad 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.

Example:

{
auto c = new TCanvas("c","c",200,10,500,300);
const Int_t n = 50;
auto g = new TGraph();
for (Int_t i=0;i<n;i++) g->SetPoint(i,i*0.1,100*sin(i*0.1+0.2));
auto frame = c->DrawFrame(0, -110, 2, 110);
frame->GetXaxis()->SetTitle("X axis");
g->Draw("L*");
}
#define c(i)
Definition RSha256.hxx:101
#define g(i)
Definition RSha256.hxx:105

End_Macro

Implements TVirtualPad.

Definition at line 1840 of file TPad.cxx.

◆ Dump()

void TObject::Dump ( ) const
virtualinherited

Dump contents of object on stdout.

Using the information in the object dictionary (class TClass) each data member is interpreted. If a data member is a pointer, the pointer value is printed

The following output is the Dump of a TArrow object:

fAngle 0 Arrow opening angle (degrees)
fArrowSize 0.2 Arrow Size
fOption.*fData
fX1 0.1 X of 1st point
fY1 0.15 Y of 1st point
fX2 0.67 X of 2nd point
fY2 0.83 Y of 2nd point
fUniqueID 0 object unique identifier
fBits 50331648 bit field status word
fFillColor 19 fill area color
fFillStyle 1001 fill area style
#define X(type, name)
Style_t fFillStyle
Fill area style.
Definition TAttFill.h:25
Color_t fFillColor
Fill area color.
Definition TAttFill.h:24
Width_t fLineWidth
Line width.
Definition TAttLine.h:26
Style_t fLineStyle
Line style.
Definition TAttLine.h:25
Color_t fLineColor
Line color.
Definition TAttLine.h:24
virtual void Size(Float_t xsizeuser=0, Float_t ysizeuser=0)
Set the canvas scale in centimeters.
Definition TCanvas.cxx:2196
UInt_t fUniqueID
object unique identifier
Definition TObject.h:46
UInt_t fBits
bit field status word
Definition TObject.h:47
Double_t fX2
X of upper X coordinate.
Definition TPad.h:38
Double_t fX1
X of lower X coordinate.
Definition TPad.h:36
Double_t fY1
Y of lower Y coordinate.
Definition TPad.h:37
Double_t fY2
Y of upper Y coordinate.
Definition TPad.h:39
TLine * line
TCanvas * style()
Definition style.C:1

Reimplemented in TClass, TCollection, TGFrame, TGPack, and TSystemFile.

Definition at line 367 of file TObject.cxx.

◆ EditorBar()

void TCanvas::EditorBar ( )
virtualinherited

Get editor bar.

Definition at line 1038 of file TCanvas.cxx.

◆ EmbedInto()

void TCanvas::EmbedInto ( Int_t winid,
Int_t ww,
Int_t wh )
inherited

Embedded a canvas into a TRootEmbeddedCanvas.

This method is only called via TRootEmbeddedCanvas::AdoptCanvas.

Definition at line 1047 of file TCanvas.cxx.

◆ Emit() [1/2]

void TQObject::Emit ( const char * signal)
inlineinherited

Activate signal without args.

Example: theButton->Emit("Clicked()");

Definition at line 174 of file TQObject.h.

◆ Emit() [2/2]

template<typename T>
void TQObject::Emit ( const char * signal,
const T & arg )
inlineinherited

Activate signal with single parameter.

Example:

theButton->Emit("Progress(Long64_t)",processed)

If we call Emit with an array of the parameters, they should be converted to Longptr_t type. Example:

TQObject *processor; // data processor
TH1F *hist; // filled with processor results
processor->Connect("Evaluated(Float_t,Float_t)",
"TH1F",hist,"Fill12(Axis_t,Axis_t)");
Longptr_t args[2];
args[0] = (Longptr_t)processor->GetValue(1);
args[1] = (Longptr_t)processor->GetValue(2);
processor->Emit("Evaluated(Float_t,Float_t)",args);
long Longptr_t
Integer large enough to hold a pointer (platform-dependent).
Definition RtypesCore.h:89
1-D histogram with a float per channel (see TH1 documentation)
Definition TH1.h:878
This is the ROOT implementation of the Qt object communication mechanism (see also http://www....
Definition TQObject.h:48
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Definition TQObject.h:164

Definition at line 164 of file TQObject.h.

◆ EmitVA()

template<typename... T>
void TQObject::EmitVA ( const char * signal_name,
Int_t ,
const T &... params )
inlineinherited

Emit a signal with a varying number of arguments.

Definition at line 100 of file TQObject.h.

◆ EnsurePSPainter()

Bool_t TCanvas::EnsurePSPainter ( Bool_t create,
TVirtualPadPainter *& oldp )
privateinherited

Replace canvas painter For intenral use only - when creating PS images.

Definition at line 2623 of file TCanvas.cxx.

◆ EnterLeave()

void TCanvas::EnterLeave ( TPad * prevSelPad,
TObject * prevSelObj )
inherited

Generate kMouseEnter and kMouseLeave events depending on the previously selected object and the currently selected object.

Does nothing if the selected object does not change.

Definition at line 1073 of file TCanvas.cxx.

◆ Error()

void TObject::Error ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue error message.

Use "location" to specify the method where the error occurred. Accepts standard printf formatting arguments.

Reimplemented in TFitResult.

Definition at line 1098 of file TObject.cxx.

◆ EventPave()

virtual void TPad::EventPave ( )
inlinevirtualinherited

Definition at line 426 of file TPad.h.

◆ Execute() [1/2]

void TObject::Execute ( const char * method,
const char * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with the given parameter string, e.g.

"3.14,1,\"text\"".

Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.

Definition at line 378 of file TObject.cxx.

◆ Execute() [2/2]

void TObject::Execute ( TMethod * method,
TObjArray * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with parameters stored in the TObjArray.

The TObjArray should contain an argv vector like:

argv[0] ... argv[n] = the list of TObjString parameters
Collectable string class.
Definition TObjString.h:28

Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.

Definition at line 398 of file TObject.cxx.

◆ ExecuteEvent()

void TCanvas::ExecuteEvent ( Int_t event,
Int_t px,
Int_t py )
overrideprotectedvirtualinherited

Execute action corresponding to one event.

This member function must be implemented to realize the action corresponding to the mouse click on the object in the canvas

Only handle mouse motion events in TCanvas, all other events are ignored for the time being

Reimplemented from TObject.

Definition at line 1109 of file TCanvas.cxx.

◆ ExecuteEventAxis()

void TPad::ExecuteEventAxis ( Int_t event,
Int_t px,
Int_t py,
TAxis * axis )
overridevirtualinherited

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.

Definition at line 2347 of file TPad.cxx.

◆ Fatal()

void TObject::Fatal ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue fatal error message.

Use "location" to specify the method where the fatal error occurred. Accepts standard printf formatting arguments.

Definition at line 1126 of file TObject.cxx.

◆ FeedbackMode()

void TCanvas::FeedbackMode ( Bool_t set)
inherited

Turn rubberband feedback mode on or off.

Definition at line 1127 of file TCanvas.cxx.

◆ FillCollideGrid()

void TPad::FillCollideGrid ( TObject * o)
privateinherited

Initialise the grid used to find empty space when adding a box (Legend) in a pad.

Definition at line 3162 of file TPad.cxx.

◆ FillCollideGridTBox()

void TPad::FillCollideGridTBox ( TObject * o)
privateinherited

Definition at line 3345 of file TPad.cxx.

◆ FillCollideGridTFrame()

void TPad::FillCollideGridTFrame ( TObject * o)
privateinherited

Definition at line 3362 of file TPad.cxx.

◆ FillCollideGridTGraph()

void TPad::FillCollideGridTGraph ( TObject * o)
privateinherited

Definition at line 3388 of file TPad.cxx.

◆ FillCollideGridTH1()

void TPad::FillCollideGridTH1 ( TObject * o)
privateinherited

Definition at line 3419 of file TPad.cxx.

◆ FindObject() [1/2]

TObject * TPad::FindObject ( const char * name) const
overridevirtualinherited

Search if object named name is inside this pad or in pads inside this pad.

In case name is in several sub-pads the first one is returned.

Reimplemented from TObject.

Definition at line 2693 of file TPad.cxx.

◆ FindObject() [2/2]

TObject * TPad::FindObject ( const TObject * obj) const
overridevirtualinherited

Search if obj is in pad or in pads inside this pad.

In case obj is in several sub-pads the first one is returned.

Reimplemented from TObject.

Definition at line 2713 of file TPad.cxx.

◆ Flush()

void TCanvas::Flush ( )
inherited

Flush canvas buffers.

Definition at line 1141 of file TCanvas.cxx.

◆ ForceUpdate()

void TCanvas::ForceUpdate ( )
inherited

Force canvas update.

Definition at line 1171 of file TCanvas.cxx.

◆ GetAbsHNDC()

Double_t TPad::GetAbsHNDC ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 225 of file TPad.h.

◆ GetAbsWNDC()

Double_t TPad::GetAbsWNDC ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 224 of file TPad.h.

◆ GetAbsXlowNDC()

Double_t TPad::GetAbsXlowNDC ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 222 of file TPad.h.

◆ GetAbsYlowNDC()

Double_t TPad::GetAbsYlowNDC ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 223 of file TPad.h.

◆ GetAfile()

Float_t TAttPad::GetAfile ( ) const
inlineinherited

Definition at line 47 of file TAttPad.h.

◆ GetAspectRatio()

Double_t TPad::GetAspectRatio ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 226 of file TPad.h.

◆ GetAstat()

Float_t TAttPad::GetAstat ( ) const
inlineinherited

Definition at line 50 of file TAttPad.h.

◆ GetAutoExec()

Bool_t TCanvas::GetAutoExec ( ) const
inlineinherited

Definition at line 156 of file TCanvas.h.

◆ GetBackward()

TButton * TInspectCanvas::GetBackward ( ) const
inline

Definition at line 34 of file TInspectCanvas.h.

◆ GetBBox()

Rectangle_t TPad::GetBBox ( )
overridevirtualinherited

Return the bounding Box of the Pad.

Implements TAttBBox2D.

Definition at line 7234 of file TPad.cxx.

◆ GetBBoxCenter()

TPoint TPad::GetBBoxCenter ( )
overridevirtualinherited

Return the center of the Pad as TPoint in pixels.

Reimplemented from TAttBBox2D.

Definition at line 7251 of file TPad.cxx.

◆ GetBorderMode()

Short_t TPad::GetBorderMode ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 199 of file TPad.h.

◆ GetBorderSize()

Short_t TPad::GetBorderSize ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 200 of file TPad.h.

◆ GetBottomMargin()

Float_t TAttPad::GetBottomMargin ( ) const
inlineinherited

Definition at line 43 of file TAttPad.h.

◆ GetCanvas()

TCanvas * TPad::GetCanvas ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 264 of file TPad.h.

◆ GetCanvasID()

Int_t TCanvas::GetCanvasID ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 161 of file TCanvas.h.

◆ GetCanvasImp()

TCanvasImp * TCanvas::GetCanvasImp ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 162 of file TCanvas.h.

◆ GetCanvasPainter()

TVirtualPadPainter * TCanvas::GetCanvasPainter ( )
inherited

Access and (probably) creation of pad painter.

Definition at line 2613 of file TCanvas.cxx.

◆ GetCanvasPar()

virtual void TCanvas::GetCanvasPar ( Int_t & wtopx,
Int_t & wtopy,
UInt_t & ww,
UInt_t & wh )
inlinevirtualinherited

Definition at line 171 of file TCanvas.h.

◆ GetClickSelected()

TObject * TCanvas::GetClickSelected ( ) const
inlineinherited

Definition at line 146 of file TCanvas.h.

◆ GetClickSelectedPad()

TVirtualPad * TCanvas::GetClickSelectedPad ( ) const
inlineinherited

Definition at line 151 of file TCanvas.h.

◆ GetContextMenu()

TContextMenu * TCanvas::GetContextMenu ( ) const
inlineinherited

Definition at line 137 of file TCanvas.h.

◆ GetCrosshair()

Int_t TPad::GetCrosshair ( ) const
inherited

Return the crosshair type (from the mother canvas) crosshair type = 0 means no crosshair.

Definition at line 6614 of file TPad.cxx.

◆ GetCurObject()

TObject * TInspectCanvas::GetCurObject ( ) const
inline

Definition at line 36 of file TInspectCanvas.h.

◆ GetDISPLAY()

const char * TCanvas::GetDISPLAY ( ) const
inlineinherited

Definition at line 136 of file TCanvas.h.

◆ GetDoubleBuffer()

Int_t TCanvas::GetDoubleBuffer ( ) const
inlineinherited

Definition at line 138 of file TCanvas.h.

◆ GetDrawOption()

Option_t * TObject::GetDrawOption ( ) const
virtualinherited

Get option used by the graphics system to draw this object.

Note that before calling object.GetDrawOption(), you must have called object.Draw(..) before in the current pad.

Reimplemented in TBrowser, TFitEditor, TGedFrame, TGFileBrowser, TRootBrowser, and TRootBrowserLite.

Definition at line 445 of file TObject.cxx.

◆ GetDtorOnly()

Longptr_t TObject::GetDtorOnly ( )
staticinherited

Return destructor only flag.

Definition at line 1196 of file TObject.cxx.

◆ GetEvent()

Int_t TCanvas::GetEvent ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 139 of file TCanvas.h.

◆ GetEventX()

Int_t TCanvas::GetEventX ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 140 of file TCanvas.h.

◆ GetEventY()

Int_t TCanvas::GetEventY ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 141 of file TCanvas.h.

◆ GetFillColor()

virtual Color_t TAttFill::GetFillColor ( ) const
inlinevirtualinherited

Return the fill area color.

Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 32 of file TAttFill.h.

◆ GetFillStyle()

virtual Style_t TAttFill::GetFillStyle ( ) const
inlinevirtualinherited

Return the fill area style.

Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 33 of file TAttFill.h.

◆ GetForward()

TButton * TInspectCanvas::GetForward ( ) const
inline

Definition at line 35 of file TInspectCanvas.h.

◆ GetFrame()

TFrame * TPad::GetFrame ( )
overridevirtualinherited

Get frame.

Implements TVirtualPad.

Definition at line 2982 of file TPad.cxx.

◆ GetFrameBorderMode()

Int_t TAttPad::GetFrameBorderMode ( ) const
inlineinherited

Definition at line 59 of file TAttPad.h.

◆ GetFrameBorderSize()

Width_t TAttPad::GetFrameBorderSize ( ) const
inlineinherited

Definition at line 58 of file TAttPad.h.

◆ GetFrameFillColor()

Color_t TAttPad::GetFrameFillColor ( ) const
inlineinherited

Definition at line 53 of file TAttPad.h.

◆ GetFrameFillStyle()

Style_t TAttPad::GetFrameFillStyle ( ) const
inlineinherited

Definition at line 55 of file TAttPad.h.

◆ GetFrameLineColor()

Color_t TAttPad::GetFrameLineColor ( ) const
inlineinherited

Definition at line 54 of file TAttPad.h.

◆ GetFrameLineStyle()

Style_t TAttPad::GetFrameLineStyle ( ) const
inlineinherited

Definition at line 56 of file TAttPad.h.

◆ GetFrameLineWidth()

Width_t TAttPad::GetFrameLineWidth ( ) const
inlineinherited

Definition at line 57 of file TAttPad.h.

◆ GetGLDevice()

Int_t TPad::GetGLDevice ( )
overridevirtualinherited

Get GL device.

Implements TVirtualPad.

Definition at line 7201 of file TPad.cxx.

◆ GetGridx()

Bool_t TPad::GetGridx ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 237 of file TPad.h.

◆ GetGridy()

Bool_t TPad::GetGridy ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 238 of file TPad.h.

◆ GetHighLightColor()

Color_t TCanvas::GetHighLightColor ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 142 of file TCanvas.h.

◆ GetHNDC()

Double_t TPad::GetHNDC ( ) const
inlineoverridevirtualinherited

Get height of pad along Y in Normalized Coordinates (NDC).

Implements TVirtualPad.

Definition at line 217 of file TPad.h.

◆ GetIconName()

const char * TObject::GetIconName ( ) const
virtualinherited

Returns mime type name of object.

Used by the TBrowser (via TGMimeTypes class). Override for class of which you would like to have different icons for objects of the same class.

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TASImage, TBranch, TBranchElement, TGeoVolume, TGMainFrame, TKey, TMethodBrowsable, TSystemFile, and TVirtualBranchBrowsable.

Definition at line 472 of file TObject.cxx.

◆ GetLeftMargin()

Float_t TAttPad::GetLeftMargin ( ) const
inlineinherited

Definition at line 44 of file TAttPad.h.

◆ GetLineColor()

virtual Color_t TAttLine::GetLineColor ( ) const
inlinevirtualinherited

Return the line color.

Reimplemented in TGraphMultiErrors, and TGWin32VirtualXProxy.

Definition at line 36 of file TAttLine.h.

◆ GetLineStyle()

virtual Style_t TAttLine::GetLineStyle ( ) const
inlinevirtualinherited

Return the line style.

Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 37 of file TAttLine.h.

◆ GetLineWidth()

virtual Width_t TAttLine::GetLineWidth ( ) const
inlinevirtualinherited

Return the line width.

Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 38 of file TAttLine.h.

◆ GetListOfClassSignals()

TList * TQObject::GetListOfClassSignals ( ) const
inherited

Returns pointer to list of signals of this class.

Definition at line 431 of file TQObject.cxx.

◆ GetListOfConnections()

TList * TQObject::GetListOfConnections ( ) const
inlineinherited

Definition at line 89 of file TQObject.h.

◆ GetListOfExecs()

TList * TPad::GetListOfExecs ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 248 of file TPad.h.

◆ GetListOfPrimitives()

TList * TPad::GetListOfPrimitives ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 247 of file TPad.h.

◆ GetListOfSignals()

TList * TQObject::GetListOfSignals ( ) const
inlineinherited

Definition at line 88 of file TQObject.h.

◆ GetLogx()

Int_t TPad::GetLogx ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 258 of file TPad.h.

◆ GetLogy()

Int_t TPad::GetLogy ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 259 of file TPad.h.

◆ GetLogz()

Int_t TPad::GetLogz ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 260 of file TPad.h.

◆ GetMaxPickDistance()

Int_t TPad::GetMaxPickDistance ( )
staticinherited

Static function (see also TPad::SetMaxPickDistance).

Definition at line 2787 of file TPad.cxx.

◆ GetMother()

TVirtualPad * TPad::GetMother ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 261 of file TPad.h.

◆ GetName()

const char * TPad::GetName ( ) const
inlineoverridevirtualinherited

Returns name of object.

This default method returns the class name. Classes that give objects a name should override this method.

Implements TVirtualPad.

Definition at line 262 of file TPad.h.

◆ GetNumber()

Int_t TPad::GetNumber ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 239 of file TPad.h.

◆ GetObjectInfo()

char * TObject::GetObjectInfo ( Int_t px,
Int_t py ) const
virtualinherited

Returns string containing info about the object at position (px,py).

This method is typically overridden by classes of which the objects can report peculiarities for different positions. Returned string will be re-used (lock in MT environment).

Reimplemented in TASImage, TAxis3D, TColorWheel, TF1, TF2, TFileDrawMap, TGeoNode, TGeoTrack, TGeoVolume, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGraph, TH1, THistPainter, TNode, TPaletteAxis, TParallelCoordVar, and TVirtualHistPainter.

Definition at line 491 of file TObject.cxx.

◆ GetObjects()

TList * TInspectCanvas::GetObjects ( ) const
inline

Definition at line 37 of file TInspectCanvas.h.

◆ GetObjectStat()

Bool_t TObject::GetObjectStat ( )
staticinherited

Get status of object stat flag.

Definition at line 1181 of file TObject.cxx.

◆ GetOption()

virtual Option_t * TObject::GetOption ( ) const
inlinevirtualinherited

◆ GetPad()

TVirtualPad * TPad::GetPad ( Int_t subpadnumber) const
overridevirtualinherited

Get a pointer to subpadnumber of this pad.

Implements TVirtualPad.

Definition at line 3027 of file TPad.cxx.

◆ GetPadHeight()

UInt_t TCanvas::GetPadHeight ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 170 of file TCanvas.h.

◆ GetPadPaint()

Int_t TPad::GetPadPaint ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 267 of file TPad.h.

◆ GetPadPar()

void TPad::GetPadPar ( Double_t & xlow,
Double_t & ylow,
Double_t & xup,
Double_t & yup )
overridevirtualinherited

Return lower and upper bounds of the pad in NDC coordinates.

Implements TVirtualPad.

Definition at line 3048 of file TPad.cxx.

◆ GetPadPointer()

TObject * TPad::GetPadPointer ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 252 of file TPad.h.

◆ GetPadSave()

TVirtualPad * TCanvas::GetPadSave ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 143 of file TCanvas.h.

◆ GetPadWidth()

UInt_t TCanvas::GetPadWidth ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 169 of file TCanvas.h.

◆ GetPainter()

TVirtualPadPainter * TPad::GetPainter ( )
overridevirtualinherited

Get pad painter from TCanvas.

Implements TVirtualPad.

Definition at line 7225 of file TPad.cxx.

◆ GetPhi()

Double_t TPad::GetPhi ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 227 of file TPad.h.

◆ GetPixmapID()

Int_t TPad::GetPixmapID ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 268 of file TPad.h.

◆ GetPrimitive()

TObject * TPad::GetPrimitive ( const char * name) const
overridevirtualinherited

Get primitive.

Implements TVirtualPad.

Definition at line 3010 of file TPad.cxx.

◆ GetRange()

void TPad::GetRange ( Double_t & x1,
Double_t & y1,
Double_t & x2,
Double_t & y2 )
overridevirtualinherited

Return pad world coordinates range.

Implements TVirtualPad.

Definition at line 3059 of file TPad.cxx.

◆ GetRangeAxis()

void TPad::GetRangeAxis ( Double_t & xmin,
Double_t & ymin,
Double_t & xmax,
Double_t & ymax )
overridevirtualinherited

Return pad axis coordinates range.

Implements TVirtualPad.

Definition at line 3070 of file TPad.cxx.

◆ GetRightMargin()

Float_t TAttPad::GetRightMargin ( ) const
inlineinherited

Definition at line 45 of file TAttPad.h.

◆ GetSelected()

TObject * TCanvas::GetSelected ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 145 of file TCanvas.h.

◆ GetSelectedOpt()

Option_t * TCanvas::GetSelectedOpt ( ) const
inlineinherited

Definition at line 149 of file TCanvas.h.

◆ GetSelectedPad()

TVirtualPad * TCanvas::GetSelectedPad ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 150 of file TCanvas.h.

◆ GetSelectedX()

Int_t TCanvas::GetSelectedX ( ) const
inlineinherited

Definition at line 147 of file TCanvas.h.

◆ GetSelectedY()

Int_t TCanvas::GetSelectedY ( ) const
inlineinherited

Definition at line 148 of file TCanvas.h.

◆ GetSender()

void * TVirtualPad::GetSender ( )
inlineoverrideprotectedvirtualinherited

Reimplemented from TQObject.

Definition at line 56 of file TVirtualPad.h.

◆ GetSenderClassName()

virtual const char * TQObject::GetSenderClassName ( ) const
inlineprotectedvirtualinherited

Reimplemented in TQObjSender.

Definition at line 58 of file TQObject.h.

◆ GetShowEditor()

Bool_t TCanvas::GetShowEditor ( ) const
inlineinherited

Definition at line 154 of file TCanvas.h.

◆ GetShowEventStatus()

Bool_t TCanvas::GetShowEventStatus ( ) const
inlineinherited

Definition at line 152 of file TCanvas.h.

◆ GetShowToolBar()

Bool_t TCanvas::GetShowToolBar ( ) const
inlineinherited

Definition at line 153 of file TCanvas.h.

◆ GetShowToolTips()

Bool_t TCanvas::GetShowToolTips ( ) const
inlineinherited

Definition at line 155 of file TCanvas.h.

◆ GetTextAlign()

virtual Short_t TAttText::GetTextAlign ( ) const
inlinevirtualinherited

Return the text alignment.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 35 of file TAttText.h.

◆ GetTextAngle()

virtual Float_t TAttText::GetTextAngle ( ) const
inlinevirtualinherited

Return the text angle.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 36 of file TAttText.h.

◆ GetTextColor()

virtual Color_t TAttText::GetTextColor ( ) const
inlinevirtualinherited

Return the text color.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 37 of file TAttText.h.

◆ GetTextFont()

virtual Font_t TAttText::GetTextFont ( ) const
inlinevirtualinherited

Return the text font.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 38 of file TAttText.h.

◆ GetTextSize()

virtual Float_t TAttText::GetTextSize ( ) const
inlinevirtualinherited

Return the text size.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 39 of file TAttText.h.

◆ GetTextSizePercent()

virtual Float_t TAttText::GetTextSizePercent ( Float_t size)
virtualinherited

Return the text in percent of the pad size.

◆ GetTextSizePixels()

virtual Float_t TAttText::GetTextSizePixels ( TVirtualPad & pad) const
virtualinherited

Return the text size in pixels for specified pad.

◆ GetTextSizeRelative()

virtual Float_t TAttText::GetTextSizeRelative ( TVirtualPad & pad) const
virtualinherited

Return the text size in relative units.

◆ GetTheta()

Double_t TPad::GetTheta ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 228 of file TPad.h.

◆ GetTickx()

Int_t TPad::GetTickx ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 240 of file TPad.h.

◆ GetTicky()

Int_t TPad::GetTicky ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 241 of file TPad.h.

◆ GetTitle()

const char * TPad::GetTitle ( ) const
inlineoverridevirtualinherited

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.

Definition at line 263 of file TPad.h.

◆ GetTopMargin()

Float_t TAttPad::GetTopMargin ( ) const
inlineinherited

Definition at line 46 of file TAttPad.h.

◆ GetUniqueID()

UInt_t TObject::GetUniqueID ( ) const
virtualinherited

Return the unique object id.

Definition at line 480 of file TObject.cxx.

◆ GetUxmax()

Double_t TPad::GetUxmax ( ) const
inlineoverridevirtualinherited

Returns the maximum x-coordinate value visible on the pad. If log axis the returned value is in decades.

Implements TVirtualPad.

Definition at line 234 of file TPad.h.

◆ GetUxmin()

Double_t TPad::GetUxmin ( ) const
inlineoverridevirtualinherited

Returns the minimum x-coordinate value visible on the pad. If log axis the returned value is in decades.

Implements TVirtualPad.

Definition at line 230 of file TPad.h.

◆ GetUymax()

Double_t TPad::GetUymax ( ) const
inlineoverridevirtualinherited

Returns the maximum y-coordinate value visible on the pad. If log axis the returned value is in decades.

Implements TVirtualPad.

Definition at line 236 of file TPad.h.

◆ GetUymin()

Double_t TPad::GetUymin ( ) const
inlineoverridevirtualinherited

Returns the minimum y-coordinate value visible on the pad. If log axis the returned value is in decades.

Implements TVirtualPad.

Definition at line 232 of file TPad.h.

◆ GetView()

TView * TPad::GetView ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 256 of file TPad.h.

◆ GetView3D()

TObject * TPad::GetView3D ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 257 of file TPad.h.

◆ GetViewer3D()

TVirtualViewer3D * TPad::GetViewer3D ( Option_t * type = "")
overridevirtualinherited

Create/obtain handle to 3D viewer.

Valid types are:

  • 'pad' - pad drawing via TViewer3DPad any others registered with plugin manager supporting TVirtualViewer3D If an invalid/null type is requested then the current viewer is returned (if any), otherwise a default 'pad' type is returned

Implements TVirtualPad.

Definition at line 7114 of file TPad.cxx.

◆ GetVirtCanvas()

TVirtualPad * TPad::GetVirtCanvas ( ) const
overridevirtualinherited

Get virtual canvas.

Implements TVirtualPad.

Definition at line 2771 of file TPad.cxx.

◆ GetWh()

UInt_t TCanvas::GetWh ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 168 of file TCanvas.h.

◆ GetWindowHeight()

UInt_t TCanvas::GetWindowHeight ( ) const
inlineinherited

Definition at line 166 of file TCanvas.h.

◆ GetWindowTopX()

Int_t TCanvas::GetWindowTopX ( )
inherited

Returns current top x position of window on screen.

Definition at line 1204 of file TCanvas.cxx.

◆ GetWindowTopY()

Int_t TCanvas::GetWindowTopY ( )
inherited

Returns current top y position of window on screen.

Definition at line 1215 of file TCanvas.cxx.

◆ GetWindowWidth()

UInt_t TCanvas::GetWindowWidth ( ) const
inlineinherited

Definition at line 165 of file TCanvas.h.

◆ GetWNDC()

Double_t TPad::GetWNDC ( ) const
inlineoverridevirtualinherited

Get width of pad along X in Normalized Coordinates (NDC).

Implements TVirtualPad.

Definition at line 215 of file TPad.h.

◆ GetWw()

UInt_t TCanvas::GetWw ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 167 of file TCanvas.h.

◆ GetX1()

Double_t TPad::GetX1 ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 242 of file TPad.h.

◆ GetX2()

Double_t TPad::GetX2 ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 243 of file TPad.h.

◆ GetXCoord()

Double_t TAttBBox2D::GetXCoord ( const Int_t x,
Bool_t is_ndc = kFALSE )
protectedinherited

Definition at line 60 of file TAttBBox2D.cxx.

◆ GetXfile()

Float_t TAttPad::GetXfile ( ) const
inlineinherited

Definition at line 48 of file TAttPad.h.

◆ GetXlowNDC()

Double_t TPad::GetXlowNDC ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 212 of file TPad.h.

◆ GetXsizeReal()

Size_t TCanvas::GetXsizeReal ( ) const
inlineinherited

Definition at line 159 of file TCanvas.h.

◆ GetXsizeUser()

Size_t TCanvas::GetXsizeUser ( ) const
inlineinherited

Definition at line 157 of file TCanvas.h.

◆ GetXstat()

Float_t TAttPad::GetXstat ( ) const
inlineinherited

Definition at line 51 of file TAttPad.h.

◆ GetY1()

Double_t TPad::GetY1 ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 244 of file TPad.h.

◆ GetY2()

Double_t TPad::GetY2 ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 245 of file TPad.h.

◆ GetYCoord()

Double_t TAttBBox2D::GetYCoord ( const Int_t y,
Bool_t is_ndc = kFALSE )
protectedinherited

Definition at line 76 of file TAttBBox2D.cxx.

◆ GetYfile()

Float_t TAttPad::GetYfile ( ) const
inlineinherited

Definition at line 49 of file TAttPad.h.

◆ GetYlowNDC()

Double_t TPad::GetYlowNDC ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 213 of file TPad.h.

◆ GetYsizeReal()

Size_t TCanvas::GetYsizeReal ( ) const
inlineinherited

Definition at line 160 of file TCanvas.h.

◆ GetYsizeUser()

Size_t TCanvas::GetYsizeUser ( ) const
inlineinherited

Definition at line 158 of file TCanvas.h.

◆ GetYstat()

Float_t TAttPad::GetYstat ( ) const
inlineinherited

Definition at line 52 of file TAttPad.h.

◆ GoBackward()

void TInspectCanvas::GoBackward ( )
static

static function , inspect previous object

Definition at line 347 of file TInspectCanvas.cxx.

◆ GoForward()

void TInspectCanvas::GoForward ( )
static

static function , inspect next object

Definition at line 359 of file TInspectCanvas.cxx.

◆ HandleInput()

void TCanvas::HandleInput ( EEventType event,
Int_t px,
Int_t py )
virtualinherited

Handle Input Events.

Handle input events, like button up/down in current canvas.

Definition at line 1228 of file TCanvas.cxx.

◆ HandleTimer()

Bool_t TObject::HandleTimer ( TTimer * timer)
virtualinherited

Execute action in response of a timer timing out.

This method must be overridden if an object has to react to timers.

Reimplemented in TGCommandPlugin, TGDNDManager, TGFileContainer, TGHtml, TGLEventHandler, TGPopupMenu, TGraphTime, TGScrollBar, TGShutter, TGTextEdit, TGTextEditor, TGTextEntry, TGTextView, TGToolTip, TGuiBldDragManager, TGWindow, and TTreeViewer.

Definition at line 516 of file TObject.cxx.

◆ HasConnection()

Bool_t TQObject::HasConnection ( const char * signal_name) const
virtualinherited

Return true if there is any object connected to this signal.

Only checks for object signals.

Definition at line 523 of file TQObject.cxx.

◆ HasCrosshair()

Bool_t TPad::HasCrosshair ( ) const
overridevirtualinherited

Return kTRUE if the crosshair has been activated (via SetCrosshair).

Implements TVirtualPad.

Definition at line 6605 of file TPad.cxx.

◆ HasFixedAspectRatio()

Bool_t TPad::HasFixedAspectRatio ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 272 of file TPad.h.

◆ Hash()

ULong_t TPad::Hash ( ) const
inlineoverridevirtualinherited

Return hash value for this object.

Note: If this routine is overloaded in a derived class, this derived class should also add

void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
Definition TROOT.h:406

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

Error in <ROOT::Internal::TCheckHashRecursiveRemoveConsistency::CheckRecursiveRemove>: The class SomeName overrides
TObject::Hash but does not call TROOT::RecursiveRemove in its destructor.
Mother of all ROOT objects.
Definition TObject.h:42
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Definition TObject.cxx:1098
ULong_t Hash() const override
Return hash value for this object.
Definition TPad.h:269
void RecursiveRemove(TObject *obj) override
Recursively remove this object from the list of Cleanups.
Definition TROOT.cxx:2651

Reimplemented from TObject.

Definition at line 269 of file TPad.h.

◆ HasInconsistentHash()

Bool_t TObject::HasInconsistentHash ( ) const
inlineinherited

Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.

missing call to RecursiveRemove in destructor).

Note: Since the consistency is only tested for during inserts, this routine will return true for object that have never been inserted whether or not they have a consistent setup. This has no negative side-effect as searching for the object with the right or wrong Hash will always yield a not-found answer (Since anyway no hash can be guaranteed unique, there is always a check)

Definition at line 366 of file TObject.h.

◆ HasMenuBar()

Bool_t TCanvas::HasMenuBar ( ) const
inlineinherited

Definition at line 174 of file TCanvas.h.

◆ HasViewer3D()

Bool_t TPad::HasViewer3D ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 411 of file TPad.h.

◆ HideToolTip()

void TPad::HideToolTip ( Int_t event)
protectedvirtualinherited

Hide tool tip depending on the event type.

Typically tool tips are hidden when event is not a kMouseEnter and not a kMouseMotion event.

Definition at line 2874 of file TPad.cxx.

◆ HighLight()

void TPad::HighLight ( Color_t color = kRed,
Bool_t set = kTRUE )
overridevirtualinherited

Highlight pad.

do not highlight when printing on Postscript

Implements TVirtualPad.

Definition at line 3082 of file TPad.cxx.

◆ HighlightConnect()

void TCanvas::HighlightConnect ( const char * slot)
virtualinherited

This is "simplification" for function TCanvas::Connect with Highlighted signal for specific slot.

Slot has to be defined "UserFunction(TVirtualPad *pad, TObject *obj, Int_t x, Int_t y)" all parameters of UserFunction are taken from TCanvas::Highlighted

Definition at line 1624 of file TCanvas.cxx.

◆ Highlighted()

void TCanvas::Highlighted ( TVirtualPad * pad,
TObject * obj,
Int_t x,
Int_t y )
virtualinherited

Emit Highlighted() signal.

  • pad is pointer to pad with highlighted histogram or graph
  • obj is pointer to highlighted histogram or graph
  • x is highlighted x bin for 1D histogram or highlighted x-th point for graph
  • y is highlighted y bin for 2D histogram (for 1D histogram or graph not in use)

Definition at line 1605 of file TCanvas.cxx.

◆ HighPriority()

void TQObject::HighPriority ( const char * signal_name,
const char * slot_name = nullptr )
virtualinherited
  1. If slot_name = 0 => makes signal defined by the signal_name to be the first in the fListOfSignals, this decreases the time for lookup.
  2. If slot_name != 0 => makes slot defined by the slot_name to be executed first when signal_name is emitted. Signal name is not compressed.

Definition at line 473 of file TQObject.cxx.

◆ HtoAbsPixel()

Int_t TPad::HtoAbsPixel ( Double_t y1,
Double_t y2 ) const
overridevirtualinherited

Convert a vertical distance [y1,y2] to pixel.

Implements TVirtualPad.

Definition at line 7498 of file TPad.cxx.

◆ Iconify()

void TCanvas::Iconify ( )
inherited

Iconify canvas.

Definition at line 1472 of file TCanvas.cxx.

◆ IncrementPaletteColor()

Int_t TPad::IncrementPaletteColor ( Int_t i,
TString opt )
overridevirtualinherited

Increment (i==1) or set (i>1) the number of autocolor in the pad.

Implements TVirtualPad.

Definition at line 3132 of file TPad.cxx.

◆ Info()

void TObject::Info ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue info message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1072 of file TObject.cxx.

◆ InheritsFrom() [1/2]

Bool_t TObject::InheritsFrom ( const char * classname) const
virtualinherited

Returns kTRUE if object inherits from class "classname".

Reimplemented in TClass.

Definition at line 549 of file TObject.cxx.

◆ InheritsFrom() [2/2]

Bool_t TObject::InheritsFrom ( const TClass * cl) const
virtualinherited

Returns kTRUE if object inherits from TClass cl.

Reimplemented in TClass.

Definition at line 557 of file TObject.cxx.

◆ Init()

void TCanvas::Init ( )
protectedinherited

Initialize the TCanvas members. Called by all constructors.

Definition at line 536 of file TCanvas.cxx.

◆ Inspect()

void TObject::Inspect ( ) const
virtualinherited

Dump contents of this object in a graphics canvas.

Same action as Dump but in a graphical form. In addition pointers to other objects can be followed.

The following picture is the Inspect of a histogram object:

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TGFrame, TInspectorObject, and TSystemFile.

Definition at line 570 of file TObject.cxx.

◆ InspectObject()

void TInspectCanvas::InspectObject ( TObject * obj)
virtual

Dump contents of obj in a graphics canvas.

Same action as TObject::Dump but in a graphical form. In addition pointers to other objects can be followed.

The following picture is the Inspect of a histogram object:

Definition at line 103 of file TInspectCanvas.cxx.

◆ Inspector()

void TInspectCanvas::Inspector ( TObject * obj)
static

static function , interface to InspectObject.

Create the InspectCanvas if it does not exist yet.

Definition at line 372 of file TInspectCanvas.cxx.

◆ InvertBit()

void TObject::InvertBit ( UInt_t f)
inlineinherited

Definition at line 206 of file TObject.h.

◆ IsA()

TClass * TInspectCanvas::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TCanvas.

Definition at line 56 of file TInspectCanvas.h.

◆ IsBatch()

Bool_t TCanvas::IsBatch ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 177 of file TCanvas.h.

◆ IsBeingResized()

Bool_t TVirtualPad::IsBeingResized ( ) const
inlineinherited

Definition at line 164 of file TVirtualPad.h.

◆ IsDestructed()

Bool_t TObject::IsDestructed ( ) const
inlineinherited

IsDestructed.

Note
This function must be non-virtual as it can be used on destructed (but not yet modified) memory. This is used for example in TClonesArray to record the element that have been destructed but not deleted and thus are ready for re-use (by operator new with placement).
Returns
true if this object's destructor has been run.

Definition at line 186 of file TObject.h.

◆ IsDrawn()

Bool_t TCanvas::IsDrawn ( ) const
inlineinherited

Definition at line 178 of file TCanvas.h.

◆ IsEditable()

Bool_t TPad::IsEditable ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 274 of file TPad.h.

◆ IsEqual()

Bool_t TObject::IsEqual ( const TObject * obj) const
virtualinherited

Default equal comparison (objects are equal if they have the same address in memory).

More complicated classes might want to override this function.

Reimplemented in TGObject, TObjString, TPair, and TQCommand.

Definition at line 589 of file TObject.cxx.

◆ IsFolder()

Bool_t TCanvas::IsFolder ( ) const
overridevirtualinherited

Is folder ?

Reimplemented from TObject.

Definition at line 1481 of file TCanvas.cxx.

◆ IsGrayscale()

Bool_t TCanvas::IsGrayscale ( )
inherited

Check whether this canvas is to be drawn in grayscale mode.

Definition at line 2564 of file TCanvas.cxx.

◆ IsModified()

Bool_t TPad::IsModified ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 276 of file TPad.h.

◆ IsOnHeap()

Bool_t TObject::IsOnHeap ( ) const
inlineinherited

Definition at line 160 of file TObject.h.

◆ IsRetained()

Bool_t TCanvas::IsRetained ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 182 of file TCanvas.h.

◆ IsSortable()

virtual Bool_t TObject::IsSortable ( ) const
inlinevirtualinherited

◆ IsTransparent()

Bool_t TAttFill::IsTransparent ( ) const
inlinevirtualinherited

Reimplemented in TGWin32VirtualXProxy.

Definition at line 49 of file TAttFill.h.

◆ IsUpdated()

Bool_t TCanvas::IsUpdated ( ) const
inlineinherited

Definition at line 179 of file TCanvas.h.

◆ IsVertical()

Bool_t TPad::IsVertical ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 278 of file TPad.h.

◆ IsWeb()

Bool_t TCanvas::IsWeb ( ) const
overridevirtualinherited

Is web canvas.

Reimplemented from TVirtualPad.

Definition at line 1489 of file TCanvas.cxx.

◆ IsZombie()

Bool_t TObject::IsZombie ( ) const
inlineinherited

Definition at line 161 of file TObject.h.

◆ LineNotFree()

void TPad::LineNotFree ( Int_t x1,
Int_t x2,
Int_t y1,
Int_t y2 )
privateinherited

Mark as "not free" the cells along a line.

Definition at line 3302 of file TPad.cxx.

◆ LowPriority()

void TQObject::LowPriority ( const char * signal_name,
const char * slot_name = nullptr )
virtualinherited
  1. If slot_name = 0 => makes signal defined by the signal_name to be the last in the fListOfSignals, this increase the time for lookup.
  2. If slot_name != 0 => makes slot defined by the slot_name to be executed last when signal_name is emitted. Signal name is not compressed.

Definition at line 500 of file TQObject.cxx.

◆ ls()

void TCanvas::ls ( Option_t * option = "") const
overridevirtualinherited

List all pads.

Implements TVirtualPad.

Definition at line 1497 of file TCanvas.cxx.

◆ MakeDefCanvas()

TCanvas * TCanvas::MakeDefCanvas ( )
staticinherited

Static function to build a default canvas.

Definition at line 1509 of file TCanvas.cxx.

◆ MakeZombie()

void TObject::MakeZombie ( )
inlineprotectedinherited

Definition at line 55 of file TObject.h.

◆ MayNotUse()

void TObject::MayNotUse ( const char * method) const
inherited

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).

Definition at line 1160 of file TObject.cxx.

◆ Message()

virtual void TQObject::Message ( const char * msg)
inlinevirtualinherited

Reimplemented in TTreeViewer.

Definition at line 201 of file TQObject.h.

◆ Modified()

void TPad::Modified ( Bool_t flag = true)
overridevirtualinherited

Mark pad modified Will be repainted when TCanvas::Update() will be called next time.

Implements TVirtualPad.

Definition at line 7351 of file TPad.cxx.

◆ ModifiedUpdate()

void TPad::ModifiedUpdate ( )
overridevirtualinherited

Short cut to call Modified() and Update() in a single call.

On Mac with Cocoa, it performs an additional ProcessEvents().

Implements TVirtualPad.

Definition at line 3558 of file TPad.cxx.

◆ Modify() [1/3]

virtual void TAttFill::Modify ( )
virtualinherited

◆ Modify() [2/3]

virtual void TAttLine::Modify ( )
virtualinherited

◆ Modify() [3/3]

virtual void TAttText::Modify ( )
virtualinherited

◆ ModifyOn() [1/3]

virtual void TAttFill::ModifyOn ( TVirtualPad & pad)
virtualinherited

◆ ModifyOn() [2/3]

virtual void TAttLine::ModifyOn ( TVirtualPad & pad)
virtualinherited

◆ ModifyOn() [3/3]

virtual void TAttText::ModifyOn ( TVirtualPad & pad)
virtualinherited

◆ MoveOpaque()

void TCanvas::MoveOpaque ( Int_t set = 1)
inherited

Set option to move objects/pads in a canvas.

  • set = 1 (default) graphics objects are moved in opaque mode
  • set = 0 only the outline of objects is drawn when moving them

The option opaque produces the best effect. It requires however a a reasonably fast workstation or response time.

Definition at line 1528 of file TCanvas.cxx.

◆ NextPaletteColor()

Int_t TPad::NextPaletteColor ( )
overridevirtualinherited

Get the next autocolor in the pad.

Implements TVirtualPad.

Definition at line 3146 of file TPad.cxx.

◆ Notify()

Bool_t TObject::Notify ( )
virtualinherited

This method must be overridden to handle object notification (the base implementation is no-op).

Different objects in ROOT use the Notify method for different purposes, in coordination with other objects that call this method at the appropriate time.

For example, TLeaf uses it to load class information; TBranchRef to load contents of referenced branches TBranchRef; most notably, based on Notify, TChain implements a callback mechanism to inform interested parties when it switches to a new sub-tree.

Reimplemented in h1analysis, h1analysisTreeReader, TARInterruptHandler, TASInputHandler, TASInterruptHandler, TASLogHandler, TASSigPipeHandler, TBlinkTimer, TBranchElement, TBranchRef, TBreakLineCom, TBrowserTimer, TCollection, TDelCharCom, TDelTextCom, TFileHandler, TGContainerKeyboardTimer, TGContainerScrollTimer, TGInputHandler, TGLRedrawTimer, TGTextEditHist, TGuiBldDragManagerRepeatTimer, TIdleTimer, TInsCharCom, TInsTextCom, TInterruptHandler, TLeafObject, TMessageHandler, TNotifyLink< Type >, TNotifyLink< RNoCleanupNotifierHelper >, TNotifyLink< ROOT::Detail::TBranchProxy >, TNotifyLink< TTreeReader >, TPopupDelayTimer, TProcessEventTimer, TRefTable, TRepeatTimer, TSBRepeatTimer, TSelector, TSelectorDraw, TSelectorEntries, TSignalHandler, TSingleShotCleaner, TSocketHandler, TStdExceptionHandler, TSysEvtHandler, TTermInputHandler, TThreadTimer, TTimeOutTimer, TTimer, TTipDelayTimer, TTree, TTreeFormula, TTreeFormulaManager, TTreeReader, TViewTimer, and TViewUpdateTimer.

Definition at line 618 of file TObject.cxx.

◆ NumberOfConnections()

Int_t TQObject::NumberOfConnections ( ) const
virtualinherited

Return number of connections for this object.

Definition at line 547 of file TQObject.cxx.

◆ NumberOfSignals()

Int_t TQObject::NumberOfSignals ( ) const
virtualinherited

Return number of signals for this object.

Only checks for object signals.

Definition at line 537 of file TQObject.cxx.

◆ Obsolete()

void TObject::Obsolete ( const char * method,
const char * asOfVers,
const char * removedFromVers ) const
inherited

Use this method to declare a method obsolete.

Specify as of which version the method is obsolete and as from which version it will be removed.

Definition at line 1169 of file TObject.cxx.

◆ OpaqueMoving()

Bool_t TCanvas::OpaqueMoving ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 186 of file TCanvas.h.

◆ OpaqueResizing()

Bool_t TCanvas::OpaqueResizing ( ) const
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 187 of file TCanvas.h.

◆ operator delete() [1/3]

void TObject::operator delete ( void * ptr,
size_t size )
inherited

Operator delete for sized deallocation.

Definition at line 1234 of file TObject.cxx.

◆ operator delete() [2/3]

void TObject::operator delete ( void * ptr)
inherited

Operator delete.

Definition at line 1212 of file TObject.cxx.

◆ operator delete() [3/3]

void TObject::operator delete ( void * ptr,
void * vp )
inherited

Only called by placement new when throwing an exception.

Definition at line 1266 of file TObject.cxx.

◆ operator delete[]() [1/3]

void TObject::operator delete[] ( void * ptr,
size_t size )
inherited

Operator delete [] for sized deallocation.

Definition at line 1245 of file TObject.cxx.

◆ operator delete[]() [2/3]

void TObject::operator delete[] ( void * ptr)
inherited

Operator delete [].

Definition at line 1223 of file TObject.cxx.

◆ operator delete[]() [3/3]

void TObject::operator delete[] ( void * ptr,
void * vp )
inherited

Only called by placement new[] when throwing an exception.

Definition at line 1274 of file TObject.cxx.

◆ operator new() [1/2]

void * TObject::operator new ( size_t sz)
inlineinherited

Definition at line 189 of file TObject.h.

◆ operator new() [2/2]

void * TObject::operator new ( size_t sz,
void * vp )
inlineinherited

Definition at line 191 of file TObject.h.

◆ operator new[]() [1/2]

void * TObject::operator new[] ( size_t sz)
inlineinherited

Definition at line 190 of file TObject.h.

◆ operator new[]() [2/2]

void * TObject::operator new[] ( size_t sz,
void * vp )
inlineinherited

Definition at line 192 of file TObject.h.

◆ Pad()

TVirtualPad *& TVirtualPad::Pad ( )
staticinherited

Return the current pad for the current thread.

Definition at line 83 of file TVirtualPad.cxx.

◆ PadInHighlightMode()

Bool_t TVirtualPad::PadInHighlightMode ( ) const
virtualinherited

Should always return false, unless you can highlight selected object in pad.

Definition at line 156 of file TVirtualPad.cxx.

◆ PadInSelectionMode()

Bool_t TVirtualPad::PadInSelectionMode ( ) const
virtualinherited

Should always return false unless you have non-standard picking.

Definition at line 148 of file TVirtualPad.cxx.

◆ PadtoX()

Double_t TPad::PadtoX ( Double_t x) const
overridevirtualinherited

Convert x from pad to X.

Implements TVirtualPad.

Definition at line 3570 of file TPad.cxx.

◆ PadtoY()

Double_t TPad::PadtoY ( Double_t y) const
overridevirtualinherited

Convert y from pad to Y.

Implements TVirtualPad.

Definition at line 3579 of file TPad.cxx.

◆ Paint()

void TCanvas::Paint ( Option_t * option = "")
overridevirtualinherited

Paint canvas.

Implements TVirtualPad.

Definition at line 1536 of file TCanvas.cxx.

◆ PaintBorder()

void TPad::PaintBorder ( Color_t color,
Bool_t tops )
protectedinherited

Paint the pad border.

Draw first a box as a normal filled box

Definition at line 3687 of file TPad.cxx.

◆ PaintBorderPS()

void TPad::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 )
overrideprotectedvirtualinherited

Paint a frame border with Postscript - no longer used.

Implements TVirtualPad.

Definition at line 3748 of file TPad.cxx.

◆ PaintBox()

void TPad::PaintBox ( Double_t x1,
Double_t y1,
Double_t x2,
Double_t y2,
Option_t * option = "" )
overridevirtualinherited

Paint box in CurrentPad World coordinates.

  • if option[0] = 's' the box is forced to be paint with style=0
  • if option[0] = 'l' the box contour is drawn

Implements TVirtualPad.

Definition at line 3907 of file TPad.cxx.

◆ PaintDate()

void TPad::PaintDate ( )
protectedinherited

Paint the current date and time if the option Date is set on via gStyle->SetOptDate() Paint the current file name if the option File is set on via gStyle->SetOptFile().

Definition at line 3758 of file TPad.cxx.

◆ PaintFillArea() [1/2]

void TPad::PaintFillArea ( Int_t n,
Double_t * x,
Double_t * y,
Option_t * option = "" )
overridevirtualinherited

Paint fill area in CurrentPad World coordinates.

Implements TVirtualPad.

Definition at line 3978 of file TPad.cxx.

◆ PaintFillArea() [2/2]

void TPad::PaintFillArea ( Int_t n,
Float_t * x,
Float_t * y,
Option_t * option = "" )
overridevirtualinherited

Implements TVirtualPad.

Definition at line 3970 of file TPad.cxx.

◆ PaintFillAreaHatches()

void TPad::PaintFillAreaHatches ( Int_t nn,
Double_t * xx,
Double_t * yy,
Int_t FillStyle )
inherited

This function paints hatched fill area according to the FillStyle value The convention for the Hatch is the following:

`FillStyle = 3ijk`
  • i (1-9) : specify the space between each hatch 1 = minimum 9 = maximum the final spacing is i*GetHatchesSpacing(). The hatches spacing is set by SetHatchesSpacing()
  • j (0-9) : specify angle between 0 and 90 degrees
    • 0 = 0
    • 1 = 10
    • 2 = 20
    • 3 = 30
    • 4 = 45
    • 5 = Not drawn
    • 6 = 60
    • 7 = 70
    • 8 = 80
    • 9 = 90
  • k (0-9) : specify angle between 90 and 180 degrees
    • 0 = 180
    • 1 = 170
    • 2 = 160
    • 3 = 150
    • 4 = 135
    • 5 = Not drawn
    • 6 = 120
    • 7 = 110
    • 8 = 100
    • 9 = 90

Definition at line 4059 of file TPad.cxx.

◆ PaintFillAreaNDC()

void TPad::PaintFillAreaNDC ( Int_t n,
Double_t * x,
Double_t * y,
Option_t * option = "" )
overridevirtualinherited

Paint fill area in CurrentPad NDC coordinates.

Implements TVirtualPad.

Definition at line 4016 of file TPad.cxx.

◆ PaintHatches()

void TPad::PaintHatches ( Double_t dy,
Double_t angle,
Int_t nn,
Double_t * xx,
Double_t * yy )
inherited

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.

Definition at line 4093 of file TPad.cxx.

◆ PaintLine()

void TPad::PaintLine ( Double_t x1,
Double_t y1,
Double_t x2,
Double_t y2 )
overridevirtualinherited

Paint line in CurrentPad World coordinates.

Implements TVirtualPad.

Definition at line 4239 of file TPad.cxx.

◆ PaintLine3D() [1/2]

void TPad::PaintLine3D ( Double_t * p1,
Double_t * p2 )
overridevirtualinherited

Paint 3-D line in the CurrentPad.

Implements TVirtualPad.

Definition at line 4292 of file TPad.cxx.

◆ PaintLine3D() [2/2]

void TPad::PaintLine3D ( Float_t * p1,
Float_t * p2 )
overridevirtualinherited

Paint 3-D line in the CurrentPad.

Implements TVirtualPad.

Definition at line 4274 of file TPad.cxx.

◆ PaintLineNDC()

void TPad::PaintLineNDC ( Double_t u1,
Double_t v1,
Double_t u2,
Double_t v2 )
overridevirtualinherited

Paint line in normalized coordinates.

Implements TVirtualPad.

Definition at line 4261 of file TPad.cxx.

◆ PaintMarker3D()

void TPad::PaintMarker3D ( Double_t x,
Double_t y,
Double_t z )
overridevirtualinherited

Paint 3-D marker in the CurrentPad.

Implements TVirtualPad.

Definition at line 4310 of file TPad.cxx.

◆ PaintModified()

void TPad::PaintModified ( )
overridevirtualinherited

Traverse pad hierarchy and (re)paint only modified pads.

Implements TVirtualPad.

Definition at line 3820 of file TPad.cxx.

◆ PaintPadFrame()

void TPad::PaintPadFrame ( Double_t xmin,
Double_t ymin,
Double_t xmax,
Double_t ymax )
overridevirtualinherited

Paint histogram/graph frame.

Implements TVirtualPad.

Definition at line 3801 of file TPad.cxx.

◆ PaintPolyLine() [1/2]

void TPad::PaintPolyLine ( Int_t n,
Double_t * x,
Double_t * y,
Option_t * option = "" )
overridevirtualinherited

Paint polyline in CurrentPad World coordinates.

If option[0] == 'C' no clipping

Implements TVirtualPad.

Definition at line 4381 of file TPad.cxx.

◆ PaintPolyLine() [2/2]

void TPad::PaintPolyLine ( Int_t n,
Float_t * x,
Float_t * y,
Option_t * option = "" )
overridevirtualinherited

Paint polyline in CurrentPad World coordinates.

Implements TVirtualPad.

Definition at line 4333 of file TPad.cxx.

◆ PaintPolyLine3D()

void TPad::PaintPolyLine3D ( Int_t n,
Double_t * p )
overridevirtualinherited

Paint 3-D polyline in the CurrentPad.

Implements TVirtualPad.

Definition at line 4449 of file TPad.cxx.

◆ PaintPolyLineNDC()

void TPad::PaintPolyLineNDC ( Int_t n,
Double_t * x,
Double_t * y,
Option_t * option = "" )
overridevirtualinherited

Paint polyline in CurrentPad NDC coordinates.

Implements TVirtualPad.

Definition at line 4433 of file TPad.cxx.

◆ PaintPolyMarker() [1/2]

void TPad::PaintPolyMarker ( Int_t n,
Double_t * x,
Double_t * y,
Option_t * option = "" )
overridevirtualinherited

Paint polymarker in CurrentPad World coordinates.

Implements TVirtualPad.

Definition at line 4494 of file TPad.cxx.

◆ PaintPolyMarker() [2/2]

void TPad::PaintPolyMarker ( Int_t n,
Float_t * x,
Float_t * y,
Option_t * option = "" )
overridevirtualinherited

Paint polymarker in CurrentPad World coordinates.

Implements TVirtualPad.

Definition at line 4463 of file TPad.cxx.

◆ PaintSegments()

void TPad::PaintSegments ( Int_t n,
Double_t * x,
Double_t * y,
Option_t * option = "" )
overridevirtualinherited

Paint N individual segments Provided arrays should have 2*n elements IMPORTANT!

Provided arrays can be modified after function call!

Reimplemented from TVirtualPad.

Definition at line 4527 of file TPad.cxx.

◆ PaintSegmentsNDC()

void TPad::PaintSegmentsNDC ( Int_t n,
Double_t * u,
Double_t * v )
overridevirtualinherited

Paint N individual segments in NDC coordinates Provided arrays should have 2*n elements IMPORTANT!

Provided arrays can be modified after function call!

Reimplemented from TVirtualPad.

Definition at line 4568 of file TPad.cxx.

◆ PaintText() [1/2]

void TPad::PaintText ( Double_t x,
Double_t y,
const char * text )
overridevirtualinherited

Paint text in CurrentPad World coordinates.

Implements TVirtualPad.

Definition at line 4582 of file TPad.cxx.

◆ PaintText() [2/2]

void TPad::PaintText ( Double_t x,
Double_t y,
const wchar_t * text )
overridevirtualinherited

Paint text in CurrentPad World coordinates.

Implements TVirtualPad.

Definition at line 4595 of file TPad.cxx.

◆ PaintTextNDC() [1/2]

void TPad::PaintTextNDC ( Double_t u,
Double_t v,
const char * text )
overridevirtualinherited

Paint text in CurrentPad NDC coordinates.

Implements TVirtualPad.

Definition at line 4621 of file TPad.cxx.

◆ PaintTextNDC() [2/2]

void TPad::PaintTextNDC ( Double_t u,
Double_t v,
const wchar_t * text )
overridevirtualinherited

Paint text in CurrentPad NDC coordinates.

Implements TVirtualPad.

Definition at line 4634 of file TPad.cxx.

◆ PaintTextUrl()

void TPad::PaintTextUrl ( Double_t x,
Double_t y,
const char * text,
const char * url )
overridevirtualinherited

Paint text with URL in CurrentPad World coordinates.

Implements TVirtualPad.

Definition at line 4608 of file TPad.cxx.

◆ Pick() [1/2]

TPad * TCanvas::Pick ( Int_t px,
Int_t py,
TObject * prevSelObj )
virtualinherited

Prepare for pick, call TPad::Pick() and when selected object is different from previous then emit Picked() signal.

Definition at line 1546 of file TCanvas.cxx.

◆ Pick() [2/2]

TPad * TCanvas::Pick ( Int_t px,
Int_t py,
TObjLink *& pickobj )
inlineoverridevirtualinherited

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 from TPad.

Definition at line 189 of file TCanvas.h.

◆ Picked()

void TCanvas::Picked ( TPad * selpad,
TObject * selected,
Int_t event )
virtualinherited

Emit Picked() signal.

Definition at line 1586 of file TCanvas.cxx.

◆ PixeltoX()

Double_t TPad::PixeltoX ( Double_t px)
overridevirtualinherited

Convert pixel to X coordinate.

Implements TVirtualPad.

Definition at line 7370 of file TPad.cxx.

◆ PixeltoXY()

void TPad::PixeltoXY ( Double_t xpixel,
Double_t ypixel,
Double_t & x,
Double_t & y )
overridevirtualinherited

Convert pixel to X/Y coordinates.

Implements TVirtualPad.

Definition at line 7388 of file TPad.cxx.

◆ PixeltoY()

Double_t TPad::PixeltoY ( Double_t py)
overridevirtualinherited

Convert pixel to Y coordinate.

Implements TVirtualPad.

Definition at line 7379 of file TPad.cxx.

◆ PlaceBox()

Bool_t TPad::PlaceBox ( TObject * o,
Double_t w,
Double_t h,
Double_t & xl,
Double_t & yb,
Option_t * option = "lb" )
overridevirtualinherited

Place a box in NDC space.

Returns
true if the box could be placed, false if not.
Parameters
[in]opointer to the box to be placed
[in]wbox width to be placed
[in]hbox height to be placed
[out]xlx position of the bottom left corner of the placed box
[out]yby position of the bottom left corner of the placed box
[in]optionl=left, r=right, t=top, b=bottom, w=within margins. Order determines priority for placement. Default is "lb" (prioritises horizontal over vertical)

Implements TVirtualPad.

Definition at line 3231 of file TPad.cxx.

◆ Pop()

void TPad::Pop ( )
overridevirtualinherited

Pop pad to the top of the stack.

Implements TVirtualPad.

Definition at line 4776 of file TPad.cxx.

◆ PopTopLevelSelectable()

void TVirtualPad::PopTopLevelSelectable ( )
virtualinherited

Does nothing, unless you implement your own picking.

Remove top level selectable and all its' children.

Definition at line 206 of file TVirtualPad.cxx.

◆ Print() [1/2]

void TPad::Print ( const char * filename,
Option_t * option )
overridevirtualinherited

Save Canvas contents in a file in one of various formats.

option can be:

  • ps: a Postscript file is produced (default). See special cases.
    • Portrait: Postscript file is produced (Portrait)
    • Landscape: Postscript file is produced (Landscape)
  • eps: an Encapsulated Postscript file is produced
  • pdf: a PDF file is produced NOTE: TMathText will be converted to TLatex; q.e.d., symbols only available in TMathText will not render properly.
    • Title:: The character string after Title: becomes a table of content entry (for PDF files).
    • EmbedFonts: a PDF file with embedded fonts is generated.
  • svg: a SVG file is produced
  • tex: a TeX file is produced
  • gif: a GIF file is produced
  • gif+NN: an animated GIF file is produced, where NN is delay in 10ms units NOTE: See other variants for looping animation in TASImage::WriteImage
  • xpm: a XPM file is produced
  • png: a PNG file is produced
  • jpg: a JPEG file is produced. NOTE: JPEG's lossy compression will make all sharp edges fuzzy.
  • tiff: a TIFF file is produced
  • cxx: a C++ macro file is produced
  • xml: a XML file
  • json: a JSON file
  • root: a ROOT binary file

    filename = 0 - filename is defined by 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:

gStyle->SetPaperSize(TStyle::kA4); //default
gStyle->SetPaperSize(TStyle::kUSLetter);
externTStyle * gStyle
Definition TStyle.h:442
@ kA4
Definition TStyle.h:155
@ kUSLetter
Definition TStyle.h:155

where TStyle::kA4 and TStyle::kUSLetter are defined in the enum EPaperSize in TStyle.h

An alternative is to call:

gStyle->SetPaperSize(20,26); same as kA4
or gStyle->SetPaperSize(20,24); same as kUSLetter

The above numbers take into account some margins and are in centimeters.

The "Preview" option

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.

Example:

canvas->Print("example.eps","Preview");

The "EmbedFonts" option

The "EmbedFonts" option allows to embed the fonts used in a PDF file inside that file. This option relies on the "gs" command.

Example:

canvas->Print("example.pdf","EmbedFonts");

The "Standalone" option

The "Standalone" option allows to generate a TeX file ready to be processed by tools like pdflatex.

Example:

canvas->Print("example.tex","Standalone");

Writing several canvases to the same Postscript or PDF file:

  • if the Postscript or PDF file name finishes with "(", the file is not closed
  • if the Postscript or PDF file name finishes with ")" and the file has been opened with "(", the file is closed.

Example:

{
TCanvas c1("c1");
h1.Draw();
c1.Print("c1.ps("); //write canvas and keep the ps file open
h2.Draw();
c1.Print("c1.ps"); canvas is added to "c1.ps"
h3.Draw();
c1.Print("c1.ps)"); canvas is added to "c1.ps" and ps file is closed
}

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.:

TCanvas c1("c1");
h1.Draw();
c1.Print("c1.ps");

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 ")" to open / close without actual printing.

Example:

c1.Print("file.ps["); // No actual print, just open file.ps
for (int i=0; i<10; ++i) {
// fill canvas for context i
// ...
c1.Print("file.ps"); // actually print canvas to file
}// end loop
c1.Print("file.ps]"); // No actual print, just close.

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:

for (int i=0; i<10; ++i) {
// fill canvas for context i
// ...
c1.Print("file.gif+5"); // print canvas to GIF file with 50ms delays
}// end loop

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.

Definition at line 4980 of file TPad.cxx.

◆ Print() [2/2]

void TPad::Print ( const char * filename = "") const
overridevirtualinherited

This method is equivalent to SaveAs("filename"). See TPad::SaveAs for details.

Implements TVirtualPad.

Definition at line 4798 of file TPad.cxx.

◆ ProcessedEvent()

void TCanvas::ProcessedEvent ( Int_t event,
Int_t x,
Int_t y,
TObject * selected )
virtualinherited

Emit ProcessedEvent() signal.

Definition at line 1646 of file TCanvas.cxx.

◆ PushSelectableObject()

void TVirtualPad::PushSelectableObject ( TObject * obj)
virtualinherited

Does nothing, unless you implement your own picking.

"Complete" object, or part of complex object, which can be picked.

Definition at line 198 of file TVirtualPad.cxx.

◆ PushTopLevelSelectable()

void TVirtualPad::PushTopLevelSelectable ( TObject * top)
virtualinherited

Does nothing, unless you implement your own picking.

When complex object containing sub-objects (which can be picked) is painted in a pad, this "top-level" object is pushed into the selectables stack.

Definition at line 189 of file TVirtualPad.cxx.

◆ RaiseWindow()

void TCanvas::RaiseWindow ( )
inherited

Raise canvas window.

Definition at line 1739 of file TCanvas.cxx.

◆ Range()

void TPad::Range ( Double_t x1,
Double_t y1,
Double_t x2,
Double_t y2 )
overridevirtualinherited

Set world coordinate system for the pad.

Emits signal "RangeChanged()", in the slot get the range via GetRange().

Implements TVirtualPad.

Definition at line 5344 of file TPad.cxx.

◆ RangeAxis()

void TPad::RangeAxis ( Double_t xmin,
Double_t ymin,
Double_t xmax,
Double_t ymax )
overridevirtualinherited

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.

Definition at line 5382 of file TPad.cxx.

◆ RangeAxisChanged()

virtual void TVirtualPad::RangeAxisChanged ( )
inlinevirtualinherited

Definition at line 211 of file TVirtualPad.h.

◆ RangeChanged()

virtual void TPad::RangeChanged ( )
inlinevirtualinherited

Definition at line 322 of file TPad.h.

◆ Read()

Int_t TObject::Read ( const char * name)
virtualinherited

Read contents of object with specified name from the current directory.

First the key with the given name is searched in the current directory, next the key buffer is deserialized into the object. The object must have been created before via the default constructor. See TObject::Write().

Reimplemented in TBuffer, TKey, TKeySQL, and TKeyXML.

Definition at line 673 of file TObject.cxx.

◆ RecordLatex()

void TPad::RecordLatex ( const TObject * obj)
virtualinherited

Emit RecordLatex() signal.

Definition at line 7217 of file TPad.cxx.

◆ RecordPave()

void TPad::RecordPave ( const TObject * obj)
virtualinherited

Emit RecordPave() signal.

Definition at line 7209 of file TPad.cxx.

◆ RecursiveRemove()

void TInspectCanvas::RecursiveRemove ( TObject * obj)
overridevirtual

Recursively remove object from the list of objects.

Implements TVirtualPad.

Definition at line 387 of file TInspectCanvas.cxx.

◆ RedrawAxis()

void TPad::RedrawAxis ( Option_t * option = "")
overridevirtualinherited

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

To redraw the axis tick marks do:

gPad->RedrawAxis();
#define gPad

To redraw the axis grid do:

gPad->RedrawAxis("G");

To redraw the axis tick marks and the axis grid do:

gPad->RedrawAxis();
gPad->RedrawAxis("G");

If option="f" is specified, this will force the drawing of the frame around the plot.

Implements TVirtualPad.

Definition at line 5463 of file TPad.cxx.

◆ ReleaseViewer3D()

void TPad::ReleaseViewer3D ( Option_t * type = "")
overridevirtualinherited

Release current (external) viewer.

Implements TVirtualPad.

Definition at line 7185 of file TPad.cxx.

◆ Remove()

TObject * TPad::Remove ( TObject * obj,
Bool_t modified = kTRUE )
overridevirtualinherited

Remove object from list of primitives When.

modified set to kTRUE (default) pad will be marked as modified - if object really removed
Returns result of GetListOfPrimitives()->Remove(obj) or nullptr if list of primitives not exists

Implements TVirtualPad.

Definition at line 5420 of file TPad.cxx.

◆ ResetAttFill()

virtual void TAttFill::ResetAttFill ( Option_t * option = "")
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ ResetAttLine()

virtual void TAttLine::ResetAttLine ( Option_t * option = "")
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ ResetAttPad()

void TAttPad::ResetAttPad ( Option_t * option = "")
virtualinherited

Reset pad attributes.

Definition at line 74 of file TAttPad.cxx.

◆ ResetAttText()

virtual void TAttText::ResetAttText ( Option_t * toption = "")
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ ResetBit()

void TObject::ResetBit ( UInt_t f)
inlineinherited

Definition at line 203 of file TObject.h.

◆ ResetDrawn()

void TCanvas::ResetDrawn ( )
inlineinherited

Definition at line 198 of file TCanvas.h.

◆ ResetToolTip()

void TPad::ResetToolTip ( TObject * tip)
overridevirtualinherited

Reset tool tip, i.e.

within time specified in CreateToolTip the tool tip will pop up.

Implements TVirtualPad.

Definition at line 7075 of file TPad.cxx.

◆ ResetUpdated()

void TCanvas::ResetUpdated ( )
inlineinherited

Definition at line 199 of file TCanvas.h.

◆ ResetView3D()

void TPad::ResetView3D ( TObject * view = nullptr)
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 327 of file TPad.h.

◆ Resize()

void TCanvas::Resize ( Option_t * option = "")
virtualinherited

Recompute canvas parameters following a X11 Resize.

Definition at line 1661 of file TCanvas.cxx.

◆ Resized()

virtual void TPad::Resized ( )
inlinevirtualinherited

Definition at line 329 of file TPad.h.

◆ ResizeOpaque()

void TCanvas::ResizeOpaque ( Int_t set = 1)
inherited

Set option to resize objects/pads in a canvas.

  • set = 1 (default) graphics objects are resized in opaque mode
  • set = 0 only the outline of objects is drawn when resizing them

The option opaque produces the best effect. It requires however a a reasonably fast workstation or response time.

Definition at line 1754 of file TCanvas.cxx.

◆ ResizePad()

void TPad::ResizePad ( Option_t * option = "")
overridevirtualinherited

Compute pad conversion coefficients.

Conversion from x to px

\[\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 \]

Conversion from y to py

\[\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 \]

Conversion from px to x

\[\Rightarrow x = \frac{xrange(px-pxlow)}{pxrange}+ xmin = fPixeltoXk + fPixeltoX \times px \]

\[\Rightarrow fPixeltoXk = xmin - pxlow \times\frac{xrange}{pxrange} \]

\[fPixeltoX = \frac{xrange}{pxrange} \]

Conversion from py to y

\[\Rightarrow y = \frac{yrange(py-pylow)}{pyrange}+ ymin = fPixeltoYk + fPixeltoY \times py \]

\[\Rightarrow fPixeltoYk = ymin - pylow \times\frac{yrange}{pyrange} \]

\[fPixeltoY = \frac{yrange}{pyrange} \]

Computation of the coefficients in case of LOG scales

Conversion from pixel coordinates to world coordinates

\[ 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 \]

Conversion from World coordinates to pixel coordinates

\[ 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.

Definition at line 5637 of file TPad.cxx.

◆ RunAutoExec()

void TCanvas::RunAutoExec ( )
privateinherited

Execute the list of TExecs in the current pad.

Definition at line 1762 of file TCanvas.cxx.

◆ SaveAll()

Bool_t TCanvas::SaveAll ( const std::vector< TPad * > & pads = {},
const char * filename = "",
Option_t * option = "" )
staticinherited

Save provided pads/canvases into the image file(s) Filename can include printf argument for image number - like "image%03d.png".

In this case images: "image000.png", "image001.png", "image002.png" will be created. If pattern is not provided - it will be automatically inserted before extension except PDF and ROOT files. In last case PDF or ROOT file will contain all pads. Parameter option only used when output into PDF/PS files If TCanvas::SaveAll() called without arguments - all existing canvases will be stored in allcanvases.pdf file.

Definition at line 2674 of file TCanvas.cxx.

◆ SaveAs()

void TPad::SaveAs ( const char * filename = "",
Option_t * option = "" ) const
overridevirtualinherited

Save the pad content in a file.

The file's format used to save the pad is determined by the filename extension:

  • if filename is empty, the file produced is padname.ps
  • if filename starts with a dot, the padname is added in front
  • if filename ends with .ps, a Postscript file is produced
  • if filename ends with .eps, an Encapsulated Postscript file is produced
  • if filename ends with .pdf, a PDF file is produced NOTE: TMathText will be converted to TLatex; q.e.d., symbols only available in TMathText will not render properly.
  • if filename ends with .svg, a SVG file is produced
  • if filename ends with .tex, a TeX file is produced
  • if filename ends with .gif, a GIF file is produced
  • if filename ends with .gif+NN, an animated GIF file is produced See comments in TASImage::WriteImage for meaning of NN and other .gif sufix variants
  • if filename ends with .xpm, a XPM file is produced
  • if filename ends with .png, a PNG file is produced
  • if filename ends with .bmp, a BMP file is produced
  • if filename ends with .jpg or .jpeg a JPEG file is produced NOTE: JPEG's lossy compression will make all sharp edges fuzzy.
  • if filename ends with .tiff, a TIFF file is produced
  • if filename ends with .C, .cxx,.cpp or .cc, a C++ macro file is produced
  • if filename ends with .root, a Root file is produced
  • if filename ends with .xml, a XML file is produced
  • if filename ends with .json, a JSON file is produced
Remarks

Implements TVirtualPad.

Definition at line 5797 of file TPad.cxx.

◆ SaveFillAttributes()

virtual void TAttFill::SaveFillAttributes ( std::ostream & out,
const char * name,
Int_t coldef = 1,
Int_t stydef = 1001 )
virtualinherited

◆ SaveLineAttributes()

virtual void TAttLine::SaveLineAttributes ( std::ostream & out,
const char * name,
Int_t coldef = 1,
Int_t stydef = 1,
Int_t widdef = 1 )
virtualinherited

◆ SavePrimitive()

void TCanvas::SavePrimitive ( std::ostream & out,
Option_t * option = "" )
overridevirtualinherited

Save primitives in this canvas in C++ macro file with GUI.

Reimplemented from TObject.

Definition at line 1773 of file TCanvas.cxx.

◆ SavePrimitiveConstructor()

void TObject::SavePrimitiveConstructor ( std::ostream & out,
TClass * cl,
const char * variable_name,
const char * constructor_agrs = "",
Bool_t empty_line = kTRUE )
staticprotectedinherited

Save object constructor in the output stream "out".

Can be used as first statement when implementing SavePrimitive() method for the object

Definition at line 777 of file TObject.cxx.

◆ SavePrimitiveDraw()

void TObject::SavePrimitiveDraw ( std::ostream & out,
const char * variable_name,
Option_t * option = nullptr )
staticprotectedinherited

Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.

Definition at line 845 of file TObject.cxx.

◆ SavePrimitiveVector()

TString TObject::SavePrimitiveVector ( std::ostream & out,
const char * prefix,
Int_t len,
Double_t * arr,
Int_t flag = 0 )
staticprotectedinherited

Save array in the output stream "out" as vector.

Create unique variable name based on prefix value Returns name of vector which can be used in constructor or in other places of C++ code If flag === kTRUE, just add empty line If flag === 111, check if array is empty and return nullptr or <vectorname>.data()

Definition at line 796 of file TObject.cxx.

◆ SaveSource()

void TCanvas::SaveSource ( const char * filename = "",
Option_t * option = "" )
inherited

Save primitives in this canvas as a C++ macro file.

This function loops on all the canvas primitives and for each primitive calls the object SavePrimitive function. When outputting floating point numbers, the default precision is 7 digits. The precision can be changed (via system.rootrc) by changing the value of the environment variable "Canvas.SavePrecision"

Definition at line 1807 of file TCanvas.cxx.

◆ SaveTextAttributes()

virtual void TAttText::SaveTextAttributes ( std::ostream & out,
const char * name,
Int_t alidef = 12,
Float_t angdef = 0,
Int_t coldef = 1,
Int_t fondef = 61,
Float_t sizdef = 1 )
virtualinherited

◆ Selected()

void TCanvas::Selected ( TVirtualPad * pad,
TObject * obj,
Int_t event )
virtualinherited

Emit Selected() signal.

Definition at line 1632 of file TCanvas.cxx.

◆ SetAfile()

virtual void TAttPad::SetAfile ( Float_t afile)
inlinevirtualinherited

Definition at line 67 of file TAttPad.h.

◆ SetAstat()

virtual void TAttPad::SetAstat ( Float_t astat)
inlinevirtualinherited

Definition at line 70 of file TAttPad.h.

◆ SetAttFillPS()

void TPad::SetAttFillPS ( Color_t color,
Style_t style )
overridevirtualinherited

Set postscript fill area attributes.

DEPRECATED!!! No longer used by ROOT, kept only for backward compatibility

Implements TVirtualPad.

Definition at line 6168 of file TPad.cxx.

◆ SetAttLinePS()

void TPad::SetAttLinePS ( Color_t color,
Style_t style,
Width_t lwidth )
overridevirtualinherited

Set postscript line attributes.

DEPRECATED!!! No longer used by ROOT, kept only for backward compatibility

Implements TVirtualPad.

Definition at line 6180 of file TPad.cxx.

◆ SetAttMarkerPS()

void TPad::SetAttMarkerPS ( Color_t color,
Style_t style,
Size_t msize )
overridevirtualinherited

Set postscript marker attributes.

DEPRECATED!!! No longer used by ROOT, kept only for backward compatibility

Implements TVirtualPad.

Definition at line 6192 of file TPad.cxx.

◆ SetAttTextPS()

void TPad::SetAttTextPS ( Int_t align,
Float_t angle,
Color_t color,
Style_t font,
Float_t tsize )
overridevirtualinherited

Set postscript text attributes.

DEPRECATED!!! No longer used by ROOT, kept only for backward compatibility

Implements TVirtualPad.

Definition at line 6204 of file TPad.cxx.

◆ SetBatch()

void TCanvas::SetBatch ( Bool_t batch = kTRUE)
overridevirtualinherited

Toggle batch mode.

However, if the canvas is created without a window then batch mode always stays set.

Implements TVirtualPad.

Definition at line 1927 of file TCanvas.cxx.

◆ SetBBoxCenter()

void TPad::SetBBoxCenter ( const TPoint & p)
overridevirtualinherited

Set center of the Pad.

Reimplemented from TAttBBox2D.

Definition at line 7266 of file TPad.cxx.

◆ SetBBoxCenterX()

void TPad::SetBBoxCenterX ( const Int_t x)
overridevirtualinherited

Set X coordinate of the center of the Pad.

Implements TAttBBox2D.

Definition at line 7279 of file TPad.cxx.

◆ SetBBoxCenterY()

void TPad::SetBBoxCenterY ( const Int_t y)
overridevirtualinherited

Set Y coordinate of the center of the Pad.

Implements TAttBBox2D.

Definition at line 7290 of file TPad.cxx.

◆ SetBBoxX1()

void TPad::SetBBoxX1 ( const Int_t x)
overridevirtualinherited

Set lefthandside of BoundingBox to a value (resize in x direction on left).

Implements TAttBBox2D.

Definition at line 7302 of file TPad.cxx.

◆ SetBBoxX2()

void TPad::SetBBoxX2 ( const Int_t x)
overridevirtualinherited

Set right hand side of BoundingBox to a value (resize in x direction on right).

Implements TAttBBox2D.

Definition at line 7315 of file TPad.cxx.

◆ SetBBoxY1()

void TPad::SetBBoxY1 ( const Int_t y)
overridevirtualinherited

Set top of BoundingBox to a value (resize in y direction on top).

Implements TAttBBox2D.

Definition at line 7326 of file TPad.cxx.

◆ SetBBoxY2()

void TPad::SetBBoxY2 ( const Int_t y)
overridevirtualinherited

Set bottom of BoundingBox to a value (resize in y direction on bottom).

Implements TAttBBox2D.

Definition at line 7338 of file TPad.cxx.

◆ SetBit() [1/2]

void TObject::SetBit ( UInt_t f)
inlineinherited

Definition at line 202 of file TObject.h.

◆ SetBit() [2/2]

void TObject::SetBit ( UInt_t f,
Bool_t set )
inherited

Set or unset the user status bits as specified in f.

Definition at line 888 of file TObject.cxx.

◆ SetBorderMode()

void TPad::SetBorderMode ( Short_t bordermode)
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 331 of file TPad.h.

◆ SetBorderSize()

void TPad::SetBorderSize ( Short_t bordersize)
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 332 of file TPad.h.

◆ SetBottomMargin()

void TAttPad::SetBottomMargin ( Float_t bottommargin)
virtualinherited

Set Pad bottom margin in fraction of the pad height.

Definition at line 98 of file TAttPad.cxx.

◆ SetCanvas()

void TPad::SetCanvas ( TCanvas * c)
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 333 of file TPad.h.

◆ SetCanvasImp()

void TCanvas::SetCanvasImp ( TCanvasImp * i)
inherited

Set canvas implementation If web-based implementation provided, some internal fields also initialized.

Definition at line 2156 of file TCanvas.cxx.

◆ SetCanvasSize()

void TCanvas::SetCanvasSize ( UInt_t ww,
UInt_t wh )
overridevirtualinherited

Set Width and Height of canvas to ww and wh respectively.

If ww and/or wh are greater than the current canvas window a scroll bar is automatically generated. Use this function to zoom in a canvas and navigate via the scroll bars. The Width and Height in this method are different from those given in the TCanvas constructors where these two dimension include the size of the window decoration whereas they do not in this method. When both ww==0 and wh==0, auto resize mode will be enabled again and canvas drawing area will automatically fit available window size

Implements TVirtualPad.

Definition at line 1945 of file TCanvas.cxx.

◆ SetClickSelected()

void TCanvas::SetClickSelected ( TObject * obj)
inlineinherited

Definition at line 215 of file TCanvas.h.

◆ SetClickSelectedPad()

void TCanvas::SetClickSelectedPad ( TPad * pad)
inlineinherited

Definition at line 217 of file TCanvas.h.

◆ SetCopyGLDevice()

void TPad::SetCopyGLDevice ( Bool_t copy)
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 373 of file TPad.h.

◆ SetCrosshair()

void TPad::SetCrosshair ( Int_t crhair = 1)
overridevirtualinherited

Set crosshair active/inactive.

  • If crhair != 0, a crosshair will be drawn in the pad and its sub-pads.
  • If the canvas crhair = 1 , the crosshair spans the full canvas.
  • If the canvas crhair > 1 , the crosshair spans only the pad.

Implements TVirtualPad.

Definition at line 6627 of file TPad.cxx.

◆ SetCursor()

void TCanvas::SetCursor ( ECursor cursor)
overridevirtualinherited

Set cursor.

Implements TVirtualPad.

Definition at line 1959 of file TCanvas.cxx.

◆ SetDoubleBuffer()

void TCanvas::SetDoubleBuffer ( Int_t mode = 1)
overridevirtualinherited

Set Double Buffer On/Off.

Implements TVirtualPad.

Definition at line 1968 of file TCanvas.cxx.

◆ SetDrawOption()

void TPad::SetDrawOption ( Option_t * option = "")
inlineoverridevirtualinherited

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.

Definition at line 338 of file TPad.h.

◆ SetDtorOnly()

void TObject::SetDtorOnly ( void * obj)
staticinherited

Set destructor only flag.

Definition at line 1204 of file TObject.cxx.

◆ SetEditable()

void TPad::SetEditable ( Bool_t mode = kTRUE)
overridevirtualinherited

Set pad editable yes/no If a pad is not editable:

  • one cannot modify the pad and its objects via the mouse.
  • one cannot add new objects to the pad

Implements TVirtualPad.

Definition at line 6017 of file TPad.cxx.

◆ SetFillAttributes()

virtual void TAttFill::SetFillAttributes ( )
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ SetFillColor() [1/2]

virtual void TAttFill::SetFillColor ( Color_t fcolor)
inlinevirtualinherited

Set the fill area color.

Reimplemented in TGQuartz, TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, TGX11, TPDF, TPostScript, TSpider, TSVG, TTeXDump, and TVirtualX.

Definition at line 40 of file TAttFill.h.

◆ SetFillColor() [2/2]

void TAttFill::SetFillColor ( TColorNumber )
inherited

◆ SetFillColorAlpha()

virtual void TAttFill::SetFillColorAlpha ( Color_t fcolor,
Float_t falpha )
virtualinherited

Reimplemented in TGraphMultiErrors.

◆ SetFillStyle()

void TPad::SetFillStyle ( Style_t fstyle)
overridevirtualinherited

Override TAttFill::FillStyle for TPad because we want to handle style=0 as style 4000.

Reimplemented from TAttFill.

Definition at line 6036 of file TPad.cxx.

◆ SetFixedAspectRatio()

void TCanvas::SetFixedAspectRatio ( Bool_t fixed = kTRUE)
overridevirtualinherited

Fix canvas aspect ratio to current value if fixed is true.

Implements TVirtualPad.

Definition at line 1987 of file TCanvas.cxx.

◆ SetFolder()

void TCanvas::SetFolder ( Bool_t isfolder = kTRUE)
staticinherited

If isfolder=kTRUE, the canvas can be browsed like a folder by default a canvas is not browsable.

Definition at line 2009 of file TCanvas.cxx.

◆ SetFrameBorderMode()

void TAttPad::SetFrameBorderMode ( Int_t mode = 1)
inlineinherited

Definition at line 79 of file TAttPad.h.

◆ SetFrameBorderSize()

void TAttPad::SetFrameBorderSize ( Width_t size = 1)
inlineinherited

Definition at line 78 of file TAttPad.h.

◆ SetFrameFillColor()

void TAttPad::SetFrameFillColor ( Color_t color = 1)
inlineinherited

Definition at line 73 of file TAttPad.h.

◆ SetFrameFillStyle()

void TAttPad::SetFrameFillStyle ( Style_t styl = 0)
inlineinherited

Definition at line 75 of file TAttPad.h.

◆ SetFrameLineColor()

void TAttPad::SetFrameLineColor ( Color_t color = 1)
inlineinherited

Definition at line 74 of file TAttPad.h.

◆ SetFrameLineStyle()

void TAttPad::SetFrameLineStyle ( Style_t styl = 0)
inlineinherited

Definition at line 76 of file TAttPad.h.

◆ SetFrameLineWidth()

void TAttPad::SetFrameLineWidth ( Width_t width = 1)
inlineinherited

Definition at line 77 of file TAttPad.h.

◆ SetGLDevice()

virtual void TPad::SetGLDevice ( Int_t dev)
inlinevirtualinherited

Definition at line 372 of file TPad.h.

◆ SetGrayscale()

void TCanvas::SetGrayscale ( Bool_t set = kTRUE)
inherited

Set whether this canvas should be painted in grayscale, and re-paint it if necessary.

Definition at line 2573 of file TCanvas.cxx.

◆ SetGrid()

void TInspectCanvas::SetGrid ( Int_t valuex = 1,
Int_t valuey = 1 )
inlineoverridevirtual

Implements TVirtualPad.

Definition at line 60 of file TInspectCanvas.h.

◆ SetGridx()

void TInspectCanvas::SetGridx ( Int_t value = 1)
inlineoverridevirtual

Implements TVirtualPad.

Definition at line 61 of file TInspectCanvas.h.

◆ SetGridy()

void TInspectCanvas::SetGridy ( Int_t value = 1)
inlineoverridevirtual

Implements TVirtualPad.

Definition at line 62 of file TInspectCanvas.h.

◆ SetHighLightColor()

void TCanvas::SetHighLightColor ( Color_t col)
inlineinherited

Definition at line 213 of file TCanvas.h.

◆ SetLeftMargin()

void TAttPad::SetLeftMargin ( Float_t leftmargin)
virtualinherited

Set Pad left margin in fraction of the pad width.

Definition at line 108 of file TAttPad.cxx.

◆ SetLineAttributes()

virtual void TAttLine::SetLineAttributes ( )
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ SetLineColor() [1/2]

◆ SetLineColor() [2/2]

void TAttLine::SetLineColor ( TColorNumber lcolor)
inherited

◆ SetLineColorAlpha()

virtual void TAttLine::SetLineColorAlpha ( Color_t lcolor,
Float_t lalpha )
virtualinherited

Reimplemented in TGraphMultiErrors.

◆ SetLineStyle()

virtual void TAttLine::SetLineStyle ( Style_t lstyle)
inlinevirtualinherited

◆ SetLineWidth()

virtual void TAttLine::SetLineWidth ( Width_t lwidth)
inlinevirtualinherited

◆ SetLogx()

void TInspectCanvas::SetLogx ( Int_t value = 1)
inlineoverridevirtual

Implements TVirtualPad.

Definition at line 63 of file TInspectCanvas.h.

◆ SetLogy()

void TInspectCanvas::SetLogy ( Int_t value = 1)
inlineoverridevirtual

Implements TVirtualPad.

Definition at line 64 of file TInspectCanvas.h.

◆ SetLogz()

void TInspectCanvas::SetLogz ( Int_t value = 1)
inlineoverridevirtual

Implements TVirtualPad.

Definition at line 65 of file TInspectCanvas.h.

◆ SetMargin()

void TAttPad::SetMargin ( Float_t left,
Float_t right,
Float_t bottom,
Float_t top )
virtualinherited

Set all margins.

Definition at line 138 of file TAttPad.cxx.

◆ SetMaxPickDistance()

void TPad::SetMaxPickDistance ( Int_t maxPick = 5)
staticinherited

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

Definition at line 6643 of file TPad.cxx.

◆ SetName()

void TCanvas::SetName ( const char * name = "")
overridevirtualinherited

Set canvas name.

In case name is an empty string, a default name is set. Canvas automatically marked as modified when SetName method called

Implements TVirtualPad.

Reimplemented in TDialogCanvas.

Definition at line 2018 of file TCanvas.cxx.

◆ SetNumber()

virtual void TPad::SetNumber ( Int_t number)
inlinevirtualinherited

Definition at line 348 of file TPad.h.

◆ SetObjectStat()

void TObject::SetObjectStat ( Bool_t stat)
staticinherited

Turn on/off tracking of objects in the TObjectTable.

Definition at line 1188 of file TObject.cxx.

◆ SetPad() [1/2]

void TPad::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 )
overridevirtualinherited

Set all pad parameters.

Implements TVirtualPad.

Definition at line 6133 of file TPad.cxx.

◆ SetPad() [2/2]

void TPad::SetPad ( Double_t xlow,
Double_t ylow,
Double_t xup,
Double_t yup )
overridevirtualinherited

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.

Definition at line 6085 of file TPad.cxx.

◆ SetPadSave()

void TCanvas::SetPadSave ( TPad * pad)
inlineinherited

Definition at line 222 of file TCanvas.h.

◆ SetPhi()

void TPad::SetPhi ( Double_t phi = 30)
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 366 of file TPad.h.

◆ SetRealAspectRatio()

bool TCanvas::SetRealAspectRatio ( const Int_t axis = 1)
inherited

Function to resize a canvas so that the plot inside is shown in real aspect ratio.

Parameters
[in]axis1 for resizing horizontally (x-axis) in order to get real aspect ratio, 2 for the resizing vertically (y-axis)
Returns
false if error is encountered, true otherwise
hpxpy->Draw();
c1->SetRealAspectRatio();
  • For defining the concept of real aspect ratio, it is assumed that x and y axes are in same units, e.g. both in MeV or both in ns.
  • You can resize either the width of the canvas or the height, but not both at the same time
  • Call this function AFTER drawing AND zooming (SetUserRange) your TGraph or Histogram, otherwise it cannot infer your actual axes lengths
  • This function ensures that the TFrame has a real aspect ratio, this does not mean that the full pad (i.e. the canvas or png output) including margins has exactly the same ratio
  • This function does not work if the canvas is divided in several subpads

Definition at line 2050 of file TCanvas.cxx.

◆ SetRetained()

void TCanvas::SetRetained ( Bool_t retained = kTRUE)
inlineinherited

Definition at line 224 of file TCanvas.h.

◆ SetRightMargin()

void TAttPad::SetRightMargin ( Float_t rightmargin)
virtualinherited

Set Pad right margin in fraction of the pad width.

Definition at line 118 of file TAttPad.cxx.

◆ SetSelected()

void TCanvas::SetSelected ( TObject * obj)
overridevirtualinherited

Set selected canvas.

Implements TVirtualPad.

Definition at line 2117 of file TCanvas.cxx.

◆ SetSelectedPad()

void TCanvas::SetSelectedPad ( TPad * pad)
inlineinherited

Definition at line 216 of file TCanvas.h.

◆ SetSupportGL()

void TCanvas::SetSupportGL ( Bool_t support)
inlineinherited

Definition at line 235 of file TCanvas.h.

◆ SetTextAlign()

virtual void TAttText::SetTextAlign ( Short_t align = 11)
inlinevirtualinherited

Set the text alignment.

Reimplemented in TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, and TVirtualX.

Definition at line 48 of file TAttText.h.

◆ SetTextAngle()

virtual void TAttText::SetTextAngle ( Float_t tangle = 0)
inlinevirtualinherited

Set the text angle.

Reimplemented in TGraphNode, and TGWin32VirtualXProxy.

Definition at line 49 of file TAttText.h.

◆ SetTextAttributes()

virtual void TAttText::SetTextAttributes ( )
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ SetTextColor() [1/2]

virtual void TAttText::SetTextColor ( Color_t tcolor = 1)
inlinevirtualinherited

Set the text color.

Reimplemented in TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, TPDF, TPostScript, TSVG, TTeXDump, and TVirtualX.

Definition at line 50 of file TAttText.h.

◆ SetTextColor() [2/2]

void TAttText::SetTextColor ( TColorNumber lcolor)
inherited

◆ SetTextColorAlpha()

virtual void TAttText::SetTextColorAlpha ( Color_t tcolor,
Float_t talpha )
virtualinherited

◆ SetTextFont()

virtual void TAttText::SetTextFont ( Font_t tfont = 62)
inlinevirtualinherited

Set the text font.

Reimplemented in TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, and TVirtualX.

Definition at line 52 of file TAttText.h.

◆ SetTextSize()

virtual void TAttText::SetTextSize ( Float_t tsize = 1)
inlinevirtualinherited

Set the text size.

Reimplemented in TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, and TVirtualX.

Definition at line 53 of file TAttText.h.

◆ SetTextSizePixels()

virtual void TAttText::SetTextSizePixels ( Int_t npixels)
virtualinherited

Set the text size in pixel.

Reimplemented in TGWin32VirtualXProxy.

◆ SetTheta()

void TPad::SetTheta ( Double_t theta = 30)
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 365 of file TPad.h.

◆ SetTicks()

void TPad::SetTicks ( Int_t valuex = 1,
Int_t valuey = 1 )
inlineoverridevirtualinherited

Implements TVirtualPad.

Definition at line 361 of file TPad.h.

◆ SetTickx()

void TInspectCanvas::SetTickx ( Int_t value = 1)
inlineoverridevirtual

Implements TVirtualPad.

Definition at line 66 of file TInspectCanvas.h.

◆ SetTicky()

void TInspectCanvas::SetTicky ( Int_t value = 1)
inlineoverridevirtual

Implements TVirtualPad.

Definition at line 67 of file TInspectCanvas.h.

◆ SetTitle()

void TCanvas::SetTitle ( const char * title = "")
overridevirtualinherited

Set canvas title.

Implements TVirtualPad.

Definition at line 2126 of file TCanvas.cxx.

◆ SetToolTipText()

void TPad::SetToolTipText ( const char * text,
Long_t delayms = 1000 )
overridevirtualinherited

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.

Definition at line 6653 of file TPad.cxx.

◆ SetTopMargin()

void TAttPad::SetTopMargin ( Float_t topmargin)
virtualinherited

Set Pad top margin in fraction of the pad height.

Definition at line 128 of file TAttPad.cxx.

◆ SetUniqueID()

void TObject::SetUniqueID ( UInt_t uid)
virtualinherited

Set the unique object id.

Definition at line 899 of file TObject.cxx.

◆ SetVertical()

void TPad::SetVertical ( Bool_t vert = kTRUE)
overridevirtualinherited

Set pad vertical (default) or horizontal.

Implements TVirtualPad.

Definition at line 6667 of file TPad.cxx.

◆ SetView()

void TPad::SetView ( TView * view = nullptr)
overridevirtualinherited

Set the current TView. Delete previous view if view=0.

Implements TVirtualPad.

Definition at line 6157 of file TPad.cxx.

◆ SetViewer3D()

void TPad::SetViewer3D ( TVirtualViewer3D * viewer3d)
inlineoverridevirtualinherited

Reimplemented from TVirtualPad.

Definition at line 370 of file TPad.h.

◆ SetWindowPosition()

void TCanvas::SetWindowPosition ( Int_t x,
Int_t y )
inherited

Set canvas window position.

Definition at line 2135 of file TCanvas.cxx.

◆ SetWindowSize()

void TCanvas::SetWindowSize ( UInt_t ww,
UInt_t wh )
inherited

Set canvas window size.

Definition at line 2144 of file TCanvas.cxx.

◆ SetXfile()

virtual void TAttPad::SetXfile ( Float_t xfile)
inlinevirtualinherited

Definition at line 68 of file TAttPad.h.

◆ SetXstat()

virtual void TAttPad::SetXstat ( Float_t xstat)
inlinevirtualinherited

Definition at line 71 of file TAttPad.h.

◆ SetYfile()

virtual void TAttPad::SetYfile ( Float_t yfile)
inlinevirtualinherited

Definition at line 69 of file TAttPad.h.

◆ SetYstat()

virtual void TAttPad::SetYstat ( Float_t ystat)
inlinevirtualinherited

Definition at line 72 of file TAttPad.h.

◆ Show()

void TCanvas::Show ( )
inherited

Show canvas.

Definition at line 2207 of file TCanvas.cxx.

◆ ShowGuidelines()

void TPad::ShowGuidelines ( TObject * object,
const Int_t event,
const char mode = 'i',
const bool cling = true )
overridevirtualinherited

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.

Definition at line 6313 of file TPad.cxx.

◆ Size()

void TCanvas::Size ( Float_t xsize = 0,
Float_t ysize = 0 )
virtualinherited

Set the canvas scale in centimeters.

This information is used by PostScript to set the page size.

Parameters
[in]xsizesize of the canvas in centimeters along X
[in]ysizesize of the canvas in centimeters along Y

if xsize and ysize are not equal to 0, then the scale factors will be computed to keep the ratio ysize/xsize independently of the canvas size (parts of the physical canvas will be unused).

if xsize = 0 and ysize is not zero, then xsize will be computed to fit to the current canvas scale. If the canvas is resized, a new value for xsize will be recomputed. In this case the aspect ratio is not preserved.

if both xsize = 0 and ysize = 0, then the scaling is automatic. the largest dimension will be allocated a size of 20 centimeters.

Definition at line 2196 of file TCanvas.cxx.

◆ StartEditing()

virtual void TPad::StartEditing ( )
inlinevirtualinherited

Definition at line 427 of file TPad.h.

◆ Streamer()

void TInspectCanvas::Streamer ( TBuffer & b)
overridevirtual

Stream a class object.

Reimplemented from TCanvas.

◆ StreamerNVirtual()

void TInspectCanvas::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 56 of file TInspectCanvas.h.

◆ SupportAlpha()

Bool_t TCanvas::SupportAlpha ( )
staticinherited

Static function returning "true" if transparency is supported.

Definition at line 2471 of file TCanvas.cxx.

◆ SysError()

void TObject::SysError ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue system error message.

Use "location" to specify the method where the system error occurred. Accepts standard printf formatting arguments.

Definition at line 1112 of file TObject.cxx.

◆ TestBit()

Bool_t TObject::TestBit ( UInt_t f) const
inlineinherited

Definition at line 204 of file TObject.h.

◆ TestBits()

Int_t TObject::TestBits ( UInt_t f) const
inlineinherited

Definition at line 205 of file TObject.h.

◆ ToggleAutoExec()

void TCanvas::ToggleAutoExec ( )
virtualinherited

Toggle pad auto execution of list of TExecs.

Definition at line 2417 of file TCanvas.cxx.

◆ ToggleEditor()

void TCanvas::ToggleEditor ( )
virtualinherited

Toggle editor.

Definition at line 2448 of file TCanvas.cxx.

◆ ToggleEventStatus()

void TCanvas::ToggleEventStatus ( )
virtualinherited

Toggle event statusbar.

Definition at line 2426 of file TCanvas.cxx.

◆ ToggleToolBar()

void TCanvas::ToggleToolBar ( )
virtualinherited

Toggle toolbar.

Definition at line 2437 of file TCanvas.cxx.

◆ ToggleToolTips()

void TCanvas::ToggleToolTips ( )
virtualinherited

Toggle tooltip display.

Definition at line 2459 of file TCanvas.cxx.

◆ UnZoomed()

virtual void TVirtualPad::UnZoomed ( )
inlinevirtualinherited

Definition at line 99 of file TVirtualPad.h.

◆ Update()

void TCanvas::Update ( )
overridevirtualinherited

Update canvas pad buffers.

Implements TVirtualPad.

Definition at line 2486 of file TCanvas.cxx.

◆ UpdateAsync()

void TCanvas::UpdateAsync ( )
overridevirtualinherited

Asynchronous pad update.

In case of web-based canvas triggers update of the canvas on the client side, but does not wait that real update is completed. Avoids blocking of caller thread. Have to be used if called from other web-based widget to avoid logical dead-locks. In case of normal canvas just canvas->Update() is performed.

Implements TVirtualPad.

Definition at line 2542 of file TCanvas.cxx.

◆ UseCurrentStyle()

void TCanvas::UseCurrentStyle ( )
overridevirtualinherited

Force a copy of current style for all objects in canvas.

Reimplemented from TObject.

Definition at line 1179 of file TCanvas.cxx.

◆ UseGL()

Bool_t TCanvas::UseGL ( ) const
inlineinherited

Definition at line 234 of file TCanvas.h.

◆ UtoAbsPixel()

Int_t TPad::UtoAbsPixel ( Double_t u) const
overridevirtualinherited

Convert X NDC to absolute pixel.

Implements TVirtualPad.

Definition at line 7458 of file TPad.cxx.

◆ UtoPixel()

Int_t TPad::UtoPixel ( Double_t u) const
overridevirtualinherited

Convert X NDC to pixel.

Implements TVirtualPad.

Definition at line 7442 of file TPad.cxx.

◆ VtoAbsPixel()

Int_t TPad::VtoAbsPixel ( Double_t v) const
overridevirtualinherited

Convert Y NDC to absolute pixel.

Implements TVirtualPad.

Definition at line 7466 of file TPad.cxx.

◆ VtoPixel()

Int_t TPad::VtoPixel ( Double_t v) const
overridevirtualinherited

Convert Y NDC to pixel.

Implements TVirtualPad.

Definition at line 7450 of file TPad.cxx.

◆ WaitPrimitive()

TObject * TPad::WaitPrimitive ( const char * pname = "",
const char * emode = "" )
overridevirtualinherited

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:

  • emode = "" (default). User will select the mode via the editor bar
  • emode = "Arc", "Line", "Arrow", "Button", "Diamond", "Ellipse",
  • emode = "Pad","pave", "PaveLabel","PaveText", "PavesText",
  • emode = "PolyLine", "CurlyLine", "CurlyArc", "Text", "Marker", "CutG"

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:

c1.WaitPrimitive(); // Return the first created primitive
// whatever it is.
// If a double-click with the mouse is executed
// in the pad or any key pressed, the function
// returns 0.
c1.WaitPrimitive("ggg"); // Set the editor in mode "PolyLine/Graph"
// Create a polyline, then using the context
// menu item "SetName", change the name
// of the created TGraph to "ggg"
c1.WaitPrimitive("TArc");// Set the editor in mode "Arc". Returns
// as soon as a TArc object is created.
c1.WaitPrimitive("lat","Text"); // Set the editor in Text/Latex mode.
// Create a text object, then Set its name to "lat"

The following macro waits for 10 primitives of any type to be created.

{
TCanvas c1("c1");
TObject *obj;
for (Int_t i=0;i<10;i++) {
obj = gPad->WaitPrimitive();
if (!obj) break;
printf("Loop i=%d, found objIsA=%s, name=%s\n",
i,obj->ClassName(),obj->GetName());
}
}
virtual const char * GetName() const
Returns name of object.
Definition TObject.cxx:462
virtual const char * ClassName() const
Returns name of class to which the object belongs.
Definition TObject.cxx:227

If ROOT runs in batch mode a call to this method does nothing.

Implements TVirtualPad.

Definition at line 7010 of file TPad.cxx.

◆ Warning()

void TObject::Warning ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue warning message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1084 of file TObject.cxx.

◆ Write() [1/2]

Int_t TObject::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 )
virtualinherited

Write this object to the current directory.

For more see the const version of this method.

Reimplemented in ROOT::TBufferMergerFile, TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.

Definition at line 989 of file TObject.cxx.

◆ Write() [2/2]

Int_t TObject::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 ) const
virtualinherited

Write this object to the current directory.

The data structure corresponding to this object is serialized. The corresponding buffer is written to the current directory with an associated key with name "name".

Writing an object to a file involves the following steps:

  • Creation of a support TKey object in the current directory. The TKey object creates a TBuffer object.
  • The TBuffer object is filled via the class::Streamer function.
  • If the file is compressed (default) a second buffer is created to hold the compressed buffer.
  • Reservation of the corresponding space in the file by looking in the TFree list of free blocks of the file.
  • The buffer is written to the file.

Bufsize can be given to force a given buffer size to write this object. By default, the buffersize will be taken from the average buffer size of all objects written to the current file so far.

If a name is specified, it will be the name of the key. If name is not given, the name of the key will be the name as returned by GetName().

The option can be a combination of: kSingleKey, kOverwrite or kWriteDelete Using the kOverwrite option a previous key with the same name is overwritten. The previous key is deleted before writing the new object. Using the kWriteDelete option a previous key with the same name is deleted only after the new object has been written. This option is safer than kOverwrite but it is slower. NOTE: Neither kOverwrite nor kWriteDelete reduces the size of a TFile– the space is simply freed up to be overwritten; in the case of a TTree, it is more complicated. If one opens a TTree, appends some entries, then writes it out, the behaviour is effectively the same. If, however, one creates a new TTree and writes it out in this way, only the metadata is replaced, effectively making the old data invisible without deleting it. TTree::Delete() can be used to mark all disk space occupied by a TTree as free before overwriting its metadata this way. The kSingleKey option is only used by TCollection::Write() to write a container with a single key instead of each object in the container with its own key.

An object is read from the file into memory via TKey::Read() or via TObject::Read().

The function returns the total number of bytes written to the file. It returns 0 if the object cannot be written.

Reimplemented in TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.

Definition at line 964 of file TObject.cxx.

◆ WtoAbsPixel()

Int_t TPad::WtoAbsPixel ( Double_t x1,
Double_t x2 ) const
overridevirtualinherited

Convert a horizontal distance [x1,x2] to pixel.

Implements TVirtualPad.

Definition at line 7508 of file TPad.cxx.

◆ x3d()

void TInspectCanvas::x3d ( Option_t * type = "")
inlineoverridevirtual

Deprecated: use TPad::GetViewer3D() instead.

Reimplemented from TPad.

Definition at line 68 of file TInspectCanvas.h.

◆ XtoAbsPixel()

Int_t TPad::XtoAbsPixel ( Double_t x) const
overridevirtualinherited

Convert X coordinate to absolute pixel.

Implements TVirtualPad.

Definition at line 7474 of file TPad.cxx.

◆ XtoPad()

Double_t TPad::XtoPad ( Double_t x) const
overridevirtualinherited

Convert x from X to pad.

Implements TVirtualPad.

Definition at line 3588 of file TPad.cxx.

◆ XtoPixel()

Int_t TPad::XtoPixel ( Double_t x) const
overridevirtualinherited

Convert X coordinate to pixel.

Implements TVirtualPad.

Definition at line 7482 of file TPad.cxx.

◆ XYtoAbsPixel() [1/2]

void TPad::XYtoAbsPixel ( Double_t x,
Double_t y,
Double_t & xpixel,
Double_t & ypixel ) const
overridevirtualinherited

Convert X/Y into absolute pixel coordinates - doble Introduced to avoid pixel rounding problems.

Implements TVirtualPad.

Definition at line 7415 of file TPad.cxx.

◆ XYtoAbsPixel() [2/2]

void TPad::XYtoAbsPixel ( Double_t x,
Double_t y,
Int_t & xpixel,
Int_t & ypixel ) const
overridevirtualinherited

Convert X/Y into absolute pixel coordinates - integer.

Implements TVirtualPad.

Definition at line 7397 of file TPad.cxx.

◆ XYtoPixel() [1/2]

void TPad::XYtoPixel ( Double_t x,
Double_t y,
Double_t & xpixel,
Double_t & ypixel ) const
overridevirtualinherited

Convert X/Y into pixel coordinates - double.

Implements TVirtualPad.

Definition at line 7433 of file TPad.cxx.

◆ XYtoPixel() [2/2]

void TPad::XYtoPixel ( Double_t x,
Double_t y,
Int_t & xpixel,
Int_t & ypixel ) const
overridevirtualinherited

Convert X/Y into pixel coordinates - integer.

Implements TVirtualPad.

Definition at line 7424 of file TPad.cxx.

◆ YtoAbsPixel()

Int_t TPad::YtoAbsPixel ( Double_t y) const
overridevirtualinherited

Convert Y coordinate to absolute pixel.

Implements TVirtualPad.

Definition at line 7490 of file TPad.cxx.

◆ YtoPad()

Double_t TPad::YtoPad ( Double_t y) const
overridevirtualinherited

Convert y from Y to pad.

Implements TVirtualPad.

Definition at line 3600 of file TPad.cxx.

◆ YtoPixel()

Int_t TPad::YtoPixel ( Double_t y) const
overridevirtualinherited

Convert Y coordinate to pixel.

Implements TVirtualPad.

Definition at line 7519 of file TPad.cxx.

Member Data Documentation

◆ fAbsCoord

Bool_t TPad::fAbsCoord
protectedinherited

Use absolute coordinates.

Definition at line 102 of file TPad.h.

◆ fAbsHNDC

Double_t TPad::fAbsHNDC
protectedinherited

Absolute Height of pad along Y in NDC.

Definition at line 72 of file TPad.h.

◆ fAbsPixeltoXk

Double_t TPad::fAbsPixeltoXk
protectedinherited

Conversion coefficient for absolute pixel to X World.

Definition at line 55 of file TPad.h.

◆ fAbsPixeltoYk

Double_t TPad::fAbsPixeltoYk
protectedinherited

Conversion coefficient for absolute pixel to Y World.

Definition at line 58 of file TPad.h.

◆ fAbsWNDC

Double_t TPad::fAbsWNDC
protectedinherited

Absolute Width of pad along X in NDC.

Definition at line 71 of file TPad.h.

◆ fAbsXlowNDC

Double_t TPad::fAbsXlowNDC
protectedinherited

Absolute X top left corner of pad in NDC [0,1].

Definition at line 69 of file TPad.h.

◆ fAbsYlowNDC

Double_t TPad::fAbsYlowNDC
protectedinherited

Absolute Y top left corner of pad in NDC [0,1].

Definition at line 70 of file TPad.h.

◆ fAfile

Float_t TAttPad::fAfile
protectedinherited

Alignment for the file name.

Definition at line 27 of file TAttPad.h.

◆ fAspectRatio

Double_t TPad::fAspectRatio
protectedinherited

ratio of w/h in case of fixed ratio

Definition at line 82 of file TPad.h.

◆ fAstat

Float_t TAttPad::fAstat
protectedinherited

Alignment for the statistics.

Definition at line 30 of file TAttPad.h.

◆ fBackward

TButton* TInspectCanvas::fBackward {nullptr}
protected

Pointer to the Backward button.

Definition at line 25 of file TInspectCanvas.h.

◆ fBatch

Bool_t TCanvas::fBatch
protectedinherited

! True when in batchmode

Definition at line 60 of file TCanvas.h.

◆ fBits

UInt_t TObject::fBits
privateinherited

bit field status word

Definition at line 47 of file TObject.h.

◆ fBorderMode

Short_t TPad::fBorderMode
protectedinherited

Bordermode (-1=down, 0 = no border, 1=up).

Definition at line 98 of file TPad.h.

◆ fBorderSize

Short_t TPad::fBorderSize
protectedinherited

pad bordersize in pixels

Definition at line 97 of file TPad.h.

◆ fBottomMargin

Float_t TAttPad::fBottomMargin
protectedinherited

BottomMargin.

Definition at line 23 of file TAttPad.h.

◆ fCanvas

TCanvas* TPad::fCanvas {nullptr}
protectedinherited

! Pointer to mother canvas

Definition at line 106 of file TPad.h.

◆ fCanvasID

Int_t TCanvas::fCanvasID
protectedinherited

! Canvas identifier

Definition at line 49 of file TCanvas.h.

◆ fCanvasImp

TCanvasImp* TCanvas::fCanvasImp
protectedinherited

! Window system specific canvas implementation

Definition at line 58 of file TCanvas.h.

◆ fCatt

TAttCanvas TCanvas::fCatt
protectedinherited

Canvas attributes.

Definition at line 32 of file TCanvas.h.

◆ fCGnx

Int_t TPad::fCGnx
protectedinherited

! Size of the collide grid along x

Definition at line 119 of file TPad.h.

◆ fCGny

Int_t TPad::fCGny
protectedinherited

! Size of the collide grid along y

Definition at line 120 of file TPad.h.

◆ fCh

UInt_t TCanvas::fCh
protectedinherited

Height of the canvas along Y (pixels).

Definition at line 45 of file TCanvas.h.

◆ fClickSelected

TObject* TCanvas::fClickSelected
protectedinherited

! Currently click-selected object

Definition at line 51 of file TCanvas.h.

◆ fClickSelectedPad

TPad* TCanvas::fClickSelectedPad
protectedinherited

! Pad containing currently click-selected object

Definition at line 56 of file TCanvas.h.

◆ fCollideGrid

std::vector<Bool_t> TPad::fCollideGrid
protectedinherited

! Grid used to find empty space when adding a box (Legend) in a pad

Definition at line 118 of file TPad.h.

◆ fContextMenu

TContextMenu* TCanvas::fContextMenu
protectedinherited

! Context menu pointer

Definition at line 59 of file TCanvas.h.

◆ fCopyGLDevice

Bool_t TPad::fCopyGLDevice
protectedinherited

!

Definition at line 86 of file TPad.h.

◆ fCrosshair

Int_t TPad::fCrosshair
protectedinherited

Crosshair type (0 if no crosshair requested).

Definition at line 95 of file TPad.h.

◆ fCrosshairPos

Int_t TPad::fCrosshairPos
protectedinherited

Position of crosshair.

Definition at line 96 of file TPad.h.

◆ fCurObject

TObject* TInspectCanvas::fCurObject {nullptr}
protected

Pointer to object being inspected.

Definition at line 28 of file TInspectCanvas.h.

◆ fCw

UInt_t TCanvas::fCw
protectedinherited

Width of the canvas along X (pixels).

Definition at line 44 of file TCanvas.h.

◆ fDISPLAY

TString TCanvas::fDISPLAY
protectedinherited

Name of destination screen.

Definition at line 33 of file TCanvas.h.

◆ fDoubleBuffer

Int_t TCanvas::fDoubleBuffer
protectedinherited

Double buffer flag (0=off, 1=on).

Definition at line 39 of file TCanvas.h.

◆ fDrawn

Bool_t TCanvas::fDrawn
protectedinherited

! Set to True when the Draw method is called

Definition at line 64 of file TCanvas.h.

◆ fEditable

Bool_t TPad::fEditable
protectedinherited

True if canvas is editable.

Definition at line 103 of file TPad.h.

◆ fEmbeddedGL

Bool_t TPad::fEmbeddedGL
protectedinherited

!

Definition at line 87 of file TPad.h.

◆ fEvent

Int_t TCanvas::fEvent
protectedinherited

! Type of current or last handled event

Definition at line 46 of file TCanvas.h.

◆ fEventX

Int_t TCanvas::fEventX
protectedinherited

! Last X mouse position in canvas

Definition at line 47 of file TCanvas.h.

◆ fEventY

Int_t TCanvas::fEventY
protectedinherited

! Last Y mouse position in canvas

Definition at line 48 of file TCanvas.h.

◆ fExecs

TList* TPad::fExecs {nullptr}
protectedinherited

List of commands to be executed when a pad event occurs.

Definition at line 108 of file TPad.h.

◆ fFillColor

Color_t TAttFill::fFillColor
protectedinherited

Fill area color.

Definition at line 24 of file TAttFill.h.

◆ fFillStyle

Style_t TAttFill::fFillStyle
protectedinherited

Fill area style.

Definition at line 25 of file TAttFill.h.

◆ fFixedAspectRatio

Bool_t TPad::fFixedAspectRatio
protectedinherited

True if fixed aspect ratio.

Definition at line 104 of file TPad.h.

◆ fForward

TButton* TInspectCanvas::fForward {nullptr}
protected

Pointer to the Forward button.

Definition at line 26 of file TInspectCanvas.h.

◆ fFrame

TFrame* TPad::fFrame {nullptr}
protectedinherited

! Pointer to 2-D frame (if one exists)

Definition at line 111 of file TPad.h.

◆ fFrameBorderMode

Int_t TAttPad::fFrameBorderMode
protectedinherited

Pad frame border mode.

Definition at line 37 of file TAttPad.h.

◆ fFrameBorderSize

Width_t TAttPad::fFrameBorderSize
protectedinherited

Pad frame border size.

Definition at line 36 of file TAttPad.h.

◆ fFrameFillColor

Color_t TAttPad::fFrameFillColor
protectedinherited

Pad frame fill color.

Definition at line 31 of file TAttPad.h.

◆ fFrameFillStyle

Style_t TAttPad::fFrameFillStyle
protectedinherited

Pad frame fill style.

Definition at line 33 of file TAttPad.h.

◆ fFrameLineColor

Color_t TAttPad::fFrameLineColor
protectedinherited

Pad frame line color.

Definition at line 32 of file TAttPad.h.

◆ fFrameLineStyle

Style_t TAttPad::fFrameLineStyle
protectedinherited

Pad frame line style.

Definition at line 34 of file TAttPad.h.

◆ fFrameLineWidth

Width_t TAttPad::fFrameLineWidth
protectedinherited

Pad frame line width.

Definition at line 35 of file TAttPad.h.

◆ fgAllSignalsBlocked

Bool_t TQObject::fgAllSignalsBlocked = kFALSE
staticprotectedinherited

Definition at line 55 of file TQObject.h.

◆ fgDtorOnly

Longptr_t TObject::fgDtorOnly = 0
staticprivateinherited

object for which to call dtor only (i.e. no delete)

Definition at line 49 of file TObject.h.

◆ fgIsFolder

Bool_t TCanvas::fgIsFolder = kFALSE
staticprotectedinherited

Indicates if canvas can be browsed as a folder.

Definition at line 71 of file TCanvas.h.

◆ fGLDevice

Int_t TPad::fGLDevice
protectedinherited

! OpenGL off-screen pixmap identifier

Definition at line 85 of file TPad.h.

◆ fgMaxPickDistance

Int_t TPad::fgMaxPickDistance = 5
staticprotectedinherited

Maximum Pick Distance.

Definition at line 115 of file TPad.h.

◆ fgObjectStat

Bool_t TObject::fgObjectStat = kTRUE
staticprivateinherited

if true keep track of objects in TObjectTable

Definition at line 50 of file TObject.h.

◆ fGridx

Bool_t TPad::fGridx
protectedinherited

Set to true if grid along X.

Definition at line 100 of file TPad.h.

◆ fGridy

Bool_t TPad::fGridy
protectedinherited

Set to true if grid along Y.

Definition at line 101 of file TPad.h.

◆ fHighLightColor

Color_t TCanvas::fHighLightColor
protectedinherited

Highlight color of active pad.

Definition at line 38 of file TCanvas.h.

◆ fHilightPadBorder

TVirtualPad* TCanvas::fHilightPadBorder = nullptr
protectedinherited

! pad which border will be hilghlighrt when paint canvas

Definition at line 69 of file TCanvas.h.

◆ fHNDC

Double_t TPad::fHNDC
protectedinherited

Height of pad along Y in Normalized Coordinates (NDC).

Definition at line 67 of file TPad.h.

◆ fLeftMargin

Float_t TAttPad::fLeftMargin
protectedinherited

LeftMargin.

Definition at line 21 of file TAttPad.h.

◆ fLineColor

Color_t TAttLine::fLineColor
protectedinherited

Line color.

Definition at line 24 of file TAttLine.h.

◆ fLineStyle

Style_t TAttLine::fLineStyle
protectedinherited

Line style.

Definition at line 25 of file TAttLine.h.

◆ fLineWidth

Width_t TAttLine::fLineWidth
protectedinherited

Line width.

Definition at line 26 of file TAttLine.h.

◆ fListOfConnections

TList* TQObject::fListOfConnections
protectedinherited

! list of connections to this object

Definition at line 52 of file TQObject.h.

◆ fListOfSignals

TList* TQObject::fListOfSignals
protectedinherited

! list of signals from this object

Definition at line 51 of file TQObject.h.

◆ fLogx

Int_t TPad::fLogx
protectedinherited

(=0 if X linear scale, =1 if log scale)

Definition at line 91 of file TPad.h.

◆ fLogy

Int_t TPad::fLogy
protectedinherited

(=0 if Y linear scale, =1 if log scale)

Definition at line 92 of file TPad.h.

◆ fLogz

Int_t TPad::fLogz
protectedinherited

(=0 if Z linear scale, =1 if log scale)

Definition at line 93 of file TPad.h.

◆ fModified

Bool_t TPad::fModified
protectedinherited

Set to true when pad is modified.

Definition at line 99 of file TPad.h.

◆ fMother

TPad* TPad::fMother {nullptr}
protectedinherited

! pointer to mother of the list

Definition at line 105 of file TPad.h.

◆ fName

TString TPad::fName
protectedinherited

Pad name.

Definition at line 109 of file TPad.h.

◆ fNextPaletteColor

Int_t TPad::fNextPaletteColor
protectedinherited

Next automatic color.

Definition at line 117 of file TPad.h.

◆ fNumber

Int_t TPad::fNumber
protectedinherited

pad number identifier

Definition at line 88 of file TPad.h.

◆ fNumPaletteColor

Int_t TPad::fNumPaletteColor
protectedinherited

Number of objects with an automatic color.

Definition at line 116 of file TPad.h.

◆ fObjects

TList* TInspectCanvas::fObjects {nullptr}
protected

List of objects inspected.

Definition at line 27 of file TInspectCanvas.h.

◆ fPadPaint

Int_t TPad::fPadPaint
protectedinherited

Set to 1 while painting the pad.

Definition at line 94 of file TPad.h.

◆ fPadPointer

TObject* TPad::fPadPointer {nullptr}
protectedinherited

! free pointer

Definition at line 113 of file TPad.h.

◆ fPadSave

TPad* TCanvas::fPadSave
protectedinherited

! Pointer to saved pad in HandleInput

Definition at line 57 of file TCanvas.h.

◆ fPadView3D

TObject* TPad::fPadView3D {nullptr}
protectedinherited

! 3D View of this TPad

Definition at line 114 of file TPad.h.

◆ fPainter

TVirtualPadPainter* TCanvas::fPainter
protectedinherited

! Canvas (pad) painter.

Definition at line 67 of file TCanvas.h.

◆ fPhi

Double_t TPad::fPhi
protectedinherited

phi angle to view as lego/surface

Definition at line 80 of file TPad.h.

◆ fPixeltoX

Double_t TPad::fPixeltoX
protectedinherited

xworld = fPixeltoXk + fPixeltoX*xpixel

Definition at line 57 of file TPad.h.

◆ fPixeltoXk

Double_t TPad::fPixeltoXk
protectedinherited

Conversion coefficient for pixel to X World.

Definition at line 56 of file TPad.h.

◆ fPixeltoY

Double_t TPad::fPixeltoY
protectedinherited

yworld = fPixeltoYk + fPixeltoY*ypixel

Definition at line 60 of file TPad.h.

◆ fPixeltoYk

Double_t TPad::fPixeltoYk
protectedinherited

Conversion coefficient for pixel to Y World.

Definition at line 59 of file TPad.h.

◆ fPixmapID

Int_t TPad::fPixmapID
protectedinherited

! Off-screen pixmap identifier

Definition at line 84 of file TPad.h.

◆ fPrimitives

TList* TPad::fPrimitives {nullptr}
protectedinherited

->List of primitives (subpads)

Definition at line 107 of file TPad.h.

◆ fResizing

Bool_t TVirtualPad::fResizing
protectedinherited

!true when resizing the pad

Definition at line 54 of file TVirtualPad.h.

◆ fRetained

Bool_t TCanvas::fRetained
protectedinherited

Retain structure flag.

Definition at line 62 of file TCanvas.h.

◆ fRightMargin

Float_t TAttPad::fRightMargin
protectedinherited

RightMargin.

Definition at line 22 of file TAttPad.h.

◆ fSelected

TObject* TCanvas::fSelected
protectedinherited

! Currently selected object

Definition at line 50 of file TCanvas.h.

◆ fSelectedOpt

TString TCanvas::fSelectedOpt
protectedinherited

! Drawing option of selected object

Definition at line 54 of file TCanvas.h.

◆ fSelectedPad

TPad* TCanvas::fSelectedPad
protectedinherited

! Pad containing currently selected object

Definition at line 55 of file TCanvas.h.

◆ fSelectedX

Int_t TCanvas::fSelectedX
protectedinherited

! X of selected object

Definition at line 52 of file TCanvas.h.

◆ fSelectedY

Int_t TCanvas::fSelectedY
protectedinherited

! Y of selected object

Definition at line 53 of file TCanvas.h.

◆ fSignalsBlocked

Bool_t TQObject::fSignalsBlocked
protectedinherited

! flag used for suppression of signals

Definition at line 53 of file TQObject.h.

◆ fTextAlign

Short_t TAttText::fTextAlign
protectedinherited

Text alignment.

Definition at line 26 of file TAttText.h.

◆ fTextAngle

Float_t TAttText::fTextAngle
protectedinherited

Text angle.

Definition at line 24 of file TAttText.h.

◆ fTextColor

Color_t TAttText::fTextColor
protectedinherited

Text color.

Definition at line 27 of file TAttText.h.

◆ fTextFont

Font_t TAttText::fTextFont
protectedinherited

Text font.

Definition at line 28 of file TAttText.h.

◆ fTextSize

Float_t TAttText::fTextSize
protectedinherited

Text size.

Definition at line 25 of file TAttText.h.

◆ fTheta

Double_t TPad::fTheta
protectedinherited

theta angle to view as lego/surface

Definition at line 79 of file TPad.h.

◆ fTickx

Int_t TPad::fTickx
protectedinherited

Set to 1 if tick marks along X.

Definition at line 89 of file TPad.h.

◆ fTicky

Int_t TPad::fTicky
protectedinherited

Set to 1 if tick marks along Y.

Definition at line 90 of file TPad.h.

◆ fTip

TObject* TPad::fTip {nullptr}
privateinherited

! tool tip associated with box

Definition at line 33 of file TPad.h.

◆ fTitle

TString TPad::fTitle
protectedinherited

Pad title.

Definition at line 110 of file TPad.h.

◆ fTopMargin

Float_t TAttPad::fTopMargin
protectedinherited

TopMargin.

Definition at line 24 of file TAttPad.h.

◆ fUniqueID

UInt_t TObject::fUniqueID
privateinherited

object unique identifier

Definition at line 46 of file TObject.h.

◆ fUpdated

Bool_t TCanvas::fUpdated
protectedinherited

! Set to True when Update method was called

Definition at line 65 of file TCanvas.h.

◆ fUpdating

Bool_t TCanvas::fUpdating
protectedinherited

! True when Updating the canvas

Definition at line 61 of file TCanvas.h.

◆ fUseGL

Bool_t TCanvas::fUseGL
protectedinherited

! True when rendering is with GL

Definition at line 63 of file TCanvas.h.

◆ fUtoAbsPixelk

Double_t TPad::fUtoAbsPixelk
protectedinherited

Conversion coefficient for U NDC to absolute pixel.

Definition at line 48 of file TPad.h.

◆ fUtoPixel

Double_t TPad::fUtoPixel
protectedinherited

xpixel = fUtoPixelk + fUtoPixel*undc

Definition at line 50 of file TPad.h.

◆ fUtoPixelk

Double_t TPad::fUtoPixelk
protectedinherited

Conversion coefficient for U NDC to pixel.

Definition at line 49 of file TPad.h.

◆ fUxmax

Double_t TPad::fUxmax
protectedinherited

Maximum value on the X axis.

Definition at line 76 of file TPad.h.

◆ fUxmin

Double_t TPad::fUxmin
protectedinherited

Minimum value on the X axis.

Definition at line 74 of file TPad.h.

◆ fUymax

Double_t TPad::fUymax
protectedinherited

Maximum value on the Y axis.

Definition at line 77 of file TPad.h.

◆ fUymin

Double_t TPad::fUymin
protectedinherited

Minimum value on the Y axis.

Definition at line 75 of file TPad.h.

◆ fView

TView* TPad::fView {nullptr}
protectedinherited

! Pointer to 3-D view (if one exists)

Definition at line 112 of file TPad.h.

◆ fViewer3D

TVirtualViewer3D* TPad::fViewer3D {nullptr}
protectedinherited

! Current 3D viewer

Definition at line 123 of file TPad.h.

◆ fVtoAbsPixelk

Double_t TPad::fVtoAbsPixelk
protectedinherited

Conversion coefficient for V NDC to absolute pixel.

Definition at line 51 of file TPad.h.

◆ fVtoPixel

Double_t TPad::fVtoPixel
protectedinherited

ypixel = fVtoPixelk + fVtoPixel*vndc

Definition at line 53 of file TPad.h.

◆ fVtoPixelk

Double_t TPad::fVtoPixelk
protectedinherited

Conversion coefficient for V NDC to pixel.

Definition at line 52 of file TPad.h.

◆ fWindowHeight

UInt_t TCanvas::fWindowHeight
protectedinherited

Height of window (including menubar, borders, etc.).

Definition at line 43 of file TCanvas.h.

◆ fWindowTopX

Int_t TCanvas::fWindowTopX
protectedinherited

Top X position of window (in pixels).

Definition at line 40 of file TCanvas.h.

◆ fWindowTopY

Int_t TCanvas::fWindowTopY
protectedinherited

Top Y position of window (in pixels).

Definition at line 41 of file TCanvas.h.

◆ fWindowWidth

UInt_t TCanvas::fWindowWidth
protectedinherited

Width of window (including borders, etc.).

Definition at line 42 of file TCanvas.h.

◆ fWNDC

Double_t TPad::fWNDC
protectedinherited

Width of pad along X in Normalized Coordinates (NDC).

Definition at line 66 of file TPad.h.

◆ fX1

Double_t TPad::fX1
protectedinherited

X of lower X coordinate.

Definition at line 36 of file TPad.h.

◆ fX2

Double_t TPad::fX2
protectedinherited

X of upper X coordinate.

Definition at line 38 of file TPad.h.

◆ fXfile

Float_t TAttPad::fXfile
protectedinherited

X position where to draw the file name.

Definition at line 25 of file TAttPad.h.

◆ fXlowNDC

Double_t TPad::fXlowNDC
protectedinherited

X bottom left corner of pad in NDC [0,1].

Definition at line 62 of file TPad.h.

◆ fXsizeReal

Size_t TCanvas::fXsizeReal
protectedinherited

Current size of canvas along X in CM.

Definition at line 36 of file TCanvas.h.

◆ fXsizeUser

Size_t TCanvas::fXsizeUser
protectedinherited

User specified size of canvas along X in CM.

Definition at line 34 of file TCanvas.h.

◆ fXstat

Float_t TAttPad::fXstat
protectedinherited

X position where to draw the statistics.

Definition at line 28 of file TAttPad.h.

◆ fXtoAbsPixelk

Double_t TPad::fXtoAbsPixelk
protectedinherited

Conversion coefficient for X World to absolute pixel.

Definition at line 41 of file TPad.h.

◆ fXtoPixel

Double_t TPad::fXtoPixel
protectedinherited

xpixel = fXtoPixelk + fXtoPixel*xworld

Definition at line 43 of file TPad.h.

◆ fXtoPixelk

Double_t TPad::fXtoPixelk
protectedinherited

Conversion coefficient for X World to pixel.

Definition at line 42 of file TPad.h.

◆ fXUpNDC

Double_t TPad::fXUpNDC
protectedinherited

Definition at line 64 of file TPad.h.

◆ fY1

Double_t TPad::fY1
protectedinherited

Y of lower Y coordinate.

Definition at line 37 of file TPad.h.

◆ fY2

Double_t TPad::fY2
protectedinherited

Y of upper Y coordinate.

Definition at line 39 of file TPad.h.

◆ fYfile

Float_t TAttPad::fYfile
protectedinherited

Y position where to draw the file name.

Definition at line 26 of file TAttPad.h.

◆ fYlowNDC

Double_t TPad::fYlowNDC
protectedinherited

Y bottom left corner of pad in NDC [0,1].

Definition at line 63 of file TPad.h.

◆ fYsizeReal

Size_t TCanvas::fYsizeReal
protectedinherited

Current size of canvas along Y in CM.

Definition at line 37 of file TCanvas.h.

◆ fYsizeUser

Size_t TCanvas::fYsizeUser
protectedinherited

User specified size of canvas along Y in CM.

Definition at line 35 of file TCanvas.h.

◆ fYstat

Float_t TAttPad::fYstat
protectedinherited

Y position where to draw the statistics.

Definition at line 29 of file TAttPad.h.

◆ fYtoAbsPixelk

Double_t TPad::fYtoAbsPixelk
protectedinherited

Conversion coefficient for Y World to absolute pixel.

Definition at line 44 of file TPad.h.

◆ fYtoPixel

Double_t TPad::fYtoPixel
protectedinherited

ypixel = fYtoPixelk + fYtoPixel*yworld

Definition at line 46 of file TPad.h.

◆ fYtoPixelk

Double_t TPad::fYtoPixelk
protectedinherited

Conversion coefficient for Y World to pixel.

Definition at line 45 of file TPad.h.

◆ fYUpNDC

Double_t TPad::fYUpNDC
protectedinherited

Definition at line 65 of file TPad.h.


The documentation for this class was generated from the following files: