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

transfuncfile.h

Go to the documentation of this file.
00001 #ifndef __TRANSFUNCFILE_H__
00002 #define __TRANSFUNCFILE_H__
00003 
00004 #include "transfunc.h"
00005 #include <string>
00006 
00007 using std::string;
00008 
00009 
00010 class CTransfuncFile {
00011         
00012 
00013 #pragma pack (push)
00014 #pragma pack (1)
00015 
00016         struct {
00017                 BYTE m_pcName[10];
00018                 BYTE m_bNumber;
00019 
00020         } m_sTransHeader;
00021 
00022 
00023         struct {
00024                 int m_dBegin;
00025                 int m_dEnd;
00026                 BYTE m_pcAlpha;
00027                 COLORREF m_pColor;
00028         } m_sTransData;
00029 
00030 #pragma pack (pop)
00031 
00032         
00033 
00034 public:
00035 //      CTransfuncFile();
00036         
00037         INDEXLIST *LoadPresets(int &numPresets);
00038         
00039         INDEXLIST LoadTransferFunc(const char *filename, bool &success);
00040         void SaveTransferFunc(INDEXLIST &indexList, string filename);
00041 
00042 };
00043 
00044 
00045 
00046 #endif

Generated on Thu Jan 30 21:35:43 2003 for 3DVis by doxygen1.3-rc2