NaiveSpatialAccel.h

Go to the documentation of this file.
00001 /**<!-------------------------------------------------------------------->
00002    @class  NaiveSpatialAccel
00003    @author Travis Fischer (fisch0920@gmail.com)
00004    @date   Fall 2008
00005    
00006    @brief
00007       Naive/identity spatial acceleration (no acceleration) which runs through
00008    all primitives linearly when testing for intersections
00009    <!-------------------------------------------------------------------->**/
00010 
00011 #ifndef NAIVE_SPATIAL_ACCEL_H_
00012 #define NAIVE_SPATIAL_ACCEL_H_
00013 
00014 #include "accel/SpatialAccel.h"
00015 
00016 class NaiveSpatialAccel : public SpatialAccel {
00017    
00018    public:
00019       ///@name Constructors
00020       //@{-----------------------------------------------------------------
00021       
00022       explicit NaiveSpatialAccel()
00023          : SpatialAccel()
00024       { }
00025       
00026       virtual ~NaiveSpatialAccel()
00027       { }
00028       
00029       
00030       //@}-----------------------------------------------------------------
00031       ///@name Main usage interface
00032       //@{-----------------------------------------------------------------
00033       
00034       virtual real_t getIntersection(const Ray &ray, SurfacePoint &pt);
00035       
00036       virtual bool intersects(const Ray &ray, real_t tMax = INFINITY);
00037       
00038       
00039       //@}-----------------------------------------------------------------
00040 };
00041 
00042 #endif // NAIVE_SPATIAL_ACCEL_H_
00043 

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6