VTK
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();
46  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
47 
48  int CanReadFile(const char* fname) VTK_OVERRIDE;
52  const char* GetFileExtensions() VTK_OVERRIDE
53  {
54  return ".pnm .pgm .ppm";
55  }
56 
60  const char* GetDescriptiveName() VTK_OVERRIDE
61  {
62  return "PNM";
63  }
64 
65 protected:
67  ~vtkPNMReader() VTK_OVERRIDE {}
68  void ExecuteInformation() VTK_OVERRIDE;
69 private:
70  vtkPNMReader(const vtkPNMReader&) VTK_DELETE_FUNCTION;
71  void operator=(const vtkPNMReader&) VTK_DELETE_FUNCTION;
72 };
73 
74 #endif
75 
76 
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.
virtual int CanReadFile(const char *vtkNotUsed(fname))
Return non zero if the reader can read the given file name.
a simple class to control print indentation
Definition: vtkIndent.h:33
Superclass of transformable binary file readers.
virtual void ExecuteInformation()
const char * GetDescriptiveName() override
PNM.
Definition: vtkPNMReader.h:60
const char * GetFileExtensions() override
.pnm .pgm .ppm
Definition: vtkPNMReader.h:52
~vtkPNMReader() override
Definition: vtkPNMReader.h:67