VTK
vtkPNMWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPNMWriter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef vtkPNMWriter_h
27 #define vtkPNMWriter_h
28 
29 #include "vtkIOImageModule.h" // For export macro
30 #include "vtkImageWriter.h"
31 
32 class VTKIOIMAGE_EXPORT vtkPNMWriter : public vtkImageWriter
33 {
34 public:
35  static vtkPNMWriter *New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
39 protected:
41  ~vtkPNMWriter() override {}
42 
43  void WriteFile(
44  ostream *file, vtkImageData *data, int extent[6], int wExt[6]) override;
45  void WriteFileHeader(
46  ostream *, vtkImageData *, int wExt[6]) override;
47 private:
48  vtkPNMWriter(const vtkPNMWriter&) = delete;
49  void operator=(const vtkPNMWriter&) = delete;
50 };
51 
52 #endif
53 
54 
virtual void WriteFileHeader(ostream *, vtkImageData *, int[6])
~vtkPNMWriter() override
Definition: vtkPNMWriter.h:41
virtual void WriteFile(ostream *file, vtkImageData *data, int extent[6], 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:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
Writes PNM (portable any map) files.
Definition: vtkPNMWriter.h:32
Writes images to files.
static vtkImageWriter * New()