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 =========================================================================*/
25 #ifndef vtkPNMWriter_h
26 #define vtkPNMWriter_h
27 
28 #include "vtkIOImageModule.h" // For export macro
29 #include "vtkImageWriter.h"
30 
32 {
33 public:
34  static vtkPNMWriter *New();
36  virtual void PrintSelf(ostream& os, vtkIndent indent);
37 
38 protected:
41 
42  virtual void WriteFile(
43  ofstream *file, vtkImageData *data, int extent[6], int wExt[6]);
44  virtual void WriteFileHeader(
45  ofstream *, vtkImageData *, int wExt[6]);
46 private:
47  vtkPNMWriter(const vtkPNMWriter&); // Not implemented.
48  void operator=(const vtkPNMWriter&); // Not implemented.
49 };
50 
51 #endif
52 
53 
virtual void WriteFile(ofstream *file, vtkImageData *data, int extent[6], int wExtent[6])
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
Writes PNM (portable any map) files.
Definition: vtkPNMWriter.h:31
Writes images to files.
static vtkImageWriter * New()
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKIOIMAGE_EXPORT
virtual void WriteFileHeader(ofstream *, vtkImageData *, int[6])