SampleGenerator.h

Go to the documentation of this file.
00001 
00006 #ifndef SAMPLEGENERATOR_H
00007 #define SAMPLEGENERATOR_H SAMPLEGENERATOR_H
00008 
00009 #include "StdDefs.h"
00010 
00015 class SampleGenerator
00016 {
00017 public:
00018 
00023     SampleGenerator()
00024     {
00025     }
00026 
00027     virtual ~SampleGenerator()
00028     {
00029     }
00030 
00031 
00040     virtual void GetSamples(int n, float* u, float* v, float* weight) const
00041     {
00042         for (int i=0; i < n; i++)
00043         {
00044             u[i] = 0.5;
00045             v[i] = 0.5;
00046             weight[i] = 1.0 / float(n);
00047         }
00048     }
00049 
00050 };
00051 
00052 #endif

Generated on Thu Jan 31 21:48:49 2008 for RayTracer by  doxygen 1.5.4