VTK  9.7.1
vtkPostScriptWriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
16 #ifndef vtkPostScriptWriter_h
17 #define vtkPostScriptWriter_h
18 
19 #include "vtkIOImageModule.h" // For export macro
20 #include "vtkImageWriter.h"
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class VTKIOIMAGE_EXPORT vtkPostScriptWriter : public vtkImageWriter
24 {
25 public:
26  static vtkPostScriptWriter* New();
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
30 protected:
31  vtkPostScriptWriter() = default;
32  ~vtkPostScriptWriter() override = default;
33 
34  void WriteFile(ostream* file, vtkImageData* data, VTK_FUTURE_CONST int extent[6],
35  VTK_FUTURE_CONST int wExt[6]) override;
36  void WriteFileHeader(ostream*, vtkImageData*, VTK_FUTURE_CONST int wExt[6]) override;
37  void WriteFileTrailer(ostream*, vtkImageData*) override;
38 
39 private:
41  void operator=(const vtkPostScriptWriter&) = delete;
42 };
43 
44 VTK_ABI_NAMESPACE_END
45 #endif
virtual void WriteFile(ostream *file, vtkImageData *data, VTK_FUTURE_CONST int extent[6], VTK_FUTURE_CONST int wExtent[6])
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
Writes images to files.
static vtkImageWriter * New()
Writes an image as a PostScript file.
virtual void WriteFileHeader(ostream *, vtkImageData *, VTK_FUTURE_CONST int[6])
virtual void WriteFileTrailer(ostream *, vtkImageData *)