VTK
dox/IO/Image/vtkPNMWriter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPNMWriter.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 =========================================================================*/
00025 #ifndef __vtkPNMWriter_h
00026 #define __vtkPNMWriter_h
00027 
00028 #include "vtkIOImageModule.h" // For export macro
00029 #include "vtkImageWriter.h"
00030 
00031 class VTKIOIMAGE_EXPORT vtkPNMWriter : public vtkImageWriter
00032 {
00033 public:
00034   static vtkPNMWriter *New();
00035   vtkTypeMacro(vtkPNMWriter,vtkImageWriter);
00036   virtual void PrintSelf(ostream& os, vtkIndent indent);
00037 
00038 protected:
00039   vtkPNMWriter() {}
00040   ~vtkPNMWriter() {}
00041 
00042   virtual void WriteFile(
00043     ofstream *file, vtkImageData *data, int extent[6], int wExt[6]);
00044   virtual void WriteFileHeader(
00045     ofstream *, vtkImageData *, int wExt[6]);
00046 private:
00047   vtkPNMWriter(const vtkPNMWriter&);  // Not implemented.
00048   void operator=(const vtkPNMWriter&);  // Not implemented.
00049 };
00050 
00051 #endif
00052 
00053