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

# IO/vtkJPEGReader.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkJPEGReader.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 =========================================================================*/
    00044 #ifndef __vtkJPEGReader_h
    00045 #define __vtkJPEGReader_h
    00046
    00047 #include "vtkImageReader2.h"
    00048
    00049 class VTK_IO_EXPORT vtkJPEGReader : public vtkImageReader2
    00050 {
    00051 public:
    00052   static vtkJPEGReader *New();
    00053   vtkTypeRevisionMacro(vtkJPEGReader,vtkImageReader2);
    00054   virtual void PrintSelf(ostream& os, vtkIndent indent);
    00055
    00057   int CanReadFile(const char* fname);
    00058
    00060
    00062   virtual const char* GetFileExensions()
    00063     {
    00064       return ".jpeg .jpg";
    00065     }
    00067
    00069
    00071   virtual const char* GetDescriptiveName()
    00072     {
    00073       return "JPEG";
    00074     }
    00076 protected:
    00077   vtkJPEGReader() {};
    00078   ~vtkJPEGReader() {};
    00079
    00080   virtual void ExecuteInformation();
    00081   virtual void ExecuteData(vtkDataObject *out);
    00082 private:
    00083   vtkJPEGReader(const vtkJPEGReader&);  // Not implemented.
    00084   void operator=(const vtkJPEGReader&);  // Not implemented.
    00085 };
    00086 #endif
    00087
    00088