VTK  9.4.20241014
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
43#ifndef vtkPNMWriter_h
44#define vtkPNMWriter_h
45
46#include "vtkIOImageModule.h" // For export macro
47#include "vtkImageWriter.h"
48
49VTK_ABI_NAMESPACE_BEGIN
50class VTKIOIMAGE_EXPORT vtkPNMWriter : public vtkImageWriter
51{
52public:
53 static vtkPNMWriter* New();
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
57protected:
58 vtkPNMWriter() = default;
59 ~vtkPNMWriter() override = default;
60
61 void WriteFile(ostream* file, vtkImageData* data, int extent[6], int wExt[6]) override;
62 void WriteFileHeader(ostream*, vtkImageData*, int wExt[6]) override;
63
64private:
65 vtkPNMWriter(const vtkPNMWriter&) = delete;
66 void operator=(const vtkPNMWriter&) = delete;
67};
68
69VTK_ABI_NAMESPACE_END
70#endif
topologically and geometrically regular array of data
Writes images to files.
a simple class to control print indentation
Definition vtkIndent.h:108
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