143 fClickSelectedPad = 0;
153 const char *defcanvas =
gROOT->GetDefCanvasName();
164 Constructor(cdef, cdef, 1);
190 fClickSelectedPad = 0;
194 SetBit(kShowToolBar);
272 static Int_t ww = 500;
273 static Int_t wh = 500;
274 arr[1] =
this; arr[2] = (
void*)name; arr[3] = (
void*)title; arr[4] =&ww; arr[5] = &wh;
290 Warning(
"Constructor",
"Deleting canvas with same name: %s",name);
293 if (!name[0] ||
gROOT->IsBatch()) {
309 if (form < 1 || form > 5) form = 1;
374 arr[1] =
this; arr[2] = (
void*)name; arr[3] = (
void*)title; arr[4] =&ww; arr[5] = &wh;
389 Warning(
"Constructor",
"Deleting canvas with same name: %s",name);
392 if (!name[0] ||
gROOT->IsBatch()) {
459 arr[1] =
this; arr[2] = (
void*)name; arr[3] = (
void*)title;
460 arr[4] = &wtopx; arr[5] = &wtopy; arr[6] = &ww; arr[7] = &wh;
475 Warning(
"Constructor",
"Deleting canvas with same name: %s",name);
478 if (!name[0] ||
gROOT->IsBatch()) {
606 gROOT->GetListOfCanvases()->Add(
this);
722 while ((obj=next())) {
762 if (padsave) cansave = (
TCanvas*)
gPad->GetCanvas();
766 if ((!
gROOT->IsLineProcessing()) && (!
gVirtualX->IsCmdThread())) {
789 gROOT->GetListOfCanvases()->Remove(
this);
796 if (cansave ==
this) {
841 if (old) {
gROOT->GetListOfCanvases()->Remove(old);
delete old;}
851 if (
gROOT->IsBatch()) {
875 const char *defcanvas =
gROOT->GetDefCanvasName();
882 cdef =
Form(
"%s",defcanvas);
887 newCanvas->
Draw(option);
904 if (pad ==
this) pad = selpad;
905 if (padsav == 0 || pad == 0 || pad ==
this) {
936 while ((obj=next())) {
938 clone = obj->
Clone();
939 pad->GetListOfPrimitives()->Add(clone,next.
GetOption());
944 if (padsav) padsav->
cd();
956 const Int_t kTMAX=256;
957 static char atext[kTMAX];
970 snprintf(atext, kTMAX,
"%c", (
char) px);
972 snprintf(atext, kTMAX,
"%d,%d", px, py);
1055 if (
gROOT->GetEditorMode()) {
1103 if (padsav && padsav->
GetCanvas() ==
this) {
1113 if (padsav) padsav->
cd();
1121 if ((!
gROOT->IsLineProcessing()) && (!
gVirtualX->IsCmdThread())) {
1122 gInterpreter->Execute(
this, IsA(),
"UseCurrentStyle",
"");
1185 pad =
Pick(px, py, prevSelObj);
1227 pad =
Pick(px, py, prevSelObj);
1294 pad =
Pick(px, py, prevSelObj);
1311 while ((tc = (
TCanvas *)next()))
1338 pad =
Pick(px, py, prevSelObj);
1371 pad =
Pick(px, py, prevSelObj);
1388 pad =
Pick(px, py, prevSelObj);
1423 std::cout <<
"Canvas Name=" <<
GetName()<<
" Title="<<
GetTitle()<<
" Option="<<option<<std::endl;
1434 const char *defcanvas =
gROOT->GetDefCanvasName();
1440 cdef =
new char[strlen(defcanvas)+15];
1442 strlcpy(cdef,
Form(
"%s_n%d", defcanvas, n++),strlen(defcanvas)+15);
1449 ::Info(
"TCanvas::MakeDefCanvas",
" created default TCanvas with name %s",cdef);
1528 Emit(
"Picked(TPad*,TObject*,Int_t)", args);
1542 Emit(
"Selected(TVirtualPad*,TObject*,Int_t)", args);
1557 Emit(
"ProcessedEvent(Int_t,Int_t,Int_t,TObject*)", args);
1567 if ((!
gROOT->IsLineProcessing()) && (!
gVirtualX->IsCmdThread())) {
1601 nww =
fCw; nwh = twh;
1613 nww =
fCw; nwh = twh;
1635 if (padsav) padsav->
cd();
1670 out<<
" gStyle->SetOptFit(1);"<<std::endl;
1673 out<<
" gStyle->SetOptStat(0);"<<std::endl;
1676 out<<
" gStyle->SetOptTitle(0);"<<std::endl;
1678 if (
gROOT->GetEditHistograms()) {
1679 out<<
" gROOT->SetEditHistograms();"<<std::endl;
1682 out<<
" "<<
GetName()<<
"->ToggleEventStatus();"<<std::endl;
1685 out<<
" "<<
GetName()<<
"->ToggleToolTips();"<<std::endl;
1688 out<<
" "<<
GetName()<<
"->ToggleToolBar();"<<std::endl;
1693 out<<
" "<<
GetName()<<
"->SetHighLightColor(ci);" << std::endl;
1716 while((cl = (
TClass*)next())) {
1722 Int_t lenfile = strlen(filename);
1725 const char *cname =
GetName();
1730 fname = (
char*)filename;
1731 out.open(fname, std::ios::out);
1733 Int_t nch = strlen(cname);
1735 strlcpy(lcname,cname,10);
1736 for (
Int_t k=1;k<=nch;k++) {
if (lcname[nch-k] ==
' ') lcname[nch-k] = 0;}
1737 if (lcname[0] == 0) {invalid =
kTRUE; strlcpy(lcname,
"c1",10); nch = 2;}
1740 fname =
new char[nch+3];
1741 strlcpy(fname,cname,nch+3);
1742 strncat(fname,
".C",2);
1743 out.open(fname, std::ios::out);
1746 Error(
"SaveSource",
"Cannot open file: %s",fname);
1747 if (!lenfile)
delete [] fname;
1753 out.precision(precision);
1761 Error(
"SaveSource",
"Cannot open TCanvas");
1786 if (!first.
IsDigit()) out <<
"void " << mname(s,p-s) <<
"()" << std::endl;
1788 out <<
"{"<<std::endl;
1789 out <<
"//=========Macro generated from canvas: "<<
GetName()<<
"/"<<
GetTitle()<<std::endl;
1790 out <<
"//========= ("<<t.
AsString()<<
") by ROOT version "<<
gROOT->GetVersion()<<std::endl;
1793 out <<std::endl<<
" gStyle->SetCanvasPreferGL(kTRUE);"<<std::endl<<std::endl;
1798 <<quote<<
", "<<quote<<
GetTitle()<<quote<<
","<<w<<
","<<h<<
");"<<std::endl;
1801 out<<
" TCanvas *"<<cname<<
" = new TCanvas("<<quote<<
GetName()<<quote<<
", "<<quote<<
GetTitle()
1804 out<<
",-"<<topx<<
","<<topy<<
","<<w<<
","<<h<<
");"<<std::endl;
1806 out<<
","<<topx<<
","<<topy<<
","<<w<<
","<<h<<
");"<<std::endl;
1810 out<<
" gStyle->SetOptFit(1);"<<std::endl;
1813 out<<
" gStyle->SetOptStat(0);"<<std::endl;
1816 out<<
" gStyle->SetOptTitle(0);"<<std::endl;
1818 if (
gROOT->GetEditHistograms()) {
1819 out<<
" gROOT->SetEditHistograms();"<<std::endl;
1822 out<<
" "<<
GetName()<<
"->ToggleEventStatus();"<<std::endl;
1825 out<<
" "<<
GetName()<<
"->ToggleToolTips();"<<std::endl;
1830 out<<
" "<<
GetName()<<
"->SetHighLightColor(ci);" << std::endl;
1840 out<<
" "<<
GetName()<<
"->SetSelected("<<
GetName()<<
");"<<std::endl;
1842 out<<
" "<<
GetName()<<
"->ToggleToolBar();"<<std::endl;
1846 out <<
"}"<<std::endl;
1848 Info(
"SaveSource",
"C++ Macro file: %s has been generated", fname);
1852 while((cl = (
TClass*)next())) {
1855 if (!lenfile)
delete [] fname;
1864 if (
gROOT->IsBatch())
1924 Error(
"SetAspectRatio",
"cannot fix aspect ratio, height of canvas is 0");
2009 while ((colold = (
TColor*)next())) {
2021 if (!colcur)
return;
2027 if (currentpalette) {
2028 TIter nextpal(currentpalette);
2036 delete currentpalette;
2065 if (v>7) b.
ClassMember(
"fWindowHeight",
"UInt_t");
2081 if (v>7) b.
ClassMember(
"kResizeOpaque",
"Bool_t");
2083 if (v>7) b.
ClassMember(
"fHighLightColor",
"Color_t");
2088 if (v>7) b.
ClassMember(
"kShowEventStatus",
"Bool_t");
2098 if (v>7) b.
ClassEnd(TCanvas::IsA());
2116 CurrentColorPalette->
SetName(
"CurrentColorPalette");
2117 for (
Int_t i=0; i<palsize; i++) CurrentColorPalette->
Add(
gROOT->GetColor(pal[i]));
2126 if (CurrentColorPalette) {
fPrimitives->
Remove(CurrentColorPalette);
delete CurrentColorPalette; }
2150 b << (
UInt_t)(w-editorWidth);
2238 gPad->GetGLDevice() != -1);
2254 static const union CastFromFuncToVoidPtr_t {
2256 void (*fFuncPtr)(
void*);
2258 } castFromFuncToVoidPtr;
2263 arr[2] = castFromFuncToVoidPtr.fVoidPtr;
2264 if ((*
gThreadXAR)(
"CUPD", 3, arr, 0))
return;
2341 Error(
"CreatePainter",
"GL Painter creation failed! Will use default!");
virtual void Clear(Option_t *="")
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
void RunAutoExec()
Execute the list of TExecs in the current pad.
void EnterLeave(TPad *prevSelPad, TObject *prevSelObj)
Generate kMouseEnter and kMouseLeave events depending on the previously selected object and the curre...
Bool_t GetShowToolBar() const
virtual const char * GetName() const
Returns name of object.
virtual void SetGridx(Int_t value=1)
void FeedbackMode(Bool_t set)
Turn rubberband feedback mode on or off.
R__EXTERN TGuiFactory * gBatchGuiFactory
virtual void SetPad(const char *name, const char *title, Double_t xlow, Double_t ylow, Double_t xup, Double_t yup, Color_t color=35, Short_t bordersize=5, Short_t bordermode=-1)
Set all pad parameters.
virtual void SetTickx(Int_t value=1)
virtual Bool_t PerformUpdate()
static Int_t DecreaseDirLevel()
Decrease the indentation level for ls().
virtual void Selected(TVirtualPad *pad, TObject *obj, Int_t event)
Emit Selected() signal.
virtual void ClassBegin(const TClass *, Version_t=-1)=0
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
TList * fPrimitives
->List of primitives (subpads)
void MoveOpaque(Int_t set=1)
Set option to move objects/pads in a canvas.
virtual void ResizePad(Option_t *option="")
Compute pad conversion coefficients.
TPad * fSelectedPad
! Pad containing currently selected object
virtual void SetCursor(ECursor cursor)
Set cursor.
Float_t GetPadLeftMargin() const
TCanvas(const TCanvas &canvas)
TVirtualPad * GetSelectedPad() const
Int_t fEvent
! Type of current or last handled event
TContextMenu * fContextMenu
! Context menu pointer
TList * GetListOfPrimitives() const
virtual void ToggleEventStatus()
Toggle event statusbar.
virtual Short_t GetBorderSize() const
Bool_t fDrawn
! Set to True when the Draw method is called
Bool_t fUseGL
! True when rendering is with GL
TPad * fPadSave
! Pointer to saved pad in HandleInput
TVirtualPadPainter * GetCanvasPainter()
Access and (probably) creation of pad painter.
Size_t fYsizeReal
Current size of canvas along Y in CM.
virtual void Paint(Option_t *option="")
Paint all primitives in pad.
void SetTitle(const char *title="")
Set canvas title.
virtual void Delete(Option_t *option="")
Remove all objects from the array AND delete all heap based objects.
void Build()
Build a canvas. Called by all constructors.
static const TArrayI & GetPalette()
Static function returning the current active palette.
Manages default Pad attributes.
R__EXTERN TStyle * gStyle
TVirtualPadPainter * fPainter
! Canvas (pad) painter.
TObject * fSelected
! Currently selected object
static void SaveColor(std::ostream &out, Int_t ci)
Save a color with index > 228 as a C++ statement(s) on output stream out.
Short_t fBorderSize
pad bordersize in pixels
Bool_t GetPadGridY() const
virtual void SetBorderMode(Short_t bordermode)
static Bool_t fgIsFolder
Indicates if canvas can be browsed as a folder.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
Int_t fCanvasID
! Canvas identifier
virtual Color_t GetHighLightColor() const
Get highlight color.
static TVirtualPadPainter * PadPainter(Option_t *opt="")
Create a pad painter of specified type.
Buffer base class used for serializing objects.
virtual void CopyPixmap()
Copy the pixmap of the pad to the canvas.
virtual void SetWindowTitle(const char *newTitle)
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
Int_t GetPadTickY() const
virtual void ToggleToolTips()
Toggle tooltip display.
Size_t fYsizeUser
User specified size of canvas along Y in CM.
void PaintBorder(Color_t color, Bool_t tops)
Paint the pad border.
Int_t fWindowTopX
Top X position of window (in pixels)
void ToLower()
Change string to lower-case.
Int_t fSelectedX
! X of selected object
Bool_t GetShowEventStatus() const
virtual void Size(Float_t xsizeuser=0, Float_t ysizeuser=0)
Set the canvas scale in centimeters.
virtual void PaintModified()
Traverse pad hierarchy and (re)paint only modified pads.
R__EXTERN TVirtualMutex * gROOTMutex
virtual void InitPainter()
Empty definition.
Option_t * GetOption() const
R__EXTERN TApplication * gApplication
void Constructor()
Canvas default constructor.
virtual UInt_t WriteVersion(const TClass *cl, Bool_t useBcnt=kFALSE)=0
Float_t GetScreenFactor() const
void DrawEventStatus(Int_t event, Int_t x, Int_t y, TObject *selected)
Report name and title of primitive below the cursor.
void Flush()
Flush canvas buffers.
virtual char * GetObjectInfo(Int_t px, Int_t py) const
Returns string containing info about the object at position (px,py).
static Bool_t DefinedColors()
Static function returning kTRUE if some new colors have been defined after initialisation or since th...
Int_t GetCanvasDefW() const
virtual void SetTopMargin(Float_t topmargin)
Set Pad top margin in fraction of the pad height.
Array of integers (32 bits per element).
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Int_t GetCanvasDefX() const
virtual TObject * FindObject(const char *name) const
Delete a TObjLink object.
Int_t GetCanvasBorderMode() const
virtual TPad * Pick(Int_t px, Int_t py, TObjLink *&pickobj)
Search for an object at pixel position px,py.
void SetCanvasColor(Color_t color=19)
virtual void ProcessedEvent(Int_t event, Int_t x, Int_t y, TObject *selected)
Emit ProcessedEvent() signal.
virtual void ClassMember(const char *, const char *=0, Int_t=-1, Int_t=-1)=0
Bool_t GetShowToolTips() const
Size_t fXsizeReal
Current size of canvas along X in CM.
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void Browse(TBrowser *b)
Browse.
TString fSelectedOpt
! Drawing option of selected object
Fill Area Attributes class.
Int_t GetWindowTopY()
Returns current top y position of window on screen.
virtual void Copy(TAttPad &attpad) const
copy function
virtual void SetFixedAspectRatio(Bool_t fixed=kTRUE)
Fix canvas aspect ratio to current value if fixed is true.
virtual void Cleared(TVirtualPad *pad)
Emit pad Cleared signal.
virtual void Paint(Option_t *option="")
Paint canvas.
static TVirtualPadEditor * GetPadEditor(Bool_t load=kTRUE)
Returns the pad editor dialog. Static method.
virtual void Resize(Option_t *option="")
Recompute canvas parameters following a X11 Resize.
virtual void Close(Option_t *option="")
Delete all primitives in pad and pad itself.
R__EXTERN Int_t(* gThreadXAR)(const char *xact, Int_t nb, void **ar, Int_t *iret)
Bool_t GetPadGridX() const
Int_t GetPadTickX() const
void Copy(TAttLine &attline) const
Copy this line attributes to a new TAttLine.
void HighLight(Color_t col=kRed, Bool_t set=kTRUE)
Highlight pad.
virtual void ShowEditor(Bool_t show=kTRUE)
UInt_t GetWindowHeight() const
virtual void SetGrid(Int_t valuex=1, Int_t valuey=1)
TCanvas * fCanvas
! Pointer to mother canvas
TPad * fClickSelectedPad
! Pad containing currently click-selected object
const char * GetTitle() const
Returns title of object.
UInt_t GetWw() const
Get Ww.
void SetCanvasBorderSize(Width_t size=1)
void DeleteCanvasPainter()
assert on IsBatch() == false?
void Clear(Option_t *option="")
Remove all primitives from the canvas.
virtual void Pop()
Pop on object drawn in a pad to the top of the display list.
virtual void ShowToolBar(Bool_t show=kTRUE)
virtual void ls(Option_t *option="") const
List all primitives in pad.
const Int_t * GetArray() const
virtual ~TCanvas()
Canvas destructor.
virtual void SetLogx(Int_t value=1)
Set Lin/Log scale for X.
static ENewType IsCallingNew()
Static method returning the defConstructor flag passed to TClass::New().
virtual void ShowMenuBar(Bool_t show=kTRUE)
TVirtualPad is an abstract base class for the Pad and Canvas classes.
R__EXTERN TGuiFactory * gGuiFactory
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...
void SaveSource(const char *filename="", Option_t *option="")
Save primitives in this canvas as a C++ macro file.
virtual void ls(Option_t *option="") const
List all pads.
void ROOT_TCanvas_Update(void *TheCanvas)
object has not been deleted
static TCanvasInit gCanvasInit
static Bool_t SupportAlpha()
Static function returning "true" if transparency is supported.
Double_t fX2
X of upper X coordinate.
Bool_t fRetained
Retain structure flag.
virtual void CopyPixmaps()
Copy the sub-pixmaps of the pad to the canvas.
virtual Option_t * GetOption() const
Using a TBrowser one can browse all ROOT objects.
UInt_t fCw
Width of the canvas along X (pixels)
void DisconnectWidget()
Used by friend class TCanvasImp.
TPad * fMother
! pointer to mother of the list
virtual Bool_t CheckObject(const TObject *obj)=0
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
void CopyPixmaps()
Copy the canvas pixmap of the pad to the canvas.
virtual void ToggleToolBar()
Toggle toolbar.
Int_t fSelectedY
! Y of selected object
void SetCanvasBorderMode(Int_t mode=1)
virtual void SetBottomMargin(Float_t bottommargin)
Set Pad bottom margin in fraction of the pad height.
static void NeedGraphicsLibs()
Static method.
Int_t fPixmapID
! Off-screen pixmap identifier
void ResizeOpaque(Int_t set=1)
Set option to resize objects/pads in a canvas.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Set world coordinate system for the pad.
UInt_t fWindowHeight
Height of window (including menubar, borders, etc.)
virtual void SetTicky(Int_t value=1)
Float_t GetPadBottomMargin() const
virtual TObject * Remove(TObject *obj)
Remove object from the list.
Width_t GetCanvasBorderSize() const
UInt_t GetWh() const
Get Wh.
virtual void UseCurrentStyle()
Force a copy of current style for all objects in pad.
Float_t GetPadRightMargin() const
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
TString fDISPLAY
Name of destination screen.
R__ALWAYS_INLINE Bool_t IsOnHeap() const
The most important graphics class in the ROOT system.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
char * Form(const char *fmt,...)
void CreatePainter()
Probably, TPadPainter must be placed in a separate ROOT module - "padpainter" (the same as "histpaint...
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitives in this pad on the C++ source file out.
static TCanvas * MakeDefCanvas()
Static function to build a default canvas.
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
The ROOT global object gROOT contains a list of all defined classes.
virtual void SetByteCount(UInt_t cntpos, Bool_t packInVersion=kFALSE)=0
virtual void ToggleEditor()
Toggle editor.
Bool_t fUpdating
! True when Updating the canvas
virtual TCanvas * GetCanvas() const
void SetName(const char *name)
virtual void ToggleAutoExec()
Toggle pad auto execution of list of TExecs.
void Destructor()
Actual canvas destructor.
Bool_t IsBeingResized() const
if object destructor must call RecursiveRemove()
virtual void ShowStatusBar(Bool_t show=kTRUE)
Color_t GetHighLightColor() const
Get highlight color.
virtual void SelectDrawable(Int_t device)=0
char * StrDup(const char *str)
Duplicate the string str.
Double_t fY2
Y of upper Y coordinate.
static void CreateApplication()
Static function used to create a default application environment.
Double_t fAspectRatio
ratio of w/h in case of fixed ratio
Int_t GetWindowTopX()
Returns current top x position of window on screen.
TAttCanvas fCatt
Canvas attributes.
void InitializeGraphics()
Initialize the graphics environment.
if object does not want context menu
TCanvasImp * fCanvasImp
! Window system specific canvas implementation
Bool_t IsFolder() const
Is folder ?
const Size_t kDefaultCanvasSize
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to an event at (px,py).
Ssiz_t Last(char c) const
Find last occurrence of a character c.
virtual void SetGridy(Int_t value=1)
UInt_t GetWindowWidth() const
Wrapper around a TObject so it can be stored in a TList.
void SetCanvasSize(UInt_t ww, UInt_t wh)
Set Width and Height of canvas to ww and wh respectively.
virtual void SetFillStyle(Style_t fstyle)
Override TAttFill::FillStyle for TPad because we want to handle style=0 as style 4000.
Bool_t IsBatch() const
Is pad in batch mode ?
Float_t GetPadTopMargin() const
static RooMathCoreReg dummy
void Init()
Initialize the TCanvas members. Called by all constructors.
virtual void SetRGB(Float_t r, Float_t g, Float_t b)
Initialize this color and its associated colors.
Bool_t IsGrayscale()
Check whether this canvas is to be drawn in grayscale mode.
virtual Color_t GetFillColor() const
Return the fill area color.
virtual TCanvasImp * CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height)
Create a batch version of TCanvasImp.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Color_t fHighLightColor
Highlight color of active pad.
static constexpr double s
Size_t fXsizeUser
User specified size of canvas along X in CM.
const char * AsString() const
Return the date & time as a string (ctime() format).
#define R__LOCKGUARD(mutex)
The color creation and management class.
void Browse(TBrowser *b)
Browse this collection (called by TBrowser).
void SetWindowSize(UInt_t ww, UInt_t wh)
Int_t GetCanvasDefH() const
virtual TObject * DrawClone(Option_t *option="") const
Draw a clone of this canvas A new canvas is created that is a clone of this canvas.
virtual void SetTicks(Int_t valuex=1, Int_t valuey=1)
virtual TVirtualPadPainter * CreatePadPainter()
Int_t fWindowTopY
Top Y position of window (in pixels)
virtual void SetRightMargin(Float_t rightmargin)
Set Pad right margin in fraction of the pad width.
virtual void SetName(const char *name)
Mother of all ROOT objects.
Bool_t fFixedAspectRatio
True if fixed aspect ratio.
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
void UseCurrentStyle()
Force a copy of current style for all objects in canvas.
void Clear(Option_t *option="")
Delete all pad primitives.
virtual void Draw(Option_t *option="")
Draw a canvas.
Int_t fDoubleBuffer
Double buffer flag (0=off, 1=on)
TObject * GetObject() const
static Int_t IncreaseDirLevel()
Increase the indentation level for ls().
virtual void SetDoubleBuffer(Int_t mode=1)
Set Double Buffer On/Off.
virtual const char * GetTitle() const
Returns title of object.
typedef void((*Func_t)())
void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitives in this canvas in C++ macro file with GUI.
virtual TObject * DrawClonePad()
Draw a clone of this canvas into the current pad In an interactive session, select the destination/cu...
const char * GetName() const
Returns name of object.
void EmbedInto(Int_t winid, Int_t ww, Int_t wh)
Embedded a canvas into a TRootEmbeddedCanvas.
virtual void ShowToolTips(Bool_t show=kTRUE)
virtual void Add(TObject *obj)
virtual void LockPainter()
Empty definition.
virtual void ClassEnd(const TClass *)=0
Int_t fEventX
! Last X mouse position in canvas
void SetSelected(TObject *obj)
Set selected canvas.
virtual Short_t GetBorderMode() const
Bool_t HasMenuBar() const
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
void Close(Option_t *option="")
Close canvas.
virtual void EditorBar()
Get editor bar.
R__EXTERN TVirtualPS * gVirtualPS
Int_t GetEntries() const
Return the number of objects in array (i.e.
virtual Int_t InitWindow()
Implement TVirtualPadPainter which abstracts painting operations.
Color_t GetCanvasColor() const
TObject * fClickSelected
! Currently click-selected object
Int_t fEventY
! Last Y mouse position in canvas
Bool_t IsDigit() const
Returns true if all characters in string are digits (0-9) or white spaces, i.e.
void SetBatch(Bool_t batch=kTRUE)
Toggle batch mode.
Int_t GetCanvasDefY() const
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
virtual UInt_t GetWindowGeometry(Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
TVirtualPS is an abstract interface to Postscript, PDF, SVG.
virtual void HandleInput(EEventType button, Int_t x, Int_t y)
Handle Input Events.
virtual void SetBorderSize(Short_t bordersize)
virtual void Update()
Update canvas pad buffers.
Double_t fY1
Y of lower Y coordinate.
virtual void SetStatusText(const char *text=0, Int_t partidx=0)
Bool_t GetCanvasPreferGL() const
Int_t fGLDevice
! OpenGL off-screen pixmap identifier
Bool_t fBatch
! True when in batchmode
virtual const char * GetName() const
Returns name of object.
virtual Int_t GetSize() const
virtual void SetCanvasSize(UInt_t w, UInt_t h)
Double_t fX1
X of lower X coordinate.
virtual void SetLogz(Int_t value=1)
Set Lin/Log scale for Z.
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
virtual void Closed()
Emit Closed signal.
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.
void Modified(Bool_t flag=1)
To make it possible to use GL for 2D graphic in a TPad/TCanvas.
virtual void Picked(TPad *selpad, TObject *selected, Int_t event)
Emit Picked() signal.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
UInt_t fCh
Height of the canvas along Y (pixels)
Short_t fBorderMode
Bordermode (-1=down, 0 = no border, 1=up)
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
UInt_t fWindowWidth
Width of window (including borders, etc.)
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
void Copy(TAttFill &attfill) const
Copy this fill attributes to a new TAttFill.
void SetGrayscale(Bool_t set=kTRUE)
Set whether this canvas should be painted in grayscale, and re-paint it if necessary.
Int_t GetOptTitle() const
virtual void SetLeftMargin(Float_t leftmargin)
Set Pad left margin in fraction of the pad width.
virtual void SetLogy(Int_t value=1)
Set Lin/Log scale for Y.