// @(#)root/hist:$Id$
// Author: Rene Brun 13/07/2009

/*************************************************************************
 * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TGraphTime
#define ROOT_TGraphTime


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TGraphTime                                                           //
//                                                                      //
// An array of objects evolving with time                               //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TNamed
#include "TNamed.h"
#endif

class TH1;
class TObjArray;

class TGraphTime : public TNamed {

protected:

   Int_t              fSleepTime; //Time (msec) to wait between time steps
   Int_t              fNsteps;    //Number of time steps
   Double_t           fXmin;      //Minimum for X axis
   Double_t           fXmax;      //Maximum for X axis
   Double_t           fYmin;      //Minimum for Y axis
   Double_t           fYmax;      //Maximum for Y axis
   TObjArray         *fSteps;     //array of TLists for each time step
   TH1               *fFrame;     //TH1 object used for the pad range

public:

   TGraphTime();
   TGraphTime(Int_t nsteps, Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax);
   TGraphTime(const TGraphTime &gr);
   virtual ~TGraphTime();

   virtual Int_t   Add(const TObject *obj, Int_t slot, Option_t *option="");
   virtual void    Draw(Option_t *chopt="");
   TObjArray      *GetSteps() const {return fSteps;}
   virtual void    Paint(Option_t *chopt="");
   virtual void    SaveAnimatedGif(const char *filename="") const;
   virtual void    SetSleepTime(Int_t stime=0) {fSleepTime = stime;}

   ClassDef(TGraphTime,1)  //An array of objects evolving with time
};

#endif
 TGraphTime.h:1
 TGraphTime.h:2
 TGraphTime.h:3
 TGraphTime.h:4
 TGraphTime.h:5
 TGraphTime.h:6
 TGraphTime.h:7
 TGraphTime.h:8
 TGraphTime.h:9
 TGraphTime.h:10
 TGraphTime.h:11
 TGraphTime.h:12
 TGraphTime.h:13
 TGraphTime.h:14
 TGraphTime.h:15
 TGraphTime.h:16
 TGraphTime.h:17
 TGraphTime.h:18
 TGraphTime.h:19
 TGraphTime.h:20
 TGraphTime.h:21
 TGraphTime.h:22
 TGraphTime.h:23
 TGraphTime.h:24
 TGraphTime.h:25
 TGraphTime.h:26
 TGraphTime.h:27
 TGraphTime.h:28
 TGraphTime.h:29
 TGraphTime.h:30
 TGraphTime.h:31
 TGraphTime.h:32
 TGraphTime.h:33
 TGraphTime.h:34
 TGraphTime.h:35
 TGraphTime.h:36
 TGraphTime.h:37
 TGraphTime.h:38
 TGraphTime.h:39
 TGraphTime.h:40
 TGraphTime.h:41
 TGraphTime.h:42
 TGraphTime.h:43
 TGraphTime.h:44
 TGraphTime.h:45
 TGraphTime.h:46
 TGraphTime.h:47
 TGraphTime.h:48
 TGraphTime.h:49
 TGraphTime.h:50
 TGraphTime.h:51
 TGraphTime.h:52
 TGraphTime.h:53
 TGraphTime.h:54
 TGraphTime.h:55
 TGraphTime.h:56
 TGraphTime.h:57
 TGraphTime.h:58
 TGraphTime.h:59
 TGraphTime.h:60
 TGraphTime.h:61