TInspectCanvas.h

Go to the documentation of this file.
00001 // @(#)root/gpad:$Id: TInspectCanvas.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Rene Brun   08/01/2000
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TInspectCanvas
00013 #define ROOT_TInspectCanvas
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TInspectCanvas                                                       //
00019 //                                                                      //
00020 // This class is a specialized canvas to inspect Root objects.          //
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;      //Pointer to the Backward button
00038    TButton     *fForward;       //Pointer to the Forward button
00039    TList       *fObjects;       //List of objects inspected
00040    TObject     *fCurObject;     //Pointer to object being inspected
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    //dummies
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)  //The canvas Inspector
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 

Generated on Tue Jul 5 14:13:56 2011 for ROOT_528-00b_version by  doxygen 1.5.1