00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __mitkRawWriter_h
00012 #define __mitkRawWriter_h
00013
00014 #include "mitkVolumeWriter.h"
00015
00033 class MITK_COMMON_API mitkRawWriter : public mitkVolumeWriter
00034 {
00035 public:
00036 MITK_TYPE(mitkRawWriter,mitkVolumeWriter)
00037
00038 virtual void PrintSelf(ostream& os);
00039
00040 mitkRawWriter();
00041
00046 void SetEndian(bool isBig = false) { m_IsBigEndian = isBig; }
00047
00051 void SetBigEndian(bool isBig = true) { this->SetEndian(isBig); }
00052
00056 void SetLittleEndian(bool isBig = false) { this->SetEndian(isBig); }
00057
00066 void SetPlanarCfg(bool isColorByPlane) { m_IsColorByPlane = isColorByPlane; }
00067
00075 void SetTitleBytes(int n) { m_TitleBytes = n; }
00076
00077 protected:
00078 virtual ~mitkRawWriter();
00079
00080
00081
00082 virtual bool Execute();
00083
00084 bool m_IsBigEndian;
00085 bool m_IsColorByPlane;
00086 int m_TitleBytes;
00087
00088 private:
00089 mitkRawWriter(const mitkRawWriter&);
00090 void operator=(const mitkRawWriter&);
00091 };
00092
00093
00094
00095
00096
00097
00098
00099 #endif
00100