ColorMap.h

00001 /*************************************************************************************************
00002  *
00003  * Modeling and animation (TNM079) 2007
00004  * Code base for lab assignments. Copyright:
00005  *   Gunnar Johansson (gunnar.johansson@itn.liu.se)
00006  *   Ken Museth (ken.museth@itn.liu.se)
00007  *   Michael Bang Nielsen (bang@daimi.au.dk)
00008  *   Ola Nilsson (ola.nilsson@itn.liu.se)
00009  *   Andreas Söderström (andreas.soderstrom@itn.liu.se)
00010  *
00011  *************************************************************************************************/
00012 #ifndef __COLOR_MAP_H__
00013 #define __COLOR_MAP_H__
00014 
00015 #include "Vector3.h"
00016 #include "Util.h"
00017 #include <vector>
00018 class ColorMap{
00019 public:
00020   ColorMap();
00021   ~ColorMap() {}
00022         
00023   Vector3<float> map(float val, float low, float high) const;
00024   Vector3<float> map(Vector3<float> val, float low, float high) const;
00025 
00026 private:                
00027   std::vector<Vector3<float> > colors;
00028 };
00029 
00030 #endif

Generated on Fri Jul 20 23:57:42 2007 for HalfEdge by  doxygen 1.5.1