VTK  9.3.0
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
35#ifndef vtkPNMReader_h
36#define vtkPNMReader_h
37
38#include "vtkIOImageModule.h" // For export macro
39#include "vtkImageReader.h"
40
41VTK_ABI_NAMESPACE_BEGIN
42class VTKIOIMAGE_EXPORT vtkPNMReader : public vtkImageReader
43{
44public:
45 static vtkPNMReader* New();
47 void PrintSelf(ostream& os, vtkIndent indent) override;
48
49 int CanReadFile(VTK_FILEPATH const char* fname) override;
53 const char* GetFileExtensions() override { return ".pnm .pgm .ppm"; }
54
58 const char* GetDescriptiveName() override { return "PNM"; }
59
60protected:
61 vtkPNMReader() = default;
62 ~vtkPNMReader() override = default;
63 void ExecuteInformation() override;
64
65private:
66 vtkPNMReader(const vtkPNMReader&) = delete;
67 void operator=(const vtkPNMReader&) = delete;
68};
69
70VTK_ABI_NAMESPACE_END
71#endif
Superclass of transformable binary file readers.
a simple class to control print indentation
Definition vtkIndent.h:38
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