VTK  9.3.0
vtkPNMWriter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
14#ifndef vtkPNMWriter_h
15#define vtkPNMWriter_h
16
17#include "vtkIOImageModule.h" // For export macro
18#include "vtkImageWriter.h"
19
20VTK_ABI_NAMESPACE_BEGIN
21class VTKIOIMAGE_EXPORT vtkPNMWriter : public vtkImageWriter
22{
23public:
24 static vtkPNMWriter* New();
26 void PrintSelf(ostream& os, vtkIndent indent) override;
27
28protected:
29 vtkPNMWriter() = default;
30 ~vtkPNMWriter() override = default;
31
32 void WriteFile(ostream* file, vtkImageData* data, int extent[6], int wExt[6]) override;
33 void WriteFileHeader(ostream*, vtkImageData*, int wExt[6]) override;
34
35private:
36 vtkPNMWriter(const vtkPNMWriter&) = delete;
37 void operator=(const vtkPNMWriter&) = delete;
38};
39
40VTK_ABI_NAMESPACE_END
41#endif
topologically and geometrically regular array of data
Writes images to files.
a simple class to control print indentation
Definition vtkIndent.h:29
Writes PNM (portable any map) files.
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