OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I686LINUX / util / I686LINUX / include / vtk / vtkPostScriptWriter.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkPostScriptWriter.h,v $
5   Language:  C++
6   Date:      $Date: 2002/08/13 17:14:29 $
7   Version:   $Revision: 1.18 $
8
9   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
10   All rights reserved.
11   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
12
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.
16
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.
24
25
26 #ifndef __vtkPostScriptWriter_h
27 #define __vtkPostScriptWriter_h
28
29 #include "vtkImageWriter.h"
30
31 class VTK_IO_EXPORT vtkPostScriptWriter : public vtkImageWriter
32 {
33 public:
34   static vtkPostScriptWriter *New();
35   vtkTypeRevisionMacro(vtkPostScriptWriter,vtkImageWriter);
36   virtual void PrintSelf(ostream& os, vtkIndent indent);
37
38 protected:
39   vtkPostScriptWriter() {};
40   ~vtkPostScriptWriter() {};
41
42   virtual void WriteFile(ofstream *file, vtkImageData *data, int extent[6]);
43   virtual void WriteFileHeader(ofstream *, vtkImageData *);
44   virtual void WriteFileTrailer(ofstream *, vtkImageData *);
45 private:
46   vtkPostScriptWriter(const vtkPostScriptWriter&);  // Not implemented.
47   void operator=(const vtkPostScriptWriter&);  // Not implemented.
48 };
49
50 #endif
51
52