TDialogCanvas.h

Go to the documentation of this file.
00001 // @(#)root/gpad:$Id: TDialogCanvas.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Rene Brun   03/07/96
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_TDialogCanvas
00013 #define ROOT_TDialogCanvas
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TDialogCanvas                                                        //
00019 //                                                                      //
00020 // A specialized canvas to set attributes.                              //
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 TDialogCanvas : public TCanvas, public TAttText {
00032 
00033 private:
00034    TDialogCanvas(const TDialogCanvas&);
00035    TDialogCanvas& operator=(const TDialogCanvas&);
00036 
00037 protected:
00038    TObject     *fRefObject;   //Pointer to object to set attributes
00039    TPad        *fRefPad;      //Pad containing object
00040 
00041 public:
00042    TDialogCanvas();
00043    TDialogCanvas(const char *name, const char *title, Int_t ww, Int_t wh);
00044    TDialogCanvas(const char *name, const char *title, Int_t wtopx, Int_t wtopy, UInt_t ww, UInt_t wh);
00045    virtual        ~TDialogCanvas();
00046    virtual void   Apply(const char *action="");
00047    virtual void   BuildStandardButtons();
00048    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);
00049    TObject        *GetRefObject() const { return fRefObject; }
00050    TPad           *GetRefPad() const { return fRefPad; }
00051    virtual void   Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2);
00052    virtual void   RecursiveRemove(TObject *obj);
00053    virtual void   SetBorderMode(Short_t bordermode){ fBorderMode = bordermode; }
00054    virtual void   SetGrid(Int_t valuex = 1, Int_t valuey = 1);
00055    virtual void   SetLogx(Int_t value = 1);
00056    virtual void   SetLogy(Int_t value = 1);
00057    virtual void   SetName(const char *name) { fName = name; }
00058    virtual void   SetRefObject(TObject*obj) { fRefObject=obj; }
00059    virtual void   SetRefPad(TPad *pad) { fRefPad=pad; }
00060    virtual void   x3d(Option_t *option="");
00061 
00062    ClassDef(TDialogCanvas,0)  //A specialized canvas to set attributes.
00063 };
00064 
00065 inline void TDialogCanvas::Divide(Int_t, Int_t, Float_t, Float_t, Int_t) { }
00066 inline void TDialogCanvas::SetGrid(Int_t, Int_t) { }
00067 inline void TDialogCanvas::SetLogx(Int_t) { }
00068 inline void TDialogCanvas::SetLogy(Int_t) { }
00069 inline void TDialogCanvas::x3d(Option_t *) { }
00070 
00071 #endif
00072 

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