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 =========================================================================*/ 00028 #ifndef __vtkJPEGReader_h 00029 #define __vtkJPEGReader_h 00030 00031 #include "vtkImageReader2.h" 00032 00033 class VTK_IO_EXPORT vtkJPEGReader : public vtkImageReader2 00034 { 00035 public: 00036 static vtkJPEGReader *New(); 00037 vtkTypeRevisionMacro(vtkJPEGReader,vtkImageReader2); 00038 virtual void PrintSelf(ostream& os, vtkIndent indent); 00039 00041 int CanReadFile(const char* fname); 00042 00044 00046 virtual const char* GetFileExtensions() 00047 { 00048 return ".jpeg .jpg"; 00049 } 00051 00053 00055 virtual const char* GetDescriptiveName() 00056 { 00057 return "JPEG"; 00058 } 00060 protected: 00061 vtkJPEGReader() {}; 00062 ~vtkJPEGReader() {}; 00063 00064 virtual void ExecuteInformation(); 00065 virtual void ExecuteData(vtkDataObject *out); 00066 private: 00067 vtkJPEGReader(const vtkJPEGReader&); // Not implemented. 00068 void operator=(const vtkJPEGReader&); // Not implemented. 00069 }; 00070 #endif 00071 00072