TGraphTime.h

Go to the documentation of this file.
00001 // @(#)root/hist:$Id: TGraphTime.h 31667 2009-12-08 15:11:34Z brun $
00002 // Author: Rene Brun 13/07/2009
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2009, 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_TGraphTime
00013 #define ROOT_TGraphTime
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TGraphTime                                                           //
00019 //                                                                      //
00020 // An array of objects evolving with time                               //
00021 //                                                                      //
00022 //////////////////////////////////////////////////////////////////////////
00023 
00024 #ifndef ROOT_TNamed
00025 #include "TNamed.h"
00026 #endif
00027 
00028 class TH1;
00029 class TObjArray;
00030 
00031 class TGraphTime : public TNamed {
00032 
00033 protected:
00034 
00035    Int_t              fSleepTime; //Time (msec) to wait between time steps
00036    Int_t              fNsteps;    //Number of time steps
00037    Double_t           fXmin;      //Minimum for X axis
00038    Double_t           fXmax;      //Maximum for X axis
00039    Double_t           fYmin;      //Minimum for Y axis
00040    Double_t           fYmax;      //Maximum for Y axis
00041    TObjArray         *fSteps;     //array of TLists for each time step
00042    TH1               *fFrame;     //TH1 object used for the pad range
00043 
00044 public:
00045 
00046    TGraphTime();
00047    TGraphTime(Int_t nsteps, Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax);
00048    TGraphTime(const TGraphTime &gr);
00049    virtual ~TGraphTime();
00050 
00051    virtual Int_t   Add(const TObject *obj, Int_t slot, Option_t *option="");
00052    virtual void    Draw(Option_t *chopt="");
00053    TObjArray      *GetSteps() const {return fSteps;}
00054    virtual void    Paint(Option_t *chopt="");
00055    virtual void    SaveAnimatedGif(const char *filename="") const;
00056    virtual void    SetSleepTime(Int_t stime=0) {fSleepTime = stime;}
00057 
00058    ClassDef(TGraphTime,1)  //An array of objects evolving with time
00059 };
00060 
00061 #endif

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