Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

mitkRawWriter.h

00001 /*=========================================================================
00002 
00003   Program:   3DMed
00004   Date:      $Date: 2014-02-25 18:30:00 +0800 $
00005   Version:   $Version: 4.6.0 $
00006   Copyright: MIPG, Institute of Automation, Chinese Academy of Sciences
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     // Overriding.
00081     // Execute the reading operation.
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 //#define DEFINED_mitkRawWriter
00096 
00097 
00098 
00099 #endif
00100 

Generated on Tue Feb 25 15:00:37 2014 for MITK (Medical Imaging ToolKit) by  doxygen 1.4.3