00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef ROOT_TInspectCanvas
00013 #define ROOT_TInspectCanvas
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef ROOT_TCanvas
00025 #include "TCanvas.h"
00026 #endif
00027 #ifndef ROOT_TAttText
00028 #include "TAttText.h"
00029 #endif
00030
00031 class TButton;
00032
00033 class TInspectCanvas : public TCanvas, public TAttText {
00034
00035 protected:
00036
00037 TButton *fBackward;
00038 TButton *fForward;
00039 TList *fObjects;
00040 TObject *fCurObject;
00041
00042 public:
00043 TInspectCanvas();
00044 TInspectCanvas(UInt_t ww, UInt_t wh);
00045 virtual ~TInspectCanvas();
00046 TButton *GetBackward() const {return fBackward;}
00047 TButton *GetForward() const {return fForward;}
00048 TObject *GetCurObject() const {return fCurObject;}
00049 TList *GetObjects() const {return fObjects;}
00050 static void GoBackward();
00051 static void GoForward();
00052 static void Inspector(TObject *obj);
00053 virtual void InspectObject(TObject *obj);
00054 virtual void RecursiveRemove(TObject *obj);
00055
00056
00057 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);
00058 virtual void SetGrid(Int_t valuex = 1, Int_t valuey = 1);
00059 virtual void SetGridx(Int_t value = 1);
00060 virtual void SetGridy(Int_t value = 1);
00061 virtual void SetLogx(Int_t value = 1);
00062 virtual void SetLogy(Int_t value = 1);
00063 virtual void SetLogz(Int_t value = 1);
00064 virtual void SetTickx(Int_t value = 1);
00065 virtual void SetTicky(Int_t value = 1);
00066 virtual void x3d(Option_t *option="");
00067
00068 ClassDef(TInspectCanvas,1)
00069 };
00070
00071 inline void TInspectCanvas::Divide(Int_t, Int_t, Float_t, Float_t, Int_t) { }
00072 inline void TInspectCanvas::SetGrid(Int_t, Int_t) { }
00073 inline void TInspectCanvas::SetGridx(Int_t) { }
00074 inline void TInspectCanvas::SetGridy(Int_t) { }
00075 inline void TInspectCanvas::SetLogx(Int_t) { }
00076 inline void TInspectCanvas::SetLogy(Int_t) { }
00077 inline void TInspectCanvas::SetLogz(Int_t) { }
00078 inline void TInspectCanvas::SetTickx(Int_t) { }
00079 inline void TInspectCanvas::SetTicky(Int_t) { }
00080 inline void TInspectCanvas::x3d(Option_t *) { }
00081
00082 #endif
00083