Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vuMap.h

Go to the documentation of this file.
00001 #ifndef _VUMAP_H_
00002 #define _VUMAP_H_
00003 
00004 #include <iostream>
00005 #include <vuSimpleTypes.h>
00006 
00007 using namespace std;
00008 
00014 class vuMap {
00015  public:
00017     vuMap();
00018     /*Destructor. */
00019     virtual ~vuMap();
00020 
00025     void createRamp(word start, word startval, word end, word endval);
00026 
00028     void createIdentity();
00029 
00030     //Other function for different kinds of mappings should be added
00031 
00034     word operator[](word index) const
00035         {return m_Map[index]; }
00038     word& operator[](word index)
00039         {return m_Map[index]; }
00040 
00041     friend ostream& operator<<(ostream& os, const vuMap& map);
00042 
00043     friend istream& operator>>(istream& is, vuMap& map);
00044 
00045  protected:
00047     word m_Map[1<<16];
00048 };
00049 
00050 #endif

Generated on Wed Dec 15 21:20:35 2004 for vuVolume by  doxygen 1.3.9.1