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
32class VTKIOIMAGE_EXPORT vtkPNMWriter : public vtkImageWriter
33{
34public:
35 static vtkPNMWriter *New();
37 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
38
39protected:
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]);
47private:
48 vtkPNMWriter(const vtkPNMWriter&) VTK_DELETE_FUNCTION;
49 void operator=(const vtkPNMWriter&) VTK_DELETE_FUNCTION;
50};
51
52#endif
53
54
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
Writes images to files.
a simple class to control print indentation
Definition: vtkIndent.h:40
Writes PNM (portable any map) files.
Definition: vtkPNMWriter.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkPNMWriter * New()
virtual void WriteFile(ofstream *file, vtkImageData *data, int extent[6], int wExt[6])
virtual void WriteFileHeader(ofstream *, vtkImageData *, int wExt[6])
@ extent
Definition: vtkX3D.h:345
@ data
Definition: vtkX3D.h:315