VTK
dox/IO/vtkPNMReader.h
Go to the documentation of this file.
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 "vtkImageReader.h"
00044 
00045 class VTK_IO_EXPORT vtkPNMReader : public vtkImageReader
00046 {
00047 public:
00048   static vtkPNMReader *New();
00049   vtkTypeMacro(vtkPNMReader,vtkImageReader);
00050   virtual void PrintSelf(ostream& os, vtkIndent indent);
00051 
00052   int CanReadFile(const char* fname); 
00054 
00055   virtual const char* GetFileExtensions()
00056     {
00057       return ".pnm .pgm .ppm";
00058     }
00060 
00062 
00063   virtual const char* GetDescriptiveName()
00064     {
00065       return "PNM";
00066     }
00068   
00069 protected:
00070   vtkPNMReader() {};
00071   ~vtkPNMReader() {};
00072   void ExecuteInformation();
00073 private:
00074   vtkPNMReader(const vtkPNMReader&);  // Not implemented.
00075   void operator=(const vtkPNMReader&);  // Not implemented.
00076 };
00077 
00078 #endif
00079 
00080