VTK  9.7.1
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 
32 VTK_ABI_NAMESPACE_BEGIN
33 class VTKIOIMAGE_EXPORT vtkPNMReader : public vtkImageReader
34 {
35 public:
36  static vtkPNMReader* New();
37  vtkTypeMacro(vtkPNMReader, vtkImageReader);
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41  int CanReadFile(VTK_FILEPATH const char* fname) override;
45  const char* GetFileExtensions() override { return ".pnm .pgm .ppm"; }
46 
50  const char* GetDescriptiveName() override { return "PNM"; }
51 
52 protected:
53  vtkPNMReader() = default;
54  ~vtkPNMReader() override = default;
55  void ExecuteInformation() override;
56 
57 private:
58  vtkPNMReader(const vtkPNMReader&) = delete;
59  void operator=(const vtkPNMReader&) = delete;
60 };
61 
62 VTK_ABI_NAMESPACE_END
63 #endif
read pnm (i.e., portable anymap) files
Definition: vtkPNMReader.h:33
static vtkImageReader * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
Superclass of transformable binary file readers.
virtual void ExecuteInformation()
int CanReadFile(const char *) override
vtkImageReader itself can read raw binary files.
const char * GetDescriptiveName() override
PNM.
Definition: vtkPNMReader.h:50
#define VTK_FILEPATH
const char * GetFileExtensions() override
.pnm .pgm .ppm
Definition: vtkPNMReader.h:45
virtual int CanReadFile(const char *fname)
Return non zero if the reader can read the given file name.