Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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   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 =========================================================================*/
    00054 #ifndef __vtkPNMReader_h
    00055 #define __vtkPNMReader_h
    00056
    00057 #include "vtkImageReader.h"
    00058
    00059 class VTK_IO_EXPORT vtkPNMReader : public vtkImageReader
    00060 {
    00061 public:
    00062   static vtkPNMReader *New();
    00063   vtkTypeRevisionMacro(vtkPNMReader,vtkImageReader);
    00064   virtual void PrintSelf(ostream& os, vtkIndent indent);
    00065
    00066   int CanReadFile(const char* fname);
    00068
    00069   virtual const char* GetFileExensions()
    00070     {
    00071       return ".pnm .pgm .ppm";
    00072     }
    00074
    00076
    00077   virtual const char* GetDescriptiveName()
    00078     {
    00079       return "PNM";
    00080     }
    00082
    00083 protected:
    00084   vtkPNMReader() {};
    00085   ~vtkPNMReader() {};
    00086   void ExecuteInformation();
    00087 private:
    00088   vtkPNMReader(const vtkPNMReader&);  // Not implemented.
    00089   void operator=(const vtkPNMReader&);  // Not implemented.
    00090 };
    00091
    00092 #endif
    00093
    00094