VTK  9.0.1
vtkPNMReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPNMReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
35 #ifndef vtkPNMReader_h
36 #define vtkPNMReader_h
37 
38 #include "vtkIOImageModule.h" // For export macro
39 #include "vtkImageReader.h"
40 
41 class VTKIOIMAGE_EXPORT vtkPNMReader : public vtkImageReader
42 {
43 public:
44  static vtkPNMReader* New();
45  vtkTypeMacro(vtkPNMReader, vtkImageReader);
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
48  int CanReadFile(const char* fname) override;
52  const char* GetFileExtensions() override { return ".pnm .pgm .ppm"; }
53 
57  const char* GetDescriptiveName() override { return "PNM"; }
58 
59 protected:
61  ~vtkPNMReader() override {}
62  void ExecuteInformation() override;
63 
64 private:
65  vtkPNMReader(const vtkPNMReader&) = delete;
66  void operator=(const vtkPNMReader&) = delete;
67 };
68 
69 #endif
read pnm (i.e., portable anymap) files
Definition: vtkPNMReader.h:41
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:33
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:57
const char * GetFileExtensions() override
.pnm .pgm .ppm
Definition: vtkPNMReader.h:52
~vtkPNMReader() override
Definition: vtkPNMReader.h:61