#include <XMLLoader.h>
Public Member Functions | |
virtual | ~XMLLoader () |
virtual bool | goToFrame (const int &n)=0 |
virtual bool | nextFrame ()=0 |
const int & | getFrame () |
Protected Member Functions | |
XMLLoader (std::string path) | |
bool | nextStartTag (std::string tagName) |
Protected Attributes | |
boost::iostreams::file_source | file |
boost::iostreams::filtering_stream < boost::iostreams::input > | in |
XmlPullParser | parser |
bool | isCompressed |
int | currentFrame |
bool | eof |
Definition at line 21 of file XMLLoader.h.
rcrt::XMLLoader::XMLLoader | ( | std::string | path | ) | [protected] |
rcrt::XMLLoader::~XMLLoader | ( | ) | [virtual] |
Definition at line 28 of file XMLLoader.cpp.
bool rcrt::XMLLoader::nextStartTag | ( | std::string | tagName | ) | [protected] |
Move the parser to the next opening tag with the given name. An empty string("") just moves it to the next oponening tag.
Definition at line 32 of file XMLLoader.cpp.
References parser.
Referenced by rcrt::AnimLoader::AnimLoader(), rcrt::ObjectLoader::goToFrame(), rcrt::CameraLoader::goToFrame(), rcrt::SceneLoader::init(), rcrt::ObjectLoader::init(), rcrt::MaterialLoader::init(), rcrt::LightLoader::init(), rcrt::CameraLoader::init(), rcrt::LightLoader::initArea(), rcrt::MaterialLoader::initBSDF(), rcrt::SceneLoader::initCameras(), rcrt::MaterialLoader::initDielectric(), rcrt::LightLoader::initDir(), rcrt::MaterialLoader::initFloor(), rcrt::MaterialLoader::initImg(), rcrt::SceneLoader::initLights(), rcrt::ObjectLoader::initMaterials(), rcrt::SceneLoader::initObjects(), rcrt::LightLoader::initPoint(), rcrt::LightLoader::initSphere(), rcrt::MaterialLoader::initWall(), rcrt::MaterialLoader::initWater(), rcrt::MaterialLoader::initWood(), rcrt::MaterialLoader::loadCookT(), rcrt::MaterialLoader::loadLambert(), rcrt::MaterialLoader::loadPhong(), rcrt::ObjectLoader::nextFrame(), rcrt::CameraLoader::nextFrame(), rcrt::ObjectLoader::updateMatrix(), and rcrt::ObjectLoader::updateMesh().
virtual bool rcrt::XMLLoader::goToFrame | ( | const int & | n | ) | [pure virtual] |
Loads info of frame n.
Implemented in rcrt::AnimLoader, rcrt::CameraLoader, rcrt::LightLoader, rcrt::MaterialLoader, rcrt::ObjectLoader, and rcrt::SceneLoader.
virtual bool rcrt::XMLLoader::nextFrame | ( | ) | [pure 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.
Implemented in rcrt::AnimLoader, rcrt::CameraLoader, rcrt::LightLoader, rcrt::MaterialLoader, rcrt::ObjectLoader, and rcrt::SceneLoader.
const int & rcrt::XMLLoader::getFrame | ( | ) |
Definition at line 58 of file XMLLoader.cpp.
References currentFrame.
Referenced by rcrtAnim(), testPhoton(), and testPhotonRCRT().
boost::iostreams::file_source rcrt::XMLLoader::file [protected] |
Definition at line 24 of file XMLLoader.h.
Referenced by rcrt::MaterialLoader::initImg(), and XMLLoader().
boost::iostreams::filtering_stream<boost::iostreams::input> rcrt::XMLLoader::in [protected] |
XmlPullParser rcrt::XMLLoader::parser [protected] |
Definition at line 26 of file XMLLoader.h.
Referenced by rcrt::AnimLoader::AnimLoader(), rcrt::ObjectLoader::goToFrame(), rcrt::CameraLoader::goToFrame(), rcrt::SceneLoader::init(), rcrt::ObjectLoader::init(), rcrt::MaterialLoader::init(), rcrt::LightLoader::init(), rcrt::CameraLoader::init(), rcrt::LightLoader::initArea(), rcrt::MaterialLoader::initBSDF(), rcrt::SceneLoader::initCameras(), rcrt::MaterialLoader::initDielectric(), rcrt::LightLoader::initDir(), rcrt::MaterialLoader::initFloor(), rcrt::MaterialLoader::initImg(), rcrt::SceneLoader::initLights(), rcrt::ObjectLoader::initMaterials(), rcrt::SceneLoader::initObjects(), rcrt::LightLoader::initPoint(), rcrt::LightLoader::initSphere(), rcrt::MaterialLoader::initWall(), rcrt::MaterialLoader::initWater(), rcrt::MaterialLoader::initWood(), rcrt::MaterialLoader::loadCookT(), rcrt::MaterialLoader::loadLambert(), rcrt::MaterialLoader::loadPhong(), rcrt::ObjectLoader::nextFrame(), rcrt::CameraLoader::nextFrame(), nextStartTag(), rcrt::ObjectLoader::updateMatrix(), and rcrt::ObjectLoader::updateMesh().
bool rcrt::XMLLoader::isCompressed [protected] |
int rcrt::XMLLoader::currentFrame [protected] |
Definition at line 28 of file XMLLoader.h.
Referenced by rcrt::AnimLoader::AnimLoader(), getFrame(), rcrt::SceneLoader::goToFrame(), rcrt::ObjectLoader::goToFrame(), rcrt::CameraLoader::goToFrame(), rcrt::AnimLoader::goToFrame(), rcrt::SceneLoader::nextFrame(), rcrt::ObjectLoader::nextFrame(), rcrt::CameraLoader::nextFrame(), rcrt::AnimLoader::nextFrame(), and rcrt::ObjectLoader::updateMesh().
bool rcrt::XMLLoader::eof [protected] |
Definition at line 29 of file XMLLoader.h.
Referenced by rcrt::ObjectLoader::goToFrame(), rcrt::CameraLoader::goToFrame(), rcrt::MaterialLoader::initBSDF(), rcrt::ObjectLoader::nextFrame(), rcrt::CameraLoader::nextFrame(), rcrt::ObjectLoader::updateMatrix(), and rcrt::ObjectLoader::updateMesh().