28 #ifndef ROOT_TAttCanvas 32 #ifndef ROOT_TVirtualX 40 #ifndef ROOT_TCanvasImp 234 void SetTitle(
const char *title=
"");
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
Option_t * GetSelectedOpt() const
void FeedbackMode(Bool_t set)
Turn rubberband feedback mode on or off.
Bool_t GetShowEditor() const
This class defines an abstract interface to a generic command line interpreter.
virtual void Selected(TVirtualPad *pad, TObject *obj, Int_t event)
Emit Selected() signal.
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
void MoveOpaque(Int_t set=1)
Set option to move objects/pads in a canvas.
TPad * fSelectedPad
Drawing option of selected object.
virtual void SetCursor(ECursor cursor)
Set cursor.
void SetWindowPosition(Int_t x, Int_t y)
TCanvas(const TCanvas &canvas)
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area)...
TVirtualPad * GetSelectedPad() const
TContextMenu * fContextMenu
Window system specific canvas implementation.
virtual void ToggleEventStatus()
Toggle event statusbar.
Bool_t fDrawn
True when rendering is with GL.
TPad * fPadSave
Pad containing currently click-selected object.
TVirtualPadPainter * GetCanvasPainter()
Access and (probably) creation of pad painter.
void SetTitle(const char *title="")
Set canvas title.
virtual void SetWindowPosition(Int_t x, Int_t y)
void SetSupportGL(Bool_t support)
Int_t GetCanvasID() const
Get canvas identifier.
void Build()
Build a canvas. Called by all constructors.
TVirtualPadPainter * fPainter
Set to True when the Draw method is called.
Bool_t TestBit(UInt_t f) const
TObject * fSelected
Canvas identifier.
TObject * GetSelected() const
Get selected.
static Bool_t fgIsFolder
Canvas (pad) painter.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
Int_t fCanvasID
Last Y mouse position in canvas.
TVirtualPad * GetPadSave() const
static const char * filename()
Size_t GetYsizeUser() const
virtual void ToggleToolTips()
Toggle tooltip display.
Int_t fSelectedX
Currently click-selected object.
Bool_t GetShowEventStatus() const
virtual void Size(Float_t xsizeuser=0, Float_t ysizeuser=0)
Set the canvas scale in centimeters.
TObject * GetClickSelected() const
void Constructor()
Canvas default constructor.
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.
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.
virtual void ProcessedEvent(Int_t event, Int_t x, Int_t y, TObject *selected)
Emit ProcessedEvent() signal.
void SetClickSelected(TObject *obj)
virtual void RaiseWindow()
Bool_t GetShowToolTips() const
virtual void Browse(TBrowser *b)
Browse.
TString fSelectedOpt
Y of selected object.
Int_t GetWindowTopY()
Returns current top y position of window on screen.
virtual void SetFixedAspectRatio(Bool_t fixed=kTRUE)
Fix canvas aspect ratio to current value if fixed is true.
#define ClassDef(name, id)
virtual void Cleared(TVirtualPad *pad)
Emit pad Cleared signal.
virtual void Paint(Option_t *option="")
Paint canvas.
virtual void Resize(Option_t *option="")
Recompute canvas parameters following a X11 Resize.
Manages canvas attributes.
UInt_t GetWindowHeight() const
TPad * fClickSelectedPad
Pad containing currently selected object.
UInt_t GetWw() const
Get Ww.
TCanvasImp * GetCanvasImp() const
Get canvas implementation pointer if any.
void DeleteCanvasPainter()
assert on IsBatch() == false?
void Clear(Option_t *option="")
Remove all primitives from the canvas.
void SetSelectedPad(TPad *pad)
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...
virtual ~TCanvas()
Canvas destructor.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
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 TPad * Pick(Int_t px, Int_t py, TObjLink *&pickobj)
Search for an object at pixel position px,py.
virtual void ls(Option_t *option="") const
List all pads.
Bool_t OpaqueMoving() const
Is pad moving in opaque mode ?
static Bool_t SupportAlpha()
Static function returning "true" if transparency is supported.
Size_t GetYsizeReal() const
Int_t GetEventX() const
Get X event.
Int_t GetSelectedY() const
Bool_t fRetained
True when Updating the canvas.
Int_t GetEvent() const
Get Event.
void SetRetained(Bool_t retained=kTRUE)
Using a TBrowser one can browse all ROOT objects.
void DisconnectWidget()
Used by friend class TCanvasImp.
void CopyPixmaps()
Copy the canvas pixmap of the pad to the canvas.
virtual void ToggleToolBar()
Toggle toolbar.
Int_t fSelectedY
X of selected object.
void ResizeOpaque(Int_t set=1)
Set option to resize objects/pads in a canvas.
Bool_t OpaqueResizing() const
Is pad resizing in opaque mode ?
UInt_t GetWh() const
Get Wh.
virtual void ForceUpdate()
The most important graphics class in the ROOT system.
void CreatePainter()
Probably, TPadPainter must be placed in a separate ROOT module - "padpainter" (the same as "histpaint...
static TCanvas * MakeDefCanvas()
Static function to build a default canvas.
Size_t GetXsizeReal() const
virtual void ToggleEditor()
Toggle editor.
Bool_t fUpdating
True when in batchmode.
virtual void ToggleAutoExec()
Toggle pad auto execution of list of TExecs.
void Destructor()
Actual canvas destructor.
Color_t GetHighLightColor() const
Get highlight color.
Int_t GetWindowTopX()
Returns current top x position of window on screen.
TCanvasImp * fCanvasImp
Pointer to saved pad in HandleInput.
Bool_t IsFolder() const
Is folder ?
void SetClickSelectedPad(TPad *pad)
TContextMenu * GetContextMenu() const
TVirtualPad * GetClickSelectedPad() const
UInt_t GetWindowWidth() const
const char * GetDISPLAY() 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.
Bool_t IsBatch() const
Is pad in batch mode ?
void Init()
Initialize the TCanvas members. Called by all constructors.
Bool_t IsGrayscale()
Check whether this canvas is to be drawn in grayscale mode.
Size_t GetXsizeUser() const
void SetWindowSize(UInt_t ww, UInt_t wh)
virtual void SetWindowSize(UInt_t w, UInt_t h)
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.
void SetPadSave(TPad *pad)
Int_t GetEventY() const
Get Y event.
Mother of all ROOT objects.
void UseCurrentStyle()
Force a copy of current style for all objects in canvas.
virtual void Draw(Option_t *option="")
Draw a canvas.
virtual void SetDoubleBuffer(Int_t mode=1)
Set Double Buffer On/Off.
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...
void EmbedInto(Int_t winid, Int_t ww, Int_t wh)
Embedded a canvas into a TRootEmbeddedCanvas.
virtual void GetCanvasPar(Int_t &wtopx, Int_t &wtopy, UInt_t &ww, UInt_t &wh)
Int_t fEventX
Type of current or last handled event.
void SetSelected(TObject *obj)
Set selected canvas.
Bool_t HasMenuBar() const
void Close(Option_t *option="")
Close canvas.
virtual void EditorBar()
Get editor bar.
virtual void Delete(Option_t *="")
Delete this object.
Bool_t IsRetained() const
Is pad retained ?
TObject * fClickSelected
Currently selected object.
Int_t fEventY
Last X mouse position in canvas.
void SetBatch(Bool_t batch=kTRUE)
Toggle batch mode.
virtual void HandleInput(EEventType button, Int_t x, Int_t y)
Handle Input Events.
virtual void Update()
Update canvas pad buffers.
Bool_t fBatch
Context menu pointer.
Int_t GetDoubleBuffer() const
virtual void Closed()
Emit Closed signal.
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.
Bool_t GetAutoExec() const
void SetGrayscale(Bool_t set=kTRUE)
Set whether this canvas should be painted in grayscale, and re-paint it if necessary.
void SetHighLightColor(Color_t col)
Int_t GetSelectedX() const
const char * Data() const