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

vtkJPEGReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkJPEGReader.h,v $
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 =========================================================================*/
00041 #ifndef __vtkJPEGReader_h
00042 #define __vtkJPEGReader_h
00043 
00044 #include "vtkImageReader2.h"
00045 
00046 class VTK_IO_EXPORT vtkJPEGReader : public vtkImageReader2
00047 {
00048 public:
00049   static vtkJPEGReader *New();
00050   vtkTypeRevisionMacro(vtkJPEGReader,vtkImageReader2);
00051   virtual void PrintSelf(ostream& os, vtkIndent indent);
00052 
00054   int CanReadFile(const char* fname);
00055 
00057 
00059   virtual const char* GetFileExtensions()
00060     {
00061       return ".jpeg .jpg";
00062     }
00064 
00066 
00068   virtual const char* GetDescriptiveName()
00069     {
00070       return "JPEG";
00071     }
00073 protected:
00074   vtkJPEGReader() {};
00075   ~vtkJPEGReader() {};
00076 
00077   virtual void ExecuteInformation();
00078   virtual void ExecuteData(vtkDataObject *out);
00079 private:
00080   vtkJPEGReader(const vtkJPEGReader&);  // Not implemented.
00081   void operator=(const vtkJPEGReader&);  // Not implemented.
00082 };
00083 #endif
00084 
00085