#include <LightLoader.h>
Public Member Functions | |
LightLoader (std::string lightFile) | |
virtual | ~LightLoader () |
Light * | getLight () |
bool | nextFrame () |
bool | goToFrame (const int &n) |
Private Member Functions | |
void | init () |
void | initPoint () |
void | initArea () |
void | initDir () |
void | initSphere () |
Private Attributes | |
Light * | light |
LightType | type |
std::string | name |
bool | initialised |
Definition at line 21 of file LightLoader.h.
rcrt::LightLoader::LightLoader | ( | std::string | lightFile | ) |
Definition at line 9 of file LightLoader.cpp.
rcrt::LightLoader::~LightLoader | ( | ) | [virtual] |
Definition at line 13 of file LightLoader.cpp.
void rcrt::LightLoader::init | ( | ) | [private] |
Definition at line 17 of file LightLoader.cpp.
References rcrt::AREA, rcrt::DIR, initArea(), initDir(), initialised, initPoint(), initSphere(), name, rcrt::XMLLoader::nextStartTag(), rcrt::XMLLoader::parser, rcrt::POINT, rcrt::SPHERE, and type.
Referenced by goToFrame(), and nextFrame().
void rcrt::LightLoader::initPoint | ( | ) | [private] |
Definition at line 59 of file LightLoader.cpp.
References light, rcrt::XMLLoader::nextStartTag(), and rcrt::XMLLoader::parser.
Referenced by init().
void rcrt::LightLoader::initArea | ( | ) | [private] |
Definition at line 72 of file LightLoader.cpp.
References light, rcrt::XMLLoader::nextStartTag(), and rcrt::XMLLoader::parser.
Referenced by init().
void rcrt::LightLoader::initDir | ( | ) | [private] |
Definition at line 97 of file LightLoader.cpp.
References light, rcrt::XMLLoader::nextStartTag(), and rcrt::XMLLoader::parser.
Referenced by init().
void rcrt::LightLoader::initSphere | ( | ) | [private] |
Definition at line 42 of file LightLoader.cpp.
References light, rcrt::XMLLoader::nextStartTag(), and rcrt::XMLLoader::parser.
Referenced by init().
Light * rcrt::LightLoader::getLight | ( | ) |
bool rcrt::LightLoader::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 115 of file LightLoader.cpp.
References init(), and initialised.
bool rcrt::LightLoader::goToFrame | ( | const int & | n | ) | [virtual] |
Loads info of frame n.
Implements rcrt::XMLLoader.
Definition at line 122 of file LightLoader.cpp.
References init(), and initialised.
Light* rcrt::LightLoader::light [private] |
Definition at line 24 of file LightLoader.h.
Referenced by getLight(), initArea(), initDir(), initPoint(), and initSphere().
LightType rcrt::LightLoader::type [private] |
std::string rcrt::LightLoader::name [private] |
bool rcrt::LightLoader::initialised [private] |