Logo ROOT  
Reference Guide
TInspectCanvas.h
Go to the documentation of this file.
1 // @(#)root/gpad:$Id$
2 // Author: Rene Brun 08/01/2000
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_TInspectCanvas
13 #define ROOT_TInspectCanvas
14 
15 
16 #include "TCanvas.h"
17 #include "TAttText.h"
18 
19 class TButton;
20 
21 class TInspectCanvas : public TCanvas, public TAttText {
22 
23 protected:
24 
25  TButton *fBackward; ///< Pointer to the Backward button
26  TButton *fForward; ///< Pointer to the Forward button
27  TList *fObjects; ///< List of objects inspected
28  TObject *fCurObject; ///< Pointer to object being inspected
29 
30 public:
33  virtual ~TInspectCanvas();
34  TButton *GetBackward() const {return fBackward;}
35  TButton *GetForward() const {return fForward;}
36  TObject *GetCurObject() const {return fCurObject;}
37  TList *GetObjects() const {return fObjects;}
38  static void GoBackward();
39  static void GoForward();
40  static void Inspector(TObject *obj);
41  virtual void InspectObject(TObject *obj);
42  virtual void RecursiveRemove(TObject *obj);
43 
44  //dummies
45  virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0);
46  virtual void SetGrid(Int_t valuex = 1, Int_t valuey = 1);
47  virtual void SetGridx(Int_t value = 1);
48  virtual void SetGridy(Int_t value = 1);
49  virtual void SetLogx(Int_t value = 1);
50  virtual void SetLogy(Int_t value = 1);
51  virtual void SetLogz(Int_t value = 1);
52  virtual void SetTickx(Int_t value = 1);
53  virtual void SetTicky(Int_t value = 1);
54  virtual void x3d(Option_t *option="");
55 
56  ClassDef(TInspectCanvas,1) //The canvas Inspector
57 };
58 
68 inline void TInspectCanvas::x3d(Option_t *) { }
69 
70 #endif
71 
TInspectCanvas::SetTickx
virtual void SetTickx(Int_t value=1)
Definition: TInspectCanvas.h:66
TAttText
Definition: TAttText.h:18
TInspectCanvas::Inspector
static void Inspector(TObject *obj)
static function , interface to InspectObject.
Definition: TInspectCanvas.cxx:376
TInspectCanvas::GoBackward
static void GoBackward()
static function , inspect previous object
Definition: TInspectCanvas.cxx:351
TInspectCanvas::fCurObject
TObject * fCurObject
Pointer to object being inspected.
Definition: TInspectCanvas.h:28
TInspectCanvas::RecursiveRemove
virtual void RecursiveRemove(TObject *obj)
Recursively remove object from the list of objects.
Definition: TInspectCanvas.cxx:393
TAttText.h
TInspectCanvas::fForward
TButton * fForward
Pointer to the Forward button.
Definition: TInspectCanvas.h:26
TInspectCanvas::Divide
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
Definition: TInspectCanvas.h:59
Float_t
float Float_t
Definition: RtypesCore.h:57
TInspectCanvas::SetTicky
virtual void SetTicky(Int_t value=1)
Definition: TInspectCanvas.h:67
Int_t
int Int_t
Definition: RtypesCore.h:45
TInspectCanvas::fObjects
TList * fObjects
List of objects inspected.
Definition: TInspectCanvas.h:27
TInspectCanvas::GoForward
static void GoForward()
static function , inspect next object
Definition: TInspectCanvas.cxx:363
TInspectCanvas::SetGrid
virtual void SetGrid(Int_t valuex=1, Int_t valuey=1)
Definition: TInspectCanvas.h:60
TCanvas.h
TInspectCanvas::TInspectCanvas
TInspectCanvas()
InspectCanvas default constructor.
Definition: TInspectCanvas.cxx:65
TInspectCanvas::SetLogz
virtual void SetLogz(Int_t value=1)
Set Lin/Log scale for Z.
Definition: TInspectCanvas.h:65
TInspectCanvas::x3d
virtual void x3d(Option_t *option="")
Deprecated: use TPad::GetViewer3D() instead.
Definition: TInspectCanvas.h:68
TInspectCanvas
Definition: TInspectCanvas.h:21
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
TInspectCanvas::~TInspectCanvas
virtual ~TInspectCanvas()
InspectCanvas default destructor.
Definition: TInspectCanvas.cxx:94
TInspectCanvas::fBackward
TButton * fBackward
Pointer to the Backward button.
Definition: TInspectCanvas.h:25
TInspectCanvas::GetObjects
TList * GetObjects() const
Definition: TInspectCanvas.h:37
TInspectCanvas::SetLogy
virtual void SetLogy(Int_t value=1)
Set Lin/Log scale for Y.
Definition: TInspectCanvas.h:64
TInspectCanvas::SetGridy
virtual void SetGridy(Int_t value=1)
Definition: TInspectCanvas.h:62
unsigned int
TInspectCanvas::GetCurObject
TObject * GetCurObject() const
Definition: TInspectCanvas.h:36
TInspectCanvas::InspectObject
virtual void InspectObject(TObject *obj)
Dump contents of obj in a graphics canvas.
Definition: TInspectCanvas.cxx:110
TButton
Definition: TButton.h:19
TInspectCanvas::SetLogx
virtual void SetLogx(Int_t value=1)
Set Lin/Log scale for X.
Definition: TInspectCanvas.h:63
TCanvas
Definition: TCanvas.h:23
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TInspectCanvas::GetBackward
TButton * GetBackward() const
Definition: TInspectCanvas.h:34
TInspectCanvas::GetForward
TButton * GetForward() const
Definition: TInspectCanvas.h:35
TList
Definition: TList.h:44
int
TInspectCanvas::SetGridx
virtual void SetGridx(Int_t value=1)
Definition: TInspectCanvas.h:61