Photon.hh

00001 /**********************************************************************
00002  * blaRAY -- photon mapper/raytracer
00003  * (C) 2008 by Tomasz bla Fortuna <bla@thera.be>, <bla@af.gliwice.pl>
00004  *
00005  * This program is free software: you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation, either version 3 of the License, or
00008  * any later version.
00009  *
00010  * See Docs/LICENSE
00011  *********************/
00012 
00013 #ifndef _PHOTON_H_
00014 #define _PHOTON_H_
00015 
00016 #include "Math/Vector.hh"
00017 #include "World/Color.hh"
00018 
00019 namespace Render {
00020 
00032         class Photon {
00033         protected:
00035                 Math::Vector Position;
00036 
00038                 World::Color Color;
00039 
00041                 Double Intensity;
00042         public:
00044                 Photon(const Math::Vector &Position, const World::Color &Color)
00045                         : Position(Position), Color(Color) {}
00046 
00047 
00049                 inline const Math::Vector &GetPosition()
00050                 {
00051                         return Position;
00052                 }
00053 
00055                 inline const World::Color &GetColor()
00056                 {
00057                         return Color;
00058                 }
00059 
00061                 inline Double GetIntensity()
00062                 {
00063                         return Intensity;
00064                 }
00065         };
00066 }
00067 
00068 #endif

Generated on Wed Mar 12 00:34:58 2008 for blaRAY by  doxygen 1.5.5