125 const char *defcanvas =
gROOT->GetDefCanvasName();
136 Constructor(cdef, cdef, 1);
162 fClickSelectedPad = 0;
166 SetBit(kShowToolBar);
243 static Int_t ww = 500;
244 static Int_t wh = 500;
245 arr[1] =
this; arr[2] = (
void*)name; arr[3] = (
void*)title; arr[4] =&ww; arr[5] = &wh;
261 Warning(
"Constructor",
"Deleting canvas with same name: %s",name);
264 if (!name[0] ||
gROOT->IsBatch()) {
280 if (form < 1 || form > 5) form = 1;
345 arr[1] =
this; arr[2] = (
void*)name; arr[3] = (
void*)title; arr[4] =&ww; arr[5] = &wh;
360 Warning(
"Constructor",
"Deleting canvas with same name: %s",name);
363 if (!name[0] ||
gROOT->IsBatch()) {
430 arr[1] =
this; arr[2] = (
void*)name; arr[3] = (
void*)title;
431 arr[4] = &wtopx; arr[5] = &wtopy; arr[6] = &ww; arr[7] = &wh;
446 Warning(
"Constructor",
"Deleting canvas with same name: %s",name);
449 if (!name[0] ||
gROOT->IsBatch()) {
577 gROOT->GetListOfCanvases()->Add(
this);
693 while ((obj=next())) {
733 if (padsave) cansave = (
TCanvas*)
gPad->GetCanvas();
737 if ((!
gROOT->IsLineProcessing()) && (!
gVirtualX->IsCmdThread())) {
759 gROOT->GetListOfCanvases()->Remove(
this);
765 if (cansave ==
this) {
810 if (old) {
gROOT->GetListOfCanvases()->Remove(old);
delete old;}
820 if (
gROOT->IsBatch()) {
844 const char *defcanvas =
gROOT->GetDefCanvasName();
851 cdef =
Form(
"%s",defcanvas);
856 newCanvas->
Draw(option);
873 if (pad ==
this) pad = selpad;
874 if (padsav == 0 || pad == 0 || pad ==
this) {
905 while ((obj=next())) {
907 clone = obj->
Clone();
908 pad->GetListOfPrimitives()->Add(clone,next.
GetOption());
913 if (padsav) padsav->
cd();
925 const Int_t kTMAX=256;
926 static char atext[kTMAX];
939 snprintf(atext, kTMAX,
"%c", (
char) px);
941 snprintf(atext, kTMAX,
"%d,%d", px, py);
1024 if (
gROOT->GetEditorMode()) {
1072 if (padsav && padsav->
GetCanvas() ==
this) {
1082 if (padsav) padsav->
cd();
1090 if ((!
gROOT->IsLineProcessing()) && (!
gVirtualX->IsCmdThread())) {
1091 gInterpreter->Execute(
this, IsA(),
"UseCurrentStyle",
"");
1154 pad =
Pick(px, py, prevSelObj);
1196 pad =
Pick(px, py, prevSelObj);
1264 pad =
Pick(px, py, prevSelObj);
1281 while ((tc = (
TCanvas *)next()))
1308 pad =
Pick(px, py, prevSelObj);
1341 pad =
Pick(px, py, prevSelObj);
1358 pad =
Pick(px, py, prevSelObj);
1393 std::cout <<
"Canvas Name=" <<
GetName()<<
" Title="<<
GetTitle()<<
" Option="<<option<<std::endl;
1404 const char *defcanvas =
gROOT->GetDefCanvasName();
1410 cdef =
new char[strlen(defcanvas)+15];
1412 strlcpy(cdef,
Form(
"%s_n%d", defcanvas, n++),strlen(defcanvas)+15);
1419 ::Info(
"TCanvas::MakeDefCanvas",
" created default TCanvas with name %s",cdef);
1498 Emit(
"Picked(TPad*,TObject*,Int_t)", args);
1512 Emit(
"Selected(TVirtualPad*,TObject*,Int_t)", args);
1527 Emit(
"ProcessedEvent(Int_t,Int_t,Int_t,TObject*)", args);
1537 if ((!
gROOT->IsLineProcessing()) && (!
gVirtualX->IsCmdThread())) {
1571 nww =
fCw; nwh = twh;
1583 nww =
fCw; nwh = twh;
1605 if (padsav) padsav->
cd();
1640 out<<
" gStyle->SetOptFit(1);"<<std::endl;
1643 out<<
" gStyle->SetOptStat(0);"<<std::endl;
1646 out<<
" gStyle->SetOptTitle(0);"<<std::endl;
1648 if (
gROOT->GetEditHistograms()) {
1649 out<<
" gROOT->SetEditHistograms();"<<std::endl;
1652 out<<
" "<<
GetName()<<
"->ToggleEventStatus();"<<std::endl;
1655 out<<
" "<<
GetName()<<
"->ToggleToolTips();"<<std::endl;
1658 out<<
" "<<
GetName()<<
"->ToggleToolBar();"<<std::endl;
1663 out<<
" "<<
GetName()<<
"->SetHighLightColor(ci);" << std::endl;
1686 while((cl = (
TClass*)next())) {
1692 Int_t lenfile = strlen(filename);
1695 const char *cname =
GetName();
1700 fname = (
char*)filename;
1701 out.open(fname, std::ios::out);
1703 Int_t nch = strlen(cname);
1705 strlcpy(lcname,cname,10);
1706 for (
Int_t k=1;k<=nch;k++) {
if (lcname[nch-k] ==
' ') lcname[nch-k] = 0;}
1707 if (lcname[0] == 0) {invalid =
kTRUE; strlcpy(lcname,
"c1",10); nch = 2;}
1710 fname =
new char[nch+3];
1711 strlcpy(fname,cname,nch+3);
1712 strncat(fname,
".C",2);
1713 out.open(fname, std::ios::out);
1716 Error(
"SaveSource",
"Cannot open file: %s",fname);
1717 if (!lenfile)
delete [] fname;
1723 out.precision(precision);
1731 Error(
"SaveSource",
"Cannot open TCanvas");
1748 out <<
"void " << mname(s,p-s) <<
"()" <<std::endl;
1749 out <<
"{"<<std::endl;
1750 out <<
"//=========Macro generated from canvas: "<<
GetName()<<
"/"<<
GetTitle()<<std::endl;
1751 out <<
"//========= ("<<t.
AsString()<<
") by ROOT version"<<
gROOT->GetVersion()<<std::endl;
1754 out <<std::endl<<
" gStyle->SetCanvasPreferGL(kTRUE);"<<std::endl<<std::endl;
1759 <<quote<<
", "<<quote<<
GetTitle()<<quote<<
","<<w<<
","<<h<<
");"<<std::endl;
1762 out<<
" TCanvas *"<<cname<<
" = new TCanvas("<<quote<<
GetName()<<quote<<
", "<<quote<<
GetTitle()
1765 out<<
",-"<<topx<<
","<<topy<<
","<<w<<
","<<h<<
");"<<std::endl;
1767 out<<
","<<topx<<
","<<topy<<
","<<w<<
","<<h<<
");"<<std::endl;
1771 out<<
" gStyle->SetOptFit(1);"<<std::endl;
1774 out<<
" gStyle->SetOptStat(0);"<<std::endl;
1777 out<<
" gStyle->SetOptTitle(0);"<<std::endl;
1779 if (
gROOT->GetEditHistograms()) {
1780 out<<
" gROOT->SetEditHistograms();"<<std::endl;
1783 out<<
" "<<
GetName()<<
"->ToggleEventStatus();"<<std::endl;
1786 out<<
" "<<
GetName()<<
"->ToggleToolTips();"<<std::endl;
1791 out<<
" "<<
GetName()<<
"->SetHighLightColor(ci);" << std::endl;
1801 out<<
" "<<
GetName()<<
"->SetSelected("<<
GetName()<<
");"<<std::endl;
1803 out<<
" "<<
GetName()<<
"->ToggleToolBar();"<<std::endl;
1807 out <<
"}"<<std::endl;
1809 Info(
"SaveSource",
"C++ Macro file: %s has been generated", fname);
1813 while((cl = (
TClass*)next())) {
1816 if (!lenfile)
delete [] fname;
1825 if (
gROOT->IsBatch())
1885 Error(
"SetAspectRatio",
"cannot fix aspect ratio, height of canvas is 0");
1970 while ((colold = (
TColor*)next())) {
1982 if (!colcur)
return;
2012 if (v>7) b.
ClassMember(
"fWindowHeight",
"UInt_t");
2028 if (v>7) b.
ClassMember(
"kResizeOpaque",
"Bool_t");
2030 if (v>7) b.
ClassMember(
"fHighLightColor",
"Color_t");
2035 if (v>7) b.
ClassMember(
"kShowEventStatus",
"Bool_t");
2045 if (v>7) b.
ClassEnd(TCanvas::IsA());
2085 b << (
UInt_t)(w-editorWidth);
2173 gPad->GetGLDevice() != -1);
2189 static const union CastFromFuncToVoidPtr_t {
2191 void (*fFuncPtr)(
void*);
2193 } castFromFuncToVoidPtr;
2198 arr[2] = castFromFuncToVoidPtr.fVoidPtr;
2199 if ((*
gThreadXAR)(
"CUPD", 3, arr, 0))
return;
2271 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)
object has not been deleted
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)
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.
Manages default Pad attributes.
R__EXTERN TStyle * gStyle
TVirtualPadPainter * fPainter
! Canvas (pad) painter.
Bool_t TestBit(UInt_t f) const
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
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).
Int_t GetCanvasDefW() const
virtual void SetTopMargin(Float_t topmargin)
Set Pad top margin in fraction of the pad height.
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
Find an object in this list using its name.
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.
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)
void Emit(const char *signal)
Acitvate signal without args.
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)
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.
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.
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
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.
#define R__LOCKGUARD2(mutex)
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.
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).
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)
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
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
void SetBatch(Bool_t batch=kTRUE)
Toggle batch mode.
Int_t GetCanvasDefY() const
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 void Closed()
Emit Closed signal.
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.