00001 #ifndef _VUVHIMAGE_H_ 00002 #define _VUVHIMAGE_H_ 00003 00004 #include "vuString.h" 00005 #include "vuSimpleTypes.h" 00006 00007 #define VH_MAGIC (dword)(0x494d4746) 00008 00011 class vuVHImage { 00012 00013 public: 00015 vuVHImage(); 00017 vuVHImage(const vuString& filename); 00019 virtual ~vuVHImage(); 00020 00022 bool loadSlice(const vuString& filename); 00023 /* Write one slice in fre.Z format. Not implemented! * 00024 bool saveSlice(const vuString& filename); */ 00026 bool magicMatch() { return magic == VH_MAGIC;} 00027 00029 dword getWidth() {return width; } 00031 dword getHeight() {return height; } 00034 dword getDepth() {return depth; } 00036 const char* getTextTable() {return txtTable; } 00044 const byte* getData() {return data; } 00045 00046 protected: 00049 dword magic; 00051 dword offset; 00053 dword width; 00055 dword height; 00057 dword depth; 00060 dword compressType; 00062 dword defaultWindowWidth; 00064 dword defaultLevelVal; 00066 dword defaultBGShade; 00068 dword overflowPixVal; 00070 dword underflowPixVal; 00072 dword blankLineTop; 00074 dword blankLineBot; 00076 word hdrVersion; 00078 word checksum; 00079 00081 char *txtTable; 00086 byte *data; 00087 }; 00088 00089 #endif