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

vtkPNGReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPNGReader.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 =========================================================================*/
00043 #ifndef __vtkPNGReader_h
00044 #define __vtkPNGReader_h
00045 
00046 #include "vtkImageReader2.h"
00047 
00048 class VTK_IO_EXPORT vtkPNGReader : public vtkImageReader2
00049 {
00050 public:
00051   static vtkPNGReader *New();
00052   vtkTypeRevisionMacro(vtkPNGReader,vtkImageReader2);
00053   virtual void PrintSelf(ostream& os, vtkIndent indent);
00054 
00055 protected:
00056   vtkPNGReader() {};
00057   ~vtkPNGReader() {};
00058 
00060   virtual int CanReadFile(const char* fname);
00061  // Description:
00062   // Get the file extensions for this format.
00063   // Returns a string with a space separated list of extensions in 
00064   // the format .extension
00065   virtual const char* GetFileExtensions()
00066     {
00067       return ".png";
00068     }
00070 
00072 
00074   virtual const char* GetDescriptiveName()
00075     {
00076       return "PNG";
00077     }
00079   
00080   virtual void ExecuteInformation();
00081   virtual void ExecuteData(vtkDataObject *out);
00082 private:
00083   vtkPNGReader(const vtkPNGReader&);  // Not implemented.
00084   void operator=(const vtkPNGReader&);  // Not implemented.
00085 };
00086 #endif
00087 
00088