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

# 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 =========================================================================*/
    00047 #ifndef __vtkPNGReader_h
    00048 #define __vtkPNGReader_h
    00049
    00050 #include "vtkImageReader2.h"
    00051
    00052 class VTK_IO_EXPORT vtkPNGReader : public vtkImageReader2
    00053 {
    00054 public:
    00055   static vtkPNGReader *New();
    00056   vtkTypeRevisionMacro(vtkPNGReader,vtkImageReader2);
    00057   virtual void PrintSelf(ostream& os, vtkIndent indent);
    00058
    00059 protected:
    00060   vtkPNGReader() {};
    00061   ~vtkPNGReader() {};
    00062
    00064   virtual int CanReadFile(const char* fname);
    00065  // Description:
    00066   // Get the file extensions for this format.
    00067   // Returns a string with a space separated list of extensions in
    00068   // the format .extension
    00069   virtual const char* GetFileExensions()
    00070     {
    00071       return ".png";
    00072     }
    00074
    00076
    00078   virtual const char* GetDescriptiveName()
    00079     {
    00080       return "PNG";
    00081     }
    00083
    00084   virtual void ExecuteInformation();
    00085   virtual void ExecuteData(vtkDataObject *out);
    00086 private:
    00087   vtkPNGReader(const vtkPNGReader&);  // Not implemented.
    00088   void operator=(const vtkPNGReader&);  // Not implemented.
    00089 };
    00090 #endif
    00091
    00092