Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ColorMap.h

00001 /*
00002   File: ColorMap.h
00003 
00004   Copyright(C) C. Kotterink, Computed Graphics
00005 */
00006 #ifndef COLORTABLE_H
00007 #define COLORTABLE_H
00008 
00009 #include<ObjectFile.h>
00010 #include<Color4.h>
00011 #include<real.h>
00012 
00015 class ColorMap
00016 {
00017     friend ostream &operator<<(ostream &stream, ColorMap &cm);
00018     friend ObjectFile &operator>>(ObjectFile &f, ColorMap &cm);
00019 public:
00020     ColorMap();
00021 
00022     void setRange(float from, float to, Color4 &f, Color4 &t);
00023     Color4 lookup(float f) const;
00024 
00025 private:
00026     static const unsigned int N = 100;
00027     Color4 table[N+1];
00028 };
00029 #endif

This documentation was generated using doxygen. If you have any comments or additions please mail me.