VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkPNMReader.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00040 #ifndef __vtkPNMReader_h 00041 #define __vtkPNMReader_h 00042 00043 #include "vtkIOImageModule.h" // For export macro 00044 #include "vtkImageReader.h" 00045 00046 class VTKIOIMAGE_EXPORT vtkPNMReader : public vtkImageReader 00047 { 00048 public: 00049 static vtkPNMReader *New(); 00050 vtkTypeMacro(vtkPNMReader,vtkImageReader); 00051 virtual void PrintSelf(ostream& os, vtkIndent indent); 00052 00053 int CanReadFile(const char* fname); 00055 00056 virtual const char* GetFileExtensions() 00057 { 00058 return ".pnm .pgm .ppm"; 00059 } 00061 00063 00064 virtual const char* GetDescriptiveName() 00065 { 00066 return "PNM"; 00067 } 00069 00070 protected: 00071 vtkPNMReader() {} 00072 ~vtkPNMReader() {} 00073 void ExecuteInformation(); 00074 private: 00075 vtkPNMReader(const vtkPNMReader&); // Not implemented. 00076 void operator=(const vtkPNMReader&); // Not implemented. 00077 }; 00078 00079 #endif 00080 00081