Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

cavewriting::FadeScene Class Reference

A scene which fades in all the sections it at once, then fades them out all at once. More...

#include <FadeScene.H>

Inherits cavewriting::Scene.

List of all members.

Public Member Functions

 FadeScene (Story *story, xercesc::DOMNode *node, int id)
virtual ~FadeScene ()
virtual void start ()
virtual void animate ()

Protected Attributes

double _fadeInDuration
double _pauseDuration
double _fadeOutDuration
double _localStartTime


Detailed Description

A scene which fades in all the sections it at once, then fades them out all at once.

The example below fades in four sections, the first two together, the second two one after the other. The attribute "fade-in-duration" specifies how many seconds it should take to fade in. The attribute "pause-duration" specifies how many seconds it should pause, fully visible. The attribute "fade-out-duration" specifies how many seconds it should take to fade in.

<story>

<section paused="true" visible="true">
<name>awaken</name>
<translation>(-2, 2, -4)</translation>
<word>something</word>
<word>awakens</word>
<word>me</word>
</section>

<section paused="true" visible="true">
<translation>(-2, 1.5, -4)</translation>
<name>where</name>
<word>i</word>
<word>don't</word>
<word>know</word>
<word>where</word>
<word>i</word>
<word>am</word>
</section>


<section paused="true" visible="false">
<name>close</name>
<translation>(-2, 1, -4)</translation>
<word>close</word>
<word>my</word>
<word>eyes</word>
</section>

<section paused="true" visible="false">
<translation>(-2, 0, -4)</translation>
<name>sleep</name>
<word>might</word>
<word>as</word>
<word>well</word>
<word>sleep</word>
</section>

<scene name="wakeup" start-time="0" duration="11" type="fade" 
       fade-in-duration="5" pause-duration="1" fade-out-duration="2">
<section-name>awaken</section-name>
<section-name>where</section-name>
</scene>

<scene name="close" start-time="5" duration="14" type="fade"
       fade-in-duration="5" pause-duration="1" fade-out-duration="8">
<section-name>close</section-name>
</scene>

<scene name="might" start-time="10" duration="14" type="fade"
       fade-in-duration="5" pause-duration="1" fade-out-duration="8">
<section-name>sleep</section-name>
</scene>

</story>


Constructor & Destructor Documentation

cavewriting::FadeScene::FadeScene Story story,
xercesc::DOMNode *  node,
int  id
 

virtual cavewriting::FadeScene::~FadeScene  )  [virtual]
 


Member Function Documentation

virtual void cavewriting::FadeScene::animate  )  [virtual]
 

Reimplemented from cavewriting::Scene.

virtual void cavewriting::FadeScene::start  )  [virtual]
 

Reimplemented from cavewriting::Scene.


Member Data Documentation

double cavewriting::FadeScene::_fadeInDuration [protected]
 

double cavewriting::FadeScene::_fadeOutDuration [protected]
 

double cavewriting::FadeScene::_localStartTime [protected]
 

double cavewriting::FadeScene::_pauseDuration [protected]
 


The documentation for this class was generated from the following file:
Generated on Sun Apr 17 13:34:28 2005 for cavewriting by  doxygen 1.4.0