VTK
dox/IO/Image/vtkPNGReader.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPNGReader.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 =========================================================================*/
00031 #ifndef __vtkPNGReader_h
00032 #define __vtkPNGReader_h
00033 
00034 #include "vtkIOImageModule.h" // For export macro
00035 #include "vtkImageReader2.h"
00036 
00037 class VTKIOIMAGE_EXPORT vtkPNGReader : public vtkImageReader2
00038 {
00039 public:
00040   static vtkPNGReader *New();
00041   vtkTypeMacro(vtkPNGReader,vtkImageReader2);
00042   virtual void PrintSelf(ostream& os, vtkIndent indent);
00043 
00045   virtual int CanReadFile(const char* fname);
00046 
00048 
00050   virtual const char* GetFileExtensions()
00051     {
00052       return ".png";
00053     }
00055 
00057 
00059   virtual const char* GetDescriptiveName()
00060     {
00061       return "PNG";
00062     }
00064 
00065 protected:
00066   vtkPNGReader() {}
00067   ~vtkPNGReader() {}
00068 
00069   virtual void ExecuteInformation();
00070   virtual void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation *outInfo);
00071 private:
00072   vtkPNGReader(const vtkPNGReader&);  // Not implemented.
00073   void operator=(const vtkPNGReader&);  // Not implemented.
00074 };
00075 #endif
00076 
00077