00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __mitkBMPWriter_h
00012 #define __mitkBMPWriter_h
00013
00014 #include "mitkVolumeWriter.h"
00015
00031 class MITK_COMMON_API mitkBMPWriter : public mitkVolumeWriter
00032 {
00033 public:
00034 MITK_TYPE(mitkBMPWriter,mitkVolumeWriter)
00035
00036 virtual void PrintSelf(ostream& os);
00037
00038 mitkBMPWriter();
00039
00040 protected:
00041 virtual ~mitkBMPWriter();
00042
00043 virtual bool Execute();
00044
00045 #pragma pack(2)
00046 typedef struct tagBITMAPFILEHEADER
00047 {
00048 unsigned short bfType;
00049 unsigned long bfSize;
00050 unsigned short bfReserved1;
00051 unsigned short bfReserved2;
00052 unsigned long bfOffBits;
00053 unsigned long biSize;
00054 unsigned long biWidth;
00055 unsigned long biHeight;
00056 unsigned short biPlanes;
00057 unsigned short biBitCount;
00058 unsigned long biCompression;
00059 unsigned long biSizeImage;
00060 unsigned long biXPelsPerMeter;
00061 unsigned long biYPelsPerMeter;
00062 unsigned long biClrUsed;
00063 unsigned long biClrImportant;
00064 } BITMAPFILEHEADER;
00065 #pragma pack()
00066 private:
00067 mitkBMPWriter(const mitkBMPWriter&){};
00068 void operator=(const mitkBMPWriter&){};
00069
00070 };
00071
00072
00073 #endif
00074