00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkPNMWriter.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00040 #ifndef __vtkPNMWriter_h 00041 #define __vtkPNMWriter_h 00042 00043 #include "vtkImageWriter.h" 00044 00045 class VTK_IO_EXPORT vtkPNMWriter : public vtkImageWriter 00046 { 00047 public: 00048 static vtkPNMWriter *New(); 00049 vtkTypeRevisionMacro(vtkPNMWriter,vtkImageWriter); 00050 virtual void PrintSelf(ostream& os, vtkIndent indent); 00051 00052 protected: 00053 vtkPNMWriter() {}; 00054 ~vtkPNMWriter() {}; 00055 00056 virtual void WriteFile(ofstream *file, vtkImageData *data, int extent[6]); 00057 virtual void WriteFileHeader(ofstream *, vtkImageData *); 00058 private: 00059 vtkPNMWriter(const vtkPNMWriter&); // Not implemented. 00060 void operator=(const vtkPNMWriter&); // Not implemented. 00061 }; 00062 00063 #endif 00064 00065