Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class 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 =========================================================================*/
00032 #ifndef __vtkJPEGReader_h
00033 #define __vtkJPEGReader_h
00034 
00035 #include "vtkImageReader2.h"
00036 
00037 class VTK_IO_EXPORT vtkJPEGReader : public vtkImageReader2
00038 {
00039 public:
00040   static vtkJPEGReader *New();
00041   vtkTypeRevisionMacro(vtkJPEGReader,vtkImageReader2);
00042   virtual void PrintSelf(ostream& os, vtkIndent indent);
00043 
00045   int CanReadFile(const char* fname);
00046 
00048 
00050   virtual const char* GetFileExensions()
00051     {
00052       return ".jpeg .jpg";
00053     }
00055 
00057 
00059   virtual const char* GetDescriptiveName()
00060     {
00061       return "JPEG";
00062     }
00064 protected:
00065   vtkJPEGReader() {};
00066   ~vtkJPEGReader() {};
00067 
00068   virtual void ExecuteInformation();
00069   virtual void ExecuteData(vtkDataObject *out);
00070 private:
00071   vtkJPEGReader(const vtkJPEGReader&);  // Not implemented.
00072   void operator=(const vtkJPEGReader&);  // Not implemented.
00073 };
00074 #endif
00075 
00076