rcrt::AnimLoader Class Reference

#include <AnimLoader.h>

Inheritance diagram for rcrt::AnimLoader:

Inheritance graph
[legend]
Collaboration diagram for rcrt::AnimLoader:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AnimLoader (std::string filePath)
virtual ~AnimLoader ()
bool goToFrame (const int &n)
bool nextFrame ()
ScenegetScene ()
CameragetCamera ()

Private Attributes

int firstF
int lastF
MaterialLoadermaterials
SceneLoaderscene


Detailed Description

Loads an animation defined in an xml file. Initiates loading of scene and material files.

Definition at line 15 of file AnimLoader.h.


Constructor & Destructor Documentation

rcrt::AnimLoader::AnimLoader ( std::string  filePath  ) 

Definition at line 9 of file AnimLoader.cpp.

References rcrt::XMLLoader::currentFrame, firstF, goToFrame(), lastF, materials, rcrt::XMLLoader::nextStartTag(), rcrt::XMLLoader::parser, and scene.

rcrt::AnimLoader::~AnimLoader (  )  [virtual]

Definition at line 27 of file AnimLoader.cpp.


Member Function Documentation

bool rcrt::AnimLoader::goToFrame ( const int &  n  )  [virtual]

Loads info of frame n.

Implements rcrt::XMLLoader.

Definition at line 31 of file AnimLoader.cpp.

References rcrt::XMLLoader::currentFrame, rcrt::SceneLoader::goToFrame(), rcrt::MaterialLoader::goToFrame(), lastF, materials, and scene.

Referenced by AnimLoader().

bool rcrt::AnimLoader::nextFrame (  )  [virtual]

Loads info from next frame. If on starting tag of frame, load this one, else go to next frame starting tag and load from that.

Implements rcrt::XMLLoader.

Definition at line 45 of file AnimLoader.cpp.

References rcrt::XMLLoader::currentFrame, lastF, materials, rcrt::SceneLoader::nextFrame(), rcrt::MaterialLoader::nextFrame(), and scene.

Referenced by rcrtAnim(), testPhoton(), and testPhotonRCRT().

Scene * rcrt::AnimLoader::getScene (  ) 

Definition at line 59 of file AnimLoader.cpp.

References rcrt::SceneLoader::getScene(), and scene.

Referenced by rcrtAnim(), testPhoton(), and testPhotonRCRT().

Camera * rcrt::AnimLoader::getCamera (  ) 

Definition at line 64 of file AnimLoader.cpp.

References rcrt::SceneLoader::getCamera(), and scene.

Referenced by rcrtAnim(), testPhoton(), and testPhotonRCRT().


Member Data Documentation

int rcrt::AnimLoader::firstF [private]

Definition at line 18 of file AnimLoader.h.

Referenced by AnimLoader().

int rcrt::AnimLoader::lastF [private]

Definition at line 18 of file AnimLoader.h.

Referenced by AnimLoader(), goToFrame(), and nextFrame().

MaterialLoader* rcrt::AnimLoader::materials [private]

Definition at line 19 of file AnimLoader.h.

Referenced by AnimLoader(), goToFrame(), and nextFrame().

SceneLoader* rcrt::AnimLoader::scene [private]

Definition at line 20 of file AnimLoader.h.

Referenced by AnimLoader(), getCamera(), getScene(), goToFrame(), and nextFrame().


The documentation for this class was generated from the following files:
Generated on Thu Jan 31 19:32:40 2008 for RenderingCompetitionRayTracer by  doxygen 1.5.3