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

vtkPNMReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPNMReader.h,v $
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 =========================================================================*/
00050 #ifndef __vtkPNMReader_h
00051 #define __vtkPNMReader_h
00052 
00053 #include "vtkImageReader.h"
00054 
00055 class VTK_IO_EXPORT vtkPNMReader : public vtkImageReader
00056 {
00057 public:
00058   static vtkPNMReader *New();
00059   vtkTypeRevisionMacro(vtkPNMReader,vtkImageReader);
00060   virtual void PrintSelf(ostream& os, vtkIndent indent);
00061 
00062   int CanReadFile(const char* fname); 
00064 
00065   virtual const char* GetFileExtensions()
00066     {
00067       return ".pnm .pgm .ppm";
00068     }
00070 
00072 
00073   virtual const char* GetDescriptiveName()
00074     {
00075       return "PNM";
00076     }
00078   
00079 protected:
00080   vtkPNMReader() {};
00081   ~vtkPNMReader() {};
00082   void ExecuteInformation();
00083 private:
00084   vtkPNMReader(const vtkPNMReader&);  // Not implemented.
00085   void operator=(const vtkPNMReader&);  // Not implemented.
00086 };
00087 
00088 #endif
00089 
00090