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) VTK_OVERRIDE;
38 
39 protected:
42 
43  virtual void WriteFile(
44  ofstream *file, vtkImageData *data, int extent[6], int wExt[6]);
45  virtual void WriteFileHeader(
46  ofstream *, vtkImageData *, int wExt[6]);
47 private:
48  vtkPNMWriter(const vtkPNMWriter&) VTK_DELETE_FUNCTION;
49  void operator=(const vtkPNMWriter&) VTK_DELETE_FUNCTION;
50 };
51 
52 #endif
53 
54 
virtual void WriteFile(ofstream *file, vtkImageData *data, int extent[6], int wExtent[6])
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()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void WriteFileHeader(ofstream *, vtkImageData *, int[6])