00001
00002
00003
00004
00005
00006
00007
00008
00009
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