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
26#ifndef vtkPNMReader_h
27#define vtkPNMReader_h
28
29#include "vtkIOImageModule.h" // For export macro
30#include "vtkImageReader.h"
31
32VTK_ABI_NAMESPACE_BEGIN
33class VTKIOIMAGE_EXPORT vtkPNMReader : public vtkImageReader
34{
35public:
36 static vtkPNMReader* New();
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
40 int CanReadFile(VTK_FILEPATH const char* fname) override;
44 const char* GetFileExtensions() override { return ".pnm .pgm .ppm"; }
45
49 const char* GetDescriptiveName() override { return "PNM"; }
50
51protected:
52 vtkPNMReader() = default;
53 ~vtkPNMReader() override = default;
54 void ExecuteInformation() override;
55
56private:
57 vtkPNMReader(const vtkPNMReader&) = delete;
58 void operator=(const vtkPNMReader&) = delete;
59};
60
61VTK_ABI_NAMESPACE_END
62#endif
Superclass of transformable binary file readers.
a simple class to control print indentation
Definition vtkIndent.h:29
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