Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkMetaImageWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkMetaImageWriter.h,v $
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 =========================================================================*/
00074 #ifndef __vtkMetaImageWriter_h
00075 #define __vtkMetaImageWriter_h
00076 
00077 #include "vtkImageWriter.h"
00078 
00079 class VTK_IO_EXPORT vtkMetaImageWriter : public vtkImageWriter
00080 {
00081 public:
00082   vtkTypeRevisionMacro(vtkMetaImageWriter,vtkImageWriter);
00083   void PrintSelf(ostream& os, vtkIndent indent);
00084 
00086   static vtkMetaImageWriter *New();
00087 
00089 
00090   virtual void SetFileName(const char* fname);
00091   virtual char* GetFileName() { return this->MHDFileName; }
00093 
00095 
00096   virtual void SetRAWFileName(const char* fname);
00097   virtual char* GetRAWFileName();
00099 
00101   virtual void Write();
00102 
00103 protected:
00104   vtkMetaImageWriter();
00105   ~vtkMetaImageWriter();
00106 
00107   vtkSetStringMacro(MHDFileName);
00108   char* MHDFileName;
00109 
00110 private:
00111   vtkMetaImageWriter(const vtkMetaImageWriter&);  // Not implemented.
00112   void operator=(const vtkMetaImageWriter&);  // Not implemented.
00113 };
00114 
00115 #endif
00116 
00117 
00118