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

IO/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 =========================================================================*/
00037 #ifndef __vtkPNMReader_h
00038 #define __vtkPNMReader_h
00039 
00040 #include "vtkImageReader.h"
00041 
00042 class VTK_IO_EXPORT vtkPNMReader : public vtkImageReader
00043 {
00044 public:
00045   static vtkPNMReader *New();
00046   vtkTypeRevisionMacro(vtkPNMReader,vtkImageReader);
00047   virtual void PrintSelf(ostream& os, vtkIndent indent);
00048 
00049   int CanReadFile(const char* fname); 
00051 
00052   virtual const char* GetFileExtensions()
00053     {
00054       return ".pnm .pgm .ppm";
00055     }
00057 
00059 
00060   virtual const char* GetDescriptiveName()
00061     {
00062       return "PNM";
00063     }
00065   
00066 protected:
00067   vtkPNMReader() {};
00068   ~vtkPNMReader() {};
00069   void ExecuteInformation();
00070 private:
00071   vtkPNMReader(const vtkPNMReader&);  // Not implemented.
00072   void operator=(const vtkPNMReader&);  // Not implemented.
00073 };
00074 
00075 #endif
00076 
00077