00001 #ifndef NOISE_H 00002 #define NOISE_H 00003 00004 #include "raytrace_defs.h" 00005 #include "point3d.h" 00006 00010 const int MAX_NOISE = 20; 00011 00012 class Noise 00013 { 00014 public: 00015 00017 Noise() { init_noise(0); } 00018 00020 Noise(int seed) { init_noise(seed); } 00021 00027 00028 double get_noise(const Point3D& point) const ; 00029 protected: 00031 void init_noise(int seed); 00032 00035 int m_noiseMatrix [MAX_NOISE][MAX_NOISE][MAX_NOISE]; 00036 00037 }; 00038 00039 #endif