#include <AnimLoader.h>
Public Member Functions | |
AnimLoader (std::string filePath) | |
virtual | ~AnimLoader () |
bool | goToFrame (const int &n) |
bool | nextFrame () |
Scene * | getScene () |
Camera * | getCamera () |
Private Attributes | |
int | firstF |
int | lastF |
MaterialLoader * | materials |
SceneLoader * | scene |
Definition at line 15 of file AnimLoader.h.
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.
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().
int rcrt::AnimLoader::firstF [private] |
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().