VTK  9.1.0
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=========================================================================*/
52#ifndef vtkPNMWriter_h
53#define vtkPNMWriter_h
54
55#include "vtkIOImageModule.h" // For export macro
56#include "vtkImageWriter.h"
57
58class VTKIOIMAGE_EXPORT vtkPNMWriter : public vtkImageWriter
59{
60public:
61 static vtkPNMWriter* New();
63 void PrintSelf(ostream& os, vtkIndent indent) override;
64
65protected:
66 vtkPNMWriter() = default;
67 ~vtkPNMWriter() override = default;
68
69 void WriteFile(ostream* file, vtkImageData* data, int extent[6], int wExt[6]) override;
70 void WriteFileHeader(ostream*, vtkImageData*, int wExt[6]) override;
71
72private:
73 vtkPNMWriter(const vtkPNMWriter&) = delete;
74 void operator=(const vtkPNMWriter&) = delete;
75};
76
77#endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
Writes images to files.
a simple class to control print indentation
Definition: vtkIndent.h:113
Writes PNM (portable any map) files.
Definition: vtkPNMWriter.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPNMWriter()=default
void WriteFile(ostream *file, vtkImageData *data, int extent[6], int wExt[6]) override
void WriteFileHeader(ostream *, vtkImageData *, int wExt[6]) override
static vtkPNMWriter * New()
~vtkPNMWriter() override=default
@ extent
Definition: vtkX3D.h:351
@ data
Definition: vtkX3D.h:321