VTK
dox/IO/Image/vtkMetaImageWriter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkMetaImageWriter.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00064 #ifndef __vtkMetaImageWriter_h
00065 #define __vtkMetaImageWriter_h
00066 
00067 #include "vtkIOImageModule.h" // For export macro
00068 #include "vtkImageWriter.h"
00069 
00070 //BTX
00071 namespace vtkmetaio { class MetaImage; } // forward declaration
00072 //ETX
00073 
00074 class VTKIOIMAGE_EXPORT vtkMetaImageWriter : public vtkImageWriter
00075 {
00076 public:
00077   vtkTypeMacro(vtkMetaImageWriter,vtkImageWriter);
00078   void PrintSelf(ostream& os, vtkIndent indent);
00079 
00081   static vtkMetaImageWriter *New();
00082 
00084 
00085   virtual void SetFileName(const char* fname);
00086   virtual char* GetFileName() { return this->MHDFileName; }
00088 
00090 
00091   virtual void SetRAWFileName(const char* fname);
00092   virtual char* GetRAWFileName();
00094 
00095   virtual void SetCompression( bool compress )
00096     {
00097     this->Compress = compress;
00098     }
00099   virtual bool GetCompression( void )
00100     {
00101     return this->Compress;
00102     }
00103 
00104   // This is called by the superclass.
00105   // This is the method you should override.
00106   virtual void Write();
00107 
00108 protected:
00109   vtkMetaImageWriter();
00110   ~vtkMetaImageWriter();
00111 
00112   vtkSetStringMacro(MHDFileName);
00113   char* MHDFileName;
00114   bool Compress;
00115 
00116 private:
00117   vtkMetaImageWriter(const vtkMetaImageWriter&);  // Not implemented.
00118   void operator=(const vtkMetaImageWriter&);  // Not implemented.
00119 
00120 //BTX
00121   vtkmetaio::MetaImage * MetaImagePtr;
00122 //ETX
00123 
00124 };
00125 
00126 #endif
00127 
00128 
00129