ROOT  6.06/09
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 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TInspectCanvas //
19 // //
20 // This class is a specialized canvas to inspect Root objects. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #ifndef ROOT_TCanvas
25 #include "TCanvas.h"
26 #endif
27 #ifndef ROOT_TAttText
28 #include "TAttText.h"
29 #endif
30 
31 class TButton;
32 
33 class TInspectCanvas : public TCanvas, public TAttText {
34 
35 protected:
36 
37  TButton *fBackward; //Pointer to the Backward button
38  TButton *fForward; //Pointer to the Forward button
39  TList *fObjects; //List of objects inspected
40  TObject *fCurObject; //Pointer to object being inspected
41 
42 public:
45  virtual ~TInspectCanvas();
46  TButton *GetBackward() const {return fBackward;}
47  TButton *GetForward() const {return fForward;}
48  TObject *GetCurObject() const {return fCurObject;}
49  TList *GetObjects() const {return fObjects;}
50  static void GoBackward();
51  static void GoForward();
52  static void Inspector(TObject *obj);
53  virtual void InspectObject(TObject *obj);
54  virtual void RecursiveRemove(TObject *obj);
55 
56  //dummies
57  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);
58  virtual void SetGrid(Int_t valuex = 1, Int_t valuey = 1);
59  virtual void SetGridx(Int_t value = 1);
60  virtual void SetGridy(Int_t value = 1);
61  virtual void SetLogx(Int_t value = 1);
62  virtual void SetLogy(Int_t value = 1);
63  virtual void SetLogz(Int_t value = 1);
64  virtual void SetTickx(Int_t value = 1);
65  virtual void SetTicky(Int_t value = 1);
66  virtual void x3d(Option_t *option="");
67 
68  ClassDef(TInspectCanvas,1) //The canvas Inspector
69 };
70 
80 inline void TInspectCanvas::x3d(Option_t *) { }
81 
82 #endif
83 
const int nx
Definition: kalman.C:16
virtual void SetGridx(Int_t value=1)
ClassDef(TAttBBox2D, 0)
float Float_t
Definition: RtypesCore.h:53
const char Option_t
Definition: RtypesCore.h:62
TInspectCanvas()
InspectCanvas default constructor.
TList * GetObjects() const
int Int_t
Definition: RtypesCore.h:41
virtual ~TInspectCanvas()
InspectCanvas default destructor.
virtual void SetLogz(Int_t value=1)
Set Lin/Log scale for Z.
TObject * GetCurObject() const
const int ny
Definition: kalman.C:17
TButton * GetForward() const
A doubly linked list.
Definition: TList.h:47
virtual void SetTicky(Int_t value=1)
virtual void x3d(Option_t *option="")
Deprecated: use TPad::GetViewer3D() instead.
virtual void SetGridy(Int_t value=1)
TButton * fForward
static void GoForward()
static function , inspect next object
virtual void SetGrid(Int_t valuex=1, Int_t valuey=1)
Text Attributes class.
Definition: TAttText.h:32
unsigned int UInt_t
Definition: RtypesCore.h:42
TButton * fBackward
A TButton object is a user interface object.
Definition: TButton.h:32
virtual void InspectObject(TObject *obj)
Dump contents of obj in a graphics canvas.
virtual void SetLogx(Int_t value=1)
Set Lin/Log scale for X.
The Canvas class.
Definition: TCanvas.h:48
Mother of all ROOT objects.
Definition: TObject.h:58
static void Inspector(TObject *obj)
static function , interface to InspectObject.
virtual void RecursiveRemove(TObject *obj)
Recursively remove object from the list of objects.
virtual void SetLogy(Int_t value=1)
Set Lin/Log scale for Y.
TObject * fCurObject
virtual void SetTickx(Int_t value=1)
pointer to class of the foreign object
static void GoBackward()
static function , inspect previous object
TObject * obj
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.
float value
Definition: math.cpp:443
TButton * GetBackward() const