#include <Effect.H>
Inherited by cavewriting::FadeInOutEffect, cavewriting::FaderEffect, cavewriting::LerpEffect, cavewriting::OrbitEffect, cavewriting::PeelEffect, and cavewriting::SurroundEffect.
Public Member Functions | |
Effect (Array< Word * > &words, double startTime, double duration=100.0, bool startPaused=true) | |
Effect (Word *word, double startTime, double duration=100.0, bool startPaused=true) | |
virtual | ~Effect () |
virtual void | animate () |
Subclasses should implement. | |
Array< Word * > & | getWords () |
void | addWord (Word *word) |
virtual void | start () |
Starts the effect running. | |
Static Public Member Functions | |
static Effect * | fromXML (xercesc::DOMElement *effectNode, bool startPaused=true) |
Protected Attributes | |
Array< Word * > | _words |
Word * | _word |
double | _startTime |
double | _duration |
bool | _paused |
|
Constructs an effect on the words passed in. startTime means "time to wait after 'start' is called duration is in seconds startPaused should probably be true most of the time; it means that a Scene construct controls when the |
|
|
|
|
|
Add a word to the list of words this effect controls. Most effects work better if they have only one word, but your subclass can choose to deal properly with more than one word. |
|
Subclasses should implement.
Reimplemented in cavewriting::FadeInOutEffect, cavewriting::FaderEffect, cavewriting::LerpEffect, cavewriting::OrbitEffect, cavewriting::PeelEffect, and cavewriting::SurroundEffect. |
|
Reads an Effect in from xml. Creates and returns an instance of the appropriate subclass. Reimplemented in cavewriting::FadeInOutEffect, cavewriting::FaderEffect, cavewriting::LerpEffect, cavewriting::PeelEffect, and cavewriting::SurroundEffect. |
|
Returns an array of the words which this effect controls. Most effects work better if they have only one word, |
|
Starts the effect running.
|
|
|
|
|
|
|
|
|
|
|