ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TCanvas.h
Go to the documentation of this file.
1 // @(#)root/gpad:$Id$
2 // Author: Rene Brun 12/12/94
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TCanvas
13 #define ROOT_TCanvas
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TCanvas //
19 // //
20 // Graphics canvas. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #ifndef ROOT_TPad
25 #include "TPad.h"
26 #endif
27 
28 #ifndef ROOT_TAttCanvas
29 #include "TAttCanvas.h"
30 #endif
31 
32 #ifndef ROOT_TVirtualX
33 #include "TVirtualX.h"
34 #endif
35 
36 #ifndef ROOT_TString
37 #include "TString.h"
38 #endif
39 
40 #ifndef ROOT_TCanvasImp
41 #include "TCanvasImp.h"
42 #endif
43 
44 class TContextMenu;
45 class TControlBar;
46 class TBrowser;
47 
48 class TCanvas : public TPad {
49 
50 friend class TCanvasImp;
51 friend class TThread;
52 friend class TInterpreter;
53 
54 protected:
55  TAttCanvas fCatt; //Canvas attributes
56  TString fDISPLAY; //Name of destination screen
57  Size_t fXsizeUser; //User specified size of canvas along X in CM
58  Size_t fYsizeUser; //User specified size of canvas along Y in CM
59  Size_t fXsizeReal; //Current size of canvas along X in CM
60  Size_t fYsizeReal; //Current size of canvas along Y in CM
61  Color_t fHighLightColor; //Highlight color of active pad
62  Int_t fDoubleBuffer; //Double buffer flag (0=off, 1=on)
63  Int_t fWindowTopX; //Top X position of window (in pixels)
64  Int_t fWindowTopY; //Top Y position of window (in pixels)
65  UInt_t fWindowWidth; //Width of window (including borders, etc.)
66  UInt_t fWindowHeight; //Height of window (including menubar, borders, etc.)
67  UInt_t fCw; //Width of the canvas along X (pixels)
68  UInt_t fCh; //Height of the canvas along Y (pixels)
69  Int_t fEvent; //!Type of current or last handled event
70  Int_t fEventX; //!Last X mouse position in canvas
71  Int_t fEventY; //!Last Y mouse position in canvas
72  Int_t fCanvasID; //!Canvas identifier
73  TObject *fSelected; //!Currently selected object
74  TObject *fClickSelected; //!Currently click-selected object
75  Int_t fSelectedX; //!X of selected object
76  Int_t fSelectedY; //!Y of selected object
77  TString fSelectedOpt; //!Drawing option of selected object
78  TPad *fSelectedPad; //!Pad containing currently selected object
79  TPad *fClickSelectedPad;//!Pad containing currently click-selected object
80  TPad *fPadSave; //!Pointer to saved pad in HandleInput
81  TCanvasImp *fCanvasImp; //!Window system specific canvas implementation
82  TContextMenu *fContextMenu; //!Context menu pointer
83  Bool_t fBatch; //!True when in batchmode
84  Bool_t fUpdating; //!True when Updating the canvas
85  Bool_t fRetained; //Retain structure flag
86  Bool_t fUseGL; //!True when rendering is with GL
87  Bool_t fDrawn; //!Set to True when the Draw method is called
88  //
89  TVirtualPadPainter *fPainter; //!Canvas (pad) painter.
90 
91  static Bool_t fgIsFolder; //Indicates if canvas can be browsed as a folder
92 
93 private:
94  TCanvas(const TCanvas &canvas); // cannot copy canvas, use TObject::Clone()
95  TCanvas &operator=(const TCanvas &rhs); // idem
96  void Build();
97  void CopyPixmaps();
98  void DrawEventStatus(Int_t event, Int_t x, Int_t y, TObject *selected);
99  void RunAutoExec();
100 
101  //Initialize PadPainter.
102  void CreatePainter();
103 
104 protected:
105  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
106  //-- used by friend TThread class
107  void Init();
108 
109 public:
110  // TCanvas status bits
111  enum {
113  kAutoExec = BIT(16),
114  kMenuBar = BIT(17),
121  };
122 
123  TCanvas(Bool_t build=kTRUE);
124  TCanvas(const char *name, const char *title="", Int_t form=1);
125  TCanvas(const char *name, const char *title, Int_t ww, Int_t wh);
126  TCanvas(const char *name, const char *title, Int_t wtopx, Int_t wtopy,
127  Int_t ww, Int_t wh);
128  TCanvas(const char *name, Int_t ww, Int_t wh, Int_t winid);
129  virtual ~TCanvas();
130 
131  //-- used by friend TThread class
132  void Constructor();
133  void Constructor(const char *name, const char *title, Int_t form);
134  void Constructor(const char *name, const char *title, Int_t ww, Int_t wh);
135  void Constructor(const char *name, const char *title,
136  Int_t wtopx, Int_t wtopy, Int_t ww, Int_t wh);
137  void Destructor();
138 
139  TVirtualPad *cd(Int_t subpadnumber=0);
140  virtual void Browse(TBrowser *b);
141  void Clear(Option_t *option="");
142  void Close(Option_t *option="");
143  virtual void Delete(Option_t * = "") { MayNotUse("Delete()"); }
144  void DisconnectWidget(); // used by TCanvasImp
145  virtual void Draw(Option_t *option="");
146  virtual TObject *DrawClone(Option_t *option="") const; // *MENU*
147  virtual TObject *DrawClonePad(); // *MENU*
148  virtual void EditorBar();
149  void EmbedInto(Int_t winid, Int_t ww, Int_t wh);
150  void EnterLeave(TPad *prevSelPad, TObject *prevSelObj);
151  void FeedbackMode(Bool_t set);
152  void Flush();
153  void UseCurrentStyle(); // *MENU*
155  const char *GetDISPLAY() const {return fDISPLAY.Data();}
158  Int_t GetEvent() const { return fEvent; }
159  Int_t GetEventX() const { return fEventX; }
160  Int_t GetEventY() const { return fEventY; }
162  TVirtualPad *GetPadSave() const { return fPadSave; }
163  void ClearPadSave() { fPadSave = 0; }
164  TObject *GetSelected() const {return fSelected;}
166  Int_t GetSelectedX() const {return fSelectedX;}
167  Int_t GetSelectedY() const {return fSelectedY;}
175  Bool_t GetAutoExec() const { return TestBit(kAutoExec); }
176  Size_t GetXsizeUser() const {return fXsizeUser;}
177  Size_t GetYsizeUser() const {return fYsizeUser;}
178  Size_t GetXsizeReal() const {return fXsizeReal;}
179  Size_t GetYsizeReal() const {return fYsizeReal;}
180  Int_t GetCanvasID() const {return fCanvasID;}
181  TCanvasImp *GetCanvasImp() const {return fCanvasImp;}
184  UInt_t GetWindowWidth() const { return fWindowWidth; }
186  UInt_t GetWw() const { return fCw; }
187  UInt_t GetWh() const { return fCh; }
188  virtual void GetCanvasPar(Int_t &wtopx, Int_t &wtopy, UInt_t &ww, UInt_t &wh)
189  {wtopx=GetWindowTopX(); wtopy=fWindowTopY; ww=fWindowWidth; wh=fWindowHeight;}
190  virtual void HandleInput(EEventType button, Int_t x, Int_t y);
191  Bool_t HasMenuBar() const { return TestBit(kMenuBar); }
192  void Iconify() { fCanvasImp->Iconify(); }
193  Bool_t IsBatch() const { return fBatch; }
194  Bool_t IsDrawn() { return fDrawn; }
195  Bool_t IsFolder() const;
197  Bool_t IsRetained() const { return fRetained; }
198  virtual void ls(Option_t *option="") const;
199  void MoveOpaque(Int_t set=1);
200  Bool_t OpaqueMoving() const { return TestBit(kMoveOpaque); }
202  virtual void Paint(Option_t *option="");
203  virtual TPad *Pick(Int_t px, Int_t py, TObjLink *&pickobj) { return TPad::Pick(px, py, pickobj); }
204  virtual TPad *Pick(Int_t px, Int_t py, TObject *prevSelObj);
205  virtual void Picked(TPad *selpad, TObject *selected, Int_t event); // *SIGNAL*
206  virtual void ProcessedEvent(Int_t event, Int_t x, Int_t y, TObject *selected); // *SIGNAL*
207  virtual void Selected(TVirtualPad *pad, TObject *obj, Int_t event); // *SIGNAL*
208  virtual void Cleared(TVirtualPad *pad); // *SIGNAL*
209  virtual void Closed(); // *SIGNAL*
212  virtual void Resize(Option_t *option="");
213  void ResizeOpaque(Int_t set=1);
214  void SaveSource(const char *filename="", Option_t *option="");
215  void SavePrimitive(std::ostream &out, Option_t *option = "");
216  virtual void SetCursor(ECursor cursor);
217  virtual void SetDoubleBuffer(Int_t mode=1);
218  virtual void SetFixedAspectRatio(Bool_t fixed = kTRUE); // *TOGGLE*
219  void SetGrayscale(Bool_t set = kTRUE); // *TOGGLE* *GETTER=IsGrayscale
222  void SetCanvasSize(UInt_t ww, UInt_t wh); // *MENU*
224  void SetSelected(TObject *obj);
228  void Show() { fCanvasImp->Show(); }
229  virtual void Size(Float_t xsizeuser=0, Float_t ysizeuser=0);
230  void SetBatch(Bool_t batch=kTRUE);
231  static void SetFolder(Bool_t isfolder=kTRUE);
233  void SetRetained(Bool_t retained=kTRUE) { fRetained=retained;}
234  void SetTitle(const char *title="");
235  virtual void ToggleEventStatus();
236  virtual void ToggleAutoExec();
237  virtual void ToggleToolBar();
238  virtual void ToggleEditor();
239  virtual void ToggleToolTips();
240  virtual void Update();
241 
242  Bool_t UseGL() const { return fUseGL; }
243  void SetSupportGL(Bool_t support) {fUseGL = support;}
245  void DeleteCanvasPainter();
246 
247  static TCanvas *MakeDefCanvas();
248  static Bool_t SupportAlpha();
249 
250  ClassDef(TCanvas,8) //Graphics canvas
251 };
252 
253 #endif
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Definition: TCanvas.cxx:1021
void RunAutoExec()
Execute the list of TExecs in the current pad.
Definition: TCanvas.cxx:1624
void EnterLeave(TPad *prevSelPad, TObject *prevSelObj)
Generate kMouseEnter and kMouseLeave events depending on the previously selected object and the curre...
Definition: TCanvas.cxx:984
Bool_t IsFolder() const
Is folder ?
Definition: TCanvas.cxx:1381
void FeedbackMode(Bool_t set)
Turn rubberband feedback mode on or off.
Definition: TCanvas.cxx:1039
This class defines an abstract interface to a generic command line interpreter.
Definition: TInterpreter.h:50
virtual void Selected(TVirtualPad *pad, TObject *obj, Int_t event)
Emit Selected() signal.
Definition: TCanvas.cxx:1503
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
Definition: TControlBar.h:37
Bool_t GetAutoExec() const
Definition: TCanvas.h:175
Int_t GetEventX() const
Get X event.
Definition: TCanvas.h:159
void MoveOpaque(Int_t set=1)
Set option to move objects/pads in a canvas.
Definition: TCanvas.cxx:1432
TPad * fSelectedPad
Drawing option of selected object.
Definition: TCanvas.h:78
Int_t GetDoubleBuffer() const
Definition: TCanvas.h:157
virtual void SetCursor(ECursor cursor)
Set cursor.
Definition: TCanvas.cxx:1851
Bool_t UseGL() const
Definition: TCanvas.h:242
void SetWindowPosition(Int_t x, Int_t y)
Definition: TCanvas.h:220
TCanvas(const TCanvas &canvas)
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area)...
Definition: TCanvasImp.h:32
Int_t fEvent
Definition: TCanvas.h:69
TContextMenu * fContextMenu
Window system specific canvas implementation.
Definition: TCanvas.h:82
virtual void ToggleEventStatus()
Toggle event statusbar.
Definition: TCanvas.cxx:2124
void RaiseWindow()
Definition: TCanvas.h:210
Bool_t fDrawn
True when rendering is with GL.
Definition: TCanvas.h:87
void ResetDrawn()
Definition: TCanvas.h:211
Bool_t fUseGL
Definition: TCanvas.h:86
ClassDef(TAttBBox2D, 0)
TPad * fPadSave
Pad containing currently click-selected object.
Definition: TCanvas.h:80
TVirtualPadPainter * GetCanvasPainter()
Access and (probably) creation of pad painter.
Definition: TCanvas.cxx:2267
float Float_t
Definition: RtypesCore.h:53
Size_t fYsizeReal
Definition: TCanvas.h:60
TContextMenu * GetContextMenu() const
Definition: TCanvas.h:156
float Size_t
Definition: RtypesCore.h:83
Int_t GetSelectedY() const
Definition: TCanvas.h:167
void SetTitle(const char *title="")
Set canvas title.
Definition: TCanvas.cxx:1916
const char Option_t
Definition: RtypesCore.h:62
virtual void SetWindowPosition(Int_t x, Int_t y)
Definition: TCanvasImp.h:88
void SetSupportGL(Bool_t support)
Definition: TCanvas.h:243
void Build()
Build a canvas. Called by all constructors.
Definition: TCanvas.cxx:532
TVirtualPad * GetPadSave() const
Definition: TCanvas.h:162
TVirtualPadPainter * fPainter
Set to True when the Draw method is called.
Definition: TCanvas.h:89
#define BIT(n)
Definition: Rtypes.h:120
TObject * fSelected
Canvas identifier.
Definition: TCanvas.h:73
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 clas...
Definition: TObject.cxx:971
static Bool_t fgIsFolder
Canvas (pad) painter.
Definition: TCanvas.h:91
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
Definition: TCanvas.cxx:659
Int_t fCanvasID
Last Y mouse position in canvas.
Definition: TCanvas.h:72
EEventType
Definition: Buttons.h:15
static const char * filename()
virtual void ToggleToolTips()
Toggle tooltip display.
Definition: TCanvas.cxx:2157
Size_t fYsizeUser
Definition: TCanvas.h:58
Basic string class.
Definition: TString.h:137
Int_t fWindowTopX
Definition: TCanvas.h:63
Int_t fSelectedX
Currently click-selected object.
Definition: TCanvas.h:75
int Int_t
Definition: RtypesCore.h:41
virtual void Size(Float_t xsizeuser=0, Float_t ysizeuser=0)
Set the canvas scale in centimeters.
Definition: TCanvas.cxx:1942
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
void Constructor()
Canvas default constructor.
Definition: TCanvas.cxx:144
ECursor
Definition: TVirtualX.h:56
Float_t py
Definition: hprod.C:33
void DrawEventStatus(Int_t event, Int_t x, Int_t y, TObject *selected)
Report name and title of primitive below the cursor.
Definition: TCanvas.cxx:922
void Iconify()
Definition: TCanvas.h:192
UInt_t GetWindowHeight() const
Definition: TCanvas.h:185
void ClearPadSave()
Definition: TCanvas.h:163
void Flush()
Flush canvas buffers.
Definition: TCanvas.cxx:1053
TCanvas & operator=(const TCanvas &rhs)
virtual TPad * Pick(Int_t px, Int_t py, TObjLink *&pickobj)
Search for an object at pixel position px,py.
Definition: TCanvas.h:203
Bool_t IsDrawn()
Definition: TCanvas.h:194
Bool_t HasMenuBar() const
Definition: TCanvas.h:191
Size_t GetXsizeReal() const
Definition: TCanvas.h:178
virtual void ProcessedEvent(Int_t event, Int_t x, Int_t y, TObject *selected)
Emit ProcessedEvent() signal.
Definition: TCanvas.cxx:1517
const char * Data() const
Definition: TString.h:349
void SetClickSelected(TObject *obj)
Definition: TCanvas.h:225
virtual void RaiseWindow()
Definition: TCanvasImp.h:94
Size_t fXsizeReal
Definition: TCanvas.h:59
virtual void Browse(TBrowser *b)
Browse.
Definition: TCanvas.cxx:625
TString fSelectedOpt
Y of selected object.
Definition: TCanvas.h:77
Double_t x[n]
Definition: legend1.C:17
Int_t GetWindowTopY()
Returns current top y position of window on screen.
Definition: TCanvas.cxx:1123
Int_t GetEvent() const
Get Event.
Definition: TCanvas.h:158
virtual void SetFixedAspectRatio(Bool_t fixed=kTRUE)
Fix canvas aspect ratio to current value if fixed is true.
Definition: TCanvas.cxx:1877
virtual void Cleared(TVirtualPad *pad)
Emit pad Cleared signal.
Definition: TCanvas.cxx:711
virtual void Paint(Option_t *option="")
Paint canvas.
Definition: TCanvas.cxx:1440
virtual void Resize(Option_t *option="")
Recompute canvas parameters following a X11 Resize.
Definition: TCanvas.cxx:1532
Manages canvas attributes.
Definition: TAttCanvas.h:28
virtual void Show()
Definition: TCanvasImp.h:64
TPad * fClickSelectedPad
Pad containing currently selected object.
Definition: TCanvas.h:79
Bool_t IsRetained() const
Is pad retained ?
Definition: TCanvas.h:197
void DeleteCanvasPainter()
assert on IsBatch() == false?
Definition: TCanvas.cxx:2277
void Clear(Option_t *option="")
Remove all primitives from the canvas.
Definition: TCanvas.cxx:678
void SetSelectedPad(TPad *pad)
Definition: TCanvas.h:226
UInt_t GetWw() const
Get Ww.
Definition: TCanvas.h:186
virtual ~TCanvas()
Canvas destructor.
Definition: TCanvas.cxx:617
Int_t GetEventY() const
Get Y event.
Definition: TCanvas.h:160
Bool_t OpaqueMoving() const
Is pad moving in opaque mode ?
Definition: TCanvas.h:200
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition: TVirtualPad.h:59
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...
Definition: TCanvas.cxx:1899
void SaveSource(const char *filename="", Option_t *option="")
Save primitives in this canvas as a C++ macro file.
Definition: TCanvas.cxx:1680
virtual TPad * Pick(Int_t px, Int_t py, TObjLink *&pickobj)
Search for an object at pixel position px,py.
Definition: TPad.cxx:3990
char * out
Definition: TBase64.cxx:29
short Color_t
Definition: RtypesCore.h:79
static Bool_t SupportAlpha()
Static function returning "true" if transparency is supported.
Definition: TCanvas.cxx:2169
Bool_t fRetained
True when Updating the canvas.
Definition: TCanvas.h:85
void SetRetained(Bool_t retained=kTRUE)
Definition: TCanvas.h:233
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:41
UInt_t fCw
Definition: TCanvas.h:67
void DisconnectWidget()
Used by friend class TCanvasImp.
Definition: TCanvas.cxx:2216
void CopyPixmaps()
Copy the canvas pixmap of the pad to the canvas.
Definition: TCanvas.cxx:777
virtual void ToggleToolBar()
Toggle toolbar.
Definition: TCanvas.cxx:2135
Int_t fSelectedY
X of selected object.
Definition: TCanvas.h:76
void ResizeOpaque(Int_t set=1)
Set option to resize objects/pads in a canvas.
Definition: TCanvas.cxx:1616
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.
Definition: TCanvas.cxx:841
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
UInt_t fWindowHeight
Definition: TCanvas.h:66
virtual void ForceUpdate()
Definition: TCanvasImp.h:55
Bool_t GetShowToolTips() const
Definition: TCanvas.h:174
This class provides an interface to context sensitive popup menus.
Definition: TContextMenu.h:44
virtual void Iconify()
Definition: TCanvasImp.h:57
TString fDISPLAY
Definition: TCanvas.h:56
unsigned int UInt_t
Definition: RtypesCore.h:42
Bool_t TestBit(UInt_t f) const
Definition: TObject.h:173
The most important graphics class in the ROOT system.
Definition: TPad.h:46
void CreatePainter()
Probably, TPadPainter must be placed in a separate ROOT module - "padpainter" (the same as "histpaint...
Definition: TCanvas.cxx:2248
static TCanvas * MakeDefCanvas()
Static function to build a default canvas.
Definition: TCanvas.cxx:1401
Bool_t OpaqueResizing() const
Is pad resizing in opaque mode ?
Definition: TCanvas.h:201
virtual void ToggleEditor()
Toggle editor.
Definition: TCanvas.cxx:2146
Bool_t fUpdating
True when in batchmode.
Definition: TCanvas.h:84
tuple pad
Definition: first.py:38
virtual void ToggleAutoExec()
Toggle pad auto execution of list of TExecs.
Definition: TCanvas.cxx:2115
void Destructor()
Actual canvas destructor.
Definition: TCanvas.cxx:635
UInt_t GetWindowWidth() const
Definition: TCanvas.h:184
Int_t GetWindowTopX()
Returns current top x position of window on screen.
Definition: TCanvas.cxx:1112
TAttCanvas fCatt
Definition: TCanvas.h:55
TCanvasImp * fCanvasImp
Pointer to saved pad in HandleInput.
Definition: TCanvas.h:81
The Canvas class.
Definition: TCanvas.h:48
TCanvasImp * GetCanvasImp() const
Get canvas implementation pointer if any.
Definition: TCanvas.h:181
Bool_t GetShowEditor() const
Definition: TCanvas.h:173
void SetClickSelectedPad(TPad *pad)
Definition: TCanvas.h:227
Option_t * GetSelectedOpt() const
Definition: TCanvas.h:168
Size_t GetYsizeUser() const
Definition: TCanvas.h:177
void SetCanvasSize(UInt_t ww, UInt_t wh)
Set Width and Height of canvas to ww and wh respectively.
Definition: TCanvas.cxx:1838
Bool_t IsBatch() const
Is pad in batch mode ?
Definition: TCanvas.h:193
Size_t GetXsizeUser() const
Definition: TCanvas.h:176
Double_t y[n]
Definition: legend1.C:17
void Init()
Initialize the TCanvas members. Called by all constructors.
Definition: TCanvas.cxx:483
Bool_t IsGrayscale()
Check whether this canvas is to be drawn in grayscale mode.
Definition: TCanvas.cxx:2225
TVirtualPad * GetClickSelectedPad() const
Definition: TCanvas.h:170
Color_t fHighLightColor
Definition: TCanvas.h:61
Size_t fXsizeUser
Definition: TCanvas.h:57
void SetWindowSize(UInt_t ww, UInt_t wh)
Definition: TCanvas.h:221
TObject * GetClickSelected() const
Definition: TCanvas.h:165
TObject * GetSelected() const
Get selected.
Definition: TCanvas.h:164
virtual void SetWindowSize(UInt_t w, UInt_t h)
Definition: TCanvasImp.h:89
#define name(a, b)
Definition: linkTestLib0.cpp:5
void SetPadSave(TPad *pad)
Definition: TCanvas.h:232
Int_t fWindowTopY
Definition: TCanvas.h:64
Bool_t GetShowToolBar() const
Definition: TCanvas.h:172
Mother of all ROOT objects.
Definition: TObject.h:58
void UseCurrentStyle()
Force a copy of current style for all objects in canvas.
Definition: TCanvas.cxx:1087
void ForceUpdate()
Definition: TCanvas.h:154
virtual void Draw(Option_t *option="")
Draw a canvas.
Definition: TCanvas.cxx:795
Int_t fDoubleBuffer
Definition: TCanvas.h:62
Float_t px
Definition: hprod.C:33
virtual void SetDoubleBuffer(Int_t mode=1)
Set Double Buffer On/Off.
Definition: TCanvas.cxx:1860
void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitives in this canvas in C++ macro file with GUI.
Definition: TCanvas.cxx:1635
virtual TObject * DrawClonePad()
Draw a clone of this canvas into the current pad In an interactive session, select the destination/cu...
Definition: TCanvas.cxx:867
void EmbedInto(Int_t winid, Int_t ww, Int_t wh)
Embedded a canvas into a TRootEmbeddedCanvas.
Definition: TCanvas.cxx:958
virtual void GetCanvasPar(Int_t &wtopx, Int_t &wtopy, UInt_t &ww, UInt_t &wh)
Definition: TCanvas.h:188
Int_t fEventX
Type of current or last handled event.
Definition: TCanvas.h:70
virtual void ls(Option_t *option="") const
List all pads.
Definition: TCanvas.cxx:1389
Int_t GetCanvasID() const
Get canvas identifier.
Definition: TCanvas.h:180
void SetSelected(TObject *obj)
Set selected canvas.
Definition: TCanvas.cxx:1907
void Show()
Definition: TCanvas.h:228
void Close(Option_t *option="")
Close canvas.
Definition: TCanvas.cxx:729
virtual void EditorBar()
Get editor bar.
Definition: TCanvas.cxx:949
TVirtualPad * GetSelectedPad() const
Definition: TCanvas.h:169
virtual void Delete(Option_t *="")
Delete this object.
Definition: TCanvas.h:143
TObject * fClickSelected
Currently selected object.
Definition: TCanvas.h:74
Int_t fEventY
Last X mouse position in canvas.
Definition: TCanvas.h:71
Bool_t GetShowEventStatus() const
Definition: TCanvas.h:171
void SetBatch(Bool_t batch=kTRUE)
Toggle batch mode.
Definition: TCanvas.cxx:1822
virtual void HandleInput(EEventType button, Int_t x, Int_t y)
Handle Input Events.
Definition: TCanvas.cxx:1136
const char * GetDISPLAY() const
Definition: TCanvas.h:155
virtual void Update()
Update canvas pad buffers.
Definition: TCanvas.cxx:2179
Bool_t fBatch
Context menu pointer.
Definition: TCanvas.h:83
const Bool_t kTRUE
Definition: Rtypes.h:91
Int_t GetSelectedX() const
Definition: TCanvas.h:166
TObject * obj
Color_t GetHighLightColor() const
Get highlight color.
Definition: TCanvas.h:161
Size_t GetYsizeReal() const
Definition: TCanvas.h:179
virtual void Closed()
Emit Closed signal.
Definition: TCanvas.cxx:719
To make it possible to use GL for 2D graphic in a TPad/TCanvas.
UInt_t GetWh() const
Get Wh.
Definition: TCanvas.h:187
virtual void Picked(TPad *selpad, TObject *selected, Int_t event)
Emit Picked() signal.
Definition: TCanvas.cxx:1489
UInt_t fCh
Definition: TCanvas.h:68
UInt_t fWindowWidth
Definition: TCanvas.h:65
void SetGrayscale(Bool_t set=kTRUE)
Set whether this canvas should be painted in grayscale, and re-paint it if necessary.
Definition: TCanvas.cxx:2234
void SetHighLightColor(Color_t col)
Definition: TCanvas.h:223