rcrt::LightLoader Class Reference

#include <LightLoader.h>

Inheritance diagram for rcrt::LightLoader:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LightLoader (std::string lightFile)
virtual ~LightLoader ()
LightgetLight ()
bool nextFrame ()
bool goToFrame (const int &n)

Private Member Functions

void init ()
void initPoint ()
void initArea ()
void initDir ()
void initSphere ()

Private Attributes

Lightlight
LightType type
std::string name
bool initialised


Detailed Description

Loads light data from xml.

Definition at line 21 of file LightLoader.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

Definition at line 110 of file LightLoader.cpp.

References light.

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.


Member Data Documentation

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]

Definition at line 25 of file LightLoader.h.

Referenced by init().

std::string rcrt::LightLoader::name [private]

Definition at line 26 of file LightLoader.h.

Referenced by init().

bool rcrt::LightLoader::initialised [private]

Definition at line 27 of file LightLoader.h.

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


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