VTK  9.3.20240425
vtkPNMReader.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
65#ifndef vtkPNMReader_h
66#define vtkPNMReader_h
67
68#include "vtkIOImageModule.h" // For export macro
69#include "vtkImageReader.h"
70
71VTK_ABI_NAMESPACE_BEGIN
72class VTKIOIMAGE_EXPORT vtkPNMReader : public vtkImageReader
73{
74public:
75 static vtkPNMReader* New();
77 void PrintSelf(ostream& os, vtkIndent indent) override;
78
79 int CanReadFile(VTK_FILEPATH const char* fname) override;
83 const char* GetFileExtensions() override { return ".pnm .pgm .ppm"; }
84
88 const char* GetDescriptiveName() override { return "PNM"; }
89
90protected:
91 vtkPNMReader() = default;
92 ~vtkPNMReader() override = default;
93 void ExecuteInformation() override;
94
95private:
96 vtkPNMReader(const vtkPNMReader&) = delete;
97 void operator=(const vtkPNMReader&) = delete;
98};
99
100VTK_ABI_NAMESPACE_END
101#endif
Superclass of transformable binary file readers.
a simple class to control print indentation
Definition vtkIndent.h:108
read pnm (i.e., portable anymap) files
int CanReadFile(VTK_FILEPATH const char *fname) override
vtkPNMReader()=default
const char * GetDescriptiveName() override
PNM.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ExecuteInformation() override
const char * GetFileExtensions() override
.pnm .pgm .ppm
static vtkPNMReader * New()
~vtkPNMReader() override=default
#define VTK_FILEPATH