cavewriting::Scene Class Reference
#include <Scene.H>
Inherited by cavewriting::DenouementScene, cavewriting::FadeScene, cavewriting::PeelScene, and cavewriting::TotalCollapse.
List of all members.
Detailed Description
Scenes are about timing. A scene is associated with one or more sections, by section-name. A scene is essentially a grouping of sections. The point is to let times be specifed locally, on a per-scene timeline, rather than on a global, linear timeline.
When the scene is started, by calling start() on it, it starts all of the sections it contains, starting at the current time. Scenes start off paused. Subclasses of Scene should do something interesting with the animate() method.
Scenes are managed by a Story object. The Story object tells each Scene when to play. A non-linear structure can be created by having a subclass of Story do something interesting when deciding which scene to play when.
Example: If you have sections defined the following way:
For a basic scene, which just plays one effect after another, set type="basic" To get a peeling effect, set type=peel and peel-effect=peel. To get a fading effect, set type=peel and peel-effect=fade Yes, this is a little ugly. TODO: clean this up so you don't have to say type and effect.
Constructor & Destructor Documentation
cavewriting::Scene::Scene |
( |
Story * |
story, |
|
|
xercesc::DOMNode * |
node, |
|
|
int |
id |
|
) |
|
|
virtual cavewriting::Scene::~Scene |
( |
|
) |
[virtual] |
|
Member Function Documentation
void cavewriting::Scene::addFragment |
( |
xercesc::DOMNode * |
node, |
|
|
Story * |
story |
|
) |
[protected] |
|
virtual void cavewriting::Scene::animate |
( |
|
) |
[inline, virtual] |
|
void cavewriting::Scene::checkAndDoGrab |
( |
|
) |
[protected] |
|
static Scene* cavewriting::Scene::fromXML |
( |
Story * |
story, |
|
|
xercesc::DOMNode * |
node, |
|
|
int |
id |
|
) |
[static] |
|
const double cavewriting::Scene::getDuration |
( |
|
) |
[inline] |
|
const string& cavewriting::Scene::getName |
( |
|
) |
[inline] |
|
const bool cavewriting::Scene::getPaused |
( |
|
) |
[inline] |
|
Array<Section*> cavewriting::Scene::getSections |
( |
|
) |
[inline] |
|
const double cavewriting::Scene::getStartTime |
( |
|
) |
[inline] |
|
void cavewriting::Scene::playSound |
( |
|
) |
|
|
void cavewriting::Scene::setStartTime |
( |
double |
time |
) |
[inline] |
|
virtual void cavewriting::Scene::start |
( |
|
) |
[virtual] |
|
Member Data Documentation
|
Information for screen grabs: should we grab at all?
|
|
Information for screen grabs: how long between grabs.
|
|
Information for screen grabs: what time did we last grab the screen?
|
The documentation for this class was generated from the following file:
Generated on Sun Apr 17 13:34:28 2005 for cavewriting by
1.4.0