rcrt::XMLLoader Class Reference

#include <XMLLoader.h>

Inheritance diagram for rcrt::XMLLoader:

Inheritance graph
[legend]

List of all members.

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


Detailed Description

General base class of any loader. Provides file opening and reading functionality.

Definition at line 21 of file XMLLoader.h.


Constructor & Destructor Documentation

rcrt::XMLLoader::XMLLoader ( std::string  path  )  [protected]

Definition at line 11 of file XMLLoader.cpp.

References file, in, and isCompressed.

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

Definition at line 28 of file XMLLoader.cpp.


Member Function Documentation

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.

Returns:
false if there no start tag (with the given name) in the rest of the file

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().


Member Data Documentation

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]

Definition at line 25 of file XMLLoader.h.

Referenced by XMLLoader().

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]

Definition at line 27 of file XMLLoader.h.

Referenced by XMLLoader().

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().


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