Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/IO/vtkPNMReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPNMReader.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00041 #ifndef __vtkPNMReader_h
00042 #define __vtkPNMReader_h
00043 
00044 #include "vtkImageReader.h"
00045 
00046 class VTK_IO_EXPORT vtkPNMReader : public vtkImageReader
00047 {
00048 public:
00049   static vtkPNMReader *New();
00050   vtkTypeRevisionMacro(vtkPNMReader,vtkImageReader);
00051   virtual void PrintSelf(ostream& os, vtkIndent indent);
00052 
00053   int CanReadFile(const char* fname); 
00055 
00056   virtual const char* GetFileExensions()
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