1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkPostScriptWriter.h,v $
6 Date: $Date: 2002/08/13 17:14:29 $
7 Version: $Revision: 1.18 $
9 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
11 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notice for more information.
17 =========================================================================*/
18 // .NAME vtkPostScriptWriter - Writes an image as a PostScript file.
19 // .SECTION Description
20 // vtkPostScriptWriter writes an image as a PostScript file using some
21 // reasonable scalings and centered on the page which is assumed to be
22 // about 8.5 by 11 inches. This is based loosely off of the code from
23 // pnmtops.c. Right now there aren't any real options.
26 #ifndef __vtkPostScriptWriter_h
27 #define __vtkPostScriptWriter_h
29 #include "vtkImageWriter.h"
31 class VTK_IO_EXPORT vtkPostScriptWriter : public vtkImageWriter
34 static vtkPostScriptWriter *New();
35 vtkTypeRevisionMacro(vtkPostScriptWriter,vtkImageWriter);
36 virtual void PrintSelf(ostream& os, vtkIndent indent);
39 vtkPostScriptWriter() {};
40 ~vtkPostScriptWriter() {};
42 virtual void WriteFile(ofstream *file, vtkImageData *data, int extent[6]);
43 virtual void WriteFileHeader(ofstream *, vtkImageData *);
44 virtual void WriteFileTrailer(ofstream *, vtkImageData *);
46 vtkPostScriptWriter(const vtkPostScriptWriter&); // Not implemented.
47 void operator=(const vtkPostScriptWriter&); // Not implemented.