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 =========================================================================*/
41 #ifndef vtkPNMReader_h
42 #define vtkPNMReader_h
43 
44 #include "vtkIOImageModule.h" // For export macro
45 #include "vtkImageReader.h"
46 
47 class VTKIOIMAGE_EXPORT vtkPNMReader : public vtkImageReader
48 {
49 public:
50  static vtkPNMReader *New();
52  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
53 
54  int CanReadFile(const char* fname);
58  virtual const char* GetFileExtensions()
59  {
60  return ".pnm .pgm .ppm";
61  }
62 
66  virtual const char* GetDescriptiveName()
67  {
68  return "PNM";
69  }
70 
71 protected:
74  void ExecuteInformation();
75 private:
76  vtkPNMReader(const vtkPNMReader&) VTK_DELETE_FUNCTION;
77  void operator=(const vtkPNMReader&) VTK_DELETE_FUNCTION;
78 };
79 
80 #endif
81 
82 
virtual const char * GetFileExtensions()
.pnm .pgm .ppm
Definition: vtkPNMReader.h:58
read pnm (i.e., portable anymap) files
Definition: vtkPNMReader.h:47
static vtkImageReader * New()
virtual const char * GetDescriptiveName()
PNM.
Definition: vtkPNMReader.h:66
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:39
Superclass of transformable binary file readers.
virtual void ExecuteInformation()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.