00001
00002
00003
00004
00005
00006
00007
00008 #ifndef FadeInOutEffect_Header
00009 #define FadeInOutEffect_Header
00010
00011 #include <DrawObj.H>
00012 #include <IS3D.H>
00013 #include "Word.H"
00014 #include "Effect.H"
00015
00016 using namespace std;
00017
00026 namespace cavewriting {
00027
00028
00029 class FadeInOutEffect : public Effect {
00030
00031 public:
00032
00033 FadeInOutEffect(Array<Word*>& words,
00034 double startTime, double duration = 10.0, bool startPaused = true,
00035 double fadeInDuration = 1.0, double pauseDuration = 3.0, double fadeOutDuration = 1.0
00036 );
00037 static FadeInOutEffect* fromXML(xercesc::DOMElement * node, bool startPaused = true);
00038 virtual ~FadeInOutEffect();
00039
00040 virtual void animate();
00041
00042 protected:
00043
00044 double _fadeInDuration;
00045 double _pauseDuration;
00046 double _fadeOutDuration;
00047
00048 private:
00049
00050 };
00051 }
00052
00053 #endif