Render::Photon Class Reference

#include <Photon.hh>

Collaboration diagram for Render::Photon:

Collaboration graph
[legend]

List of all members.


Detailed Description

Photon Class.

Class abstracts a photon illuminating some part of the scene. It's created in a process of tracing rays shot from a light source and stored in a structure suitable for Nearest Neighboor algorithm (kd-tree).

Definition at line 32 of file Photon.hh.


Public Member Functions

 Photon (const Math::Vector &Position, const World::Color &Color)
const Math::VectorGetPosition ()
const World::ColorGetColor ()
Double GetIntensity ()

Protected Attributes

Math::Vector Position
World::Color Color
Double Intensity

Constructor & Destructor Documentation

Render::Photon::Photon ( const Math::Vector Position,
const World::Color Color 
) [inline]

Initialize photon

Definition at line 44 of file Photon.hh.


Member Function Documentation

const Math::Vector& Render::Photon::GetPosition (  )  [inline]

Photon position accessor

Definition at line 49 of file Photon.hh.

References Position.

const World::Color& Render::Photon::GetColor (  )  [inline]

Photon color accessor

Definition at line 55 of file Photon.hh.

References Color.

Double Render::Photon::GetIntensity (  )  [inline]

Photon intensity accessor

Definition at line 61 of file Photon.hh.

References Intensity.


Member Data Documentation

Photon position

Definition at line 35 of file Photon.hh.

Referenced by GetPosition().

Photon color; wonder if it will be used

Definition at line 38 of file Photon.hh.

Referenced by GetColor().

Double Render::Photon::Intensity [protected]

Needed for luminance calculations

Definition at line 41 of file Photon.hh.

Referenced by GetIntensity().


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

Generated on Wed Mar 12 00:35:45 2008 for blaRAY by  doxygen 1.5.5