World::Light Class Reference

#include <Light.hh>

Inheritance diagram for World::Light:

Inheritance graph
[legend]
Collaboration diagram for World::Light:

Collaboration graph
[legend]

List of all members.


Detailed Description

Light interface.

Class has to abstract access to any light source - point, spherical, plane used both in raytracer and photon mapper.

Definition at line 30 of file Light.hh.


Public Member Functions

 Light (const Color &C)
virtual ~Light ()
const ColorGetColor () const

Protected Member Functions

virtual std::string Dump () const =0

Protected Attributes

const Color C

Friends

std::ostream & operator<< (std::ostream &os, const Light &L)

Constructor & Destructor Documentation

World::Light::Light ( const Color C  )  [inline]

Construct light

Definition at line 39 of file Light.hh.

virtual World::Light::~Light (  )  [inline, virtual]

Compulsory virtual destructor

Definition at line 44 of file Light.hh.


Member Function Documentation

virtual std::string World::Light::Dump (  )  const [protected, pure virtual]

Debug function

Implemented in World::PointLight, and World::AmbientLight.

Referenced by World::operator<<().

Here is the caller graph for this function:

const Color& World::Light::GetColor (  )  const [inline]

Returns light color

Definition at line 47 of file Light.hh.

References C.

Referenced by Render::Raytracer::TraceLights().

Here is the caller graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Light L 
) [friend]

Pretty-printer

Definition at line 22 of file Light.cc.


Member Data Documentation

const Color World::Light::C [protected]

Light color

Definition at line 33 of file Light.hh.

Referenced by World::AmbientLight::Dump(), World::PointLight::Dump(), and GetColor().


The documentation for this class was generated from the following file:

Generated on Wed Mar 12 00:36:21 2008 for blaRAY by  doxygen 1.5.5