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 =========================================================================*/
40 #ifndef vtkPNMReader_h
41 #define vtkPNMReader_h
42 
43 #include "vtkIOImageModule.h" // For export macro
44 #include "vtkImageReader.h"
45 
47 {
48 public:
49  static vtkPNMReader *New();
51  virtual void PrintSelf(ostream& os, vtkIndent indent);
52 
53  int CanReadFile(const char* fname);
55 
56  virtual const char* GetFileExtensions()
57  {
58  return ".pnm .pgm .ppm";
59  }
61 
63 
64  virtual const char* GetDescriptiveName()
65  {
66  return "PNM";
67  }
69 
70 protected:
73  void ExecuteInformation();
74 private:
75  vtkPNMReader(const vtkPNMReader&); // Not implemented.
76  void operator=(const vtkPNMReader&); // Not implemented.
77 };
78 
79 #endif
80 
81 
virtual const char * GetFileExtensions()
Definition: vtkPNMReader.h:56
read pnm (i.e., portable anymap) files
Definition: vtkPNMReader.h:46
static vtkImageReader * New()
virtual const char * GetDescriptiveName()
Definition: vtkPNMReader.h:64
virtual int CanReadFile(const char *vtkNotUsed(fname))
a simple class to control print indentation
Definition: vtkIndent.h:38
Superclass of transformable binary file readers.
virtual void ExecuteInformation()
#define VTKIOIMAGE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)