source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/common/eventviewer/include/EAnimator.hh @ 117

Last change on this file since 117 was 117, checked in by moretto, 11 years ago

ESAF version compilable on mac OS

File size: 1.3 KB
Line 
1// ESAF : Euso Simulation and Analysis Framework
2// $Id: EAnimator.hh 1529 2005-02-18 01:47:44Z thea $
3// Author: A.Thea   Aug,  5 2004
4
5#ifndef __EANIMATOR_HH_
6#define __EANIMATOR_HH_
7
8#include "TObject.h"
9
10/*******************************************************************************
11 *
12 * EAnimator: base class for all Euso Event Painter that are able to display
13 * an animation
14 *
15 ******************************************************************************/
16
17class TTimer;
18
19class EAnimator : public TObject {
20public:
21    EAnimator();
22    virtual ~EAnimator();
23
24    virtual        void Play( Option_t *opt=""); // *MENU*
25    virtual        void Stop(); // *MENU*
26    virtual inline void Rewind() { fFrame = 0; } // *MENU*
27
28    virtual        void Animate();
29    virtual inline void NextFrame() { fFrame++; } // *MENU*
30
31
32    virtual inline Bool_t  IsEnded();
33
34    virtual inline TTimer* GetTimer() const { return fTimer; }
35    virtual inline Int_t   GetFrame() const { return fFrame; }
36    virtual inline Int_t   GetNumFrames() const { return fNumFrames; }
37
38protected:
39
40    TTimer *fTimer;
41
42    Int_t fNumFrames;
43    Int_t fFrame;
44
45    ClassDef(EAnimator,1)
46};
47
48// inline functions
49
50inline Bool_t EAnimator::IsEnded() {
51    return (fFrame > fNumFrames-1);
52}
53
54#endif  /* __EANIMATOR_HH_ */
55
Note: See TracBrowser for help on using the repository browser.