RayCaster.h

Go to the documentation of this file.
00001 /**<!-------------------------------------------------------------------->
00002    @class  RayCaster
00003    @author Travis Fischer (fisch0920@gmail.com)
00004    @author Matthew Jacobs (jacobs.mh@gmail.com)
00005    @date   Fall 2008
00006 
00007    @brief
00008       Simple, non-recursive raycaster
00009    <!-------------------------------------------------------------------->**/
00010 
00011 #ifndef RAY_CASTER_H_
00012 #define RAY_CASTER_H_
00013 
00014 #include <renderers/renderers/RayTracer.h>
00015 
00016 class RayCaster : public RayTracer {
00017    public:
00018       ///@name Constructors
00019       //@{-----------------------------------------------------------------
00020       
00021       inline RayCaster(RenderOutput *output = NULL, 
00022                        Camera *camera = NULL, 
00023                        Scene *scene = NULL)
00024          : RayTracer(output, camera, scene), 
00025            m_ambient(SpectralSampleSet::fill(0.1))
00026       { }
00027       
00028       virtual ~RayCaster()
00029       { }
00030       
00031       //@}-----------------------------------------------------------------
00032       
00033       virtual void init();
00034       
00035    protected:
00036       virtual void _evaluate(const Ray &ray, SpectralSampleSet &outRadiance, 
00037                              PropertyMap &data);
00038       
00039    protected:
00040       SpectralSampleSet m_ambient;
00041 };
00042 
00043 #endif // RAY_CASTER_H_
00044 

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6