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

dox/IO/vtkPNGReader.h

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