00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkPostScriptWriter.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 =========================================================================*/ 00027 #ifndef __vtkPostScriptWriter_h 00028 #define __vtkPostScriptWriter_h 00029 00030 #include "vtkImageWriter.h" 00031 00032 class VTK_IO_EXPORT vtkPostScriptWriter : public vtkImageWriter 00033 { 00034 public: 00035 static vtkPostScriptWriter *New(); 00036 vtkTypeMacro(vtkPostScriptWriter,vtkImageWriter); 00037 virtual void PrintSelf(ostream& os, vtkIndent indent); 00038 00039 protected: 00040 vtkPostScriptWriter() {}; 00041 ~vtkPostScriptWriter() {}; 00042 00043 virtual void WriteFile(ofstream *file, vtkImageData *data, int extent[6]); 00044 virtual void WriteFileHeader(ofstream *, vtkImageData *); 00045 virtual void WriteFileTrailer(ofstream *, vtkImageData *); 00046 private: 00047 vtkPostScriptWriter(const vtkPostScriptWriter&); // Not implemented. 00048 void operator=(const vtkPostScriptWriter&); // Not implemented. 00049 }; 00050 00051 #endif 00052 00053