00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkJPEGReader.h 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 =========================================================================*/ 00031 #ifndef __vtkJPEGReader_h 00032 #define __vtkJPEGReader_h 00033 00034 #include "vtkImageReader2.h" 00035 00036 class VTK_IO_EXPORT vtkJPEGReader : public vtkImageReader2 00037 { 00038 public: 00039 static vtkJPEGReader *New(); 00040 vtkTypeMacro(vtkJPEGReader,vtkImageReader2); 00041 virtual void PrintSelf(ostream& os, vtkIndent indent); 00042 00044 int CanReadFile(const char* fname); 00045 00047 00049 virtual const char* GetFileExtensions() 00050 { 00051 return ".jpeg .jpg"; 00052 } 00054 00056 00058 virtual const char* GetDescriptiveName() 00059 { 00060 return "JPEG"; 00061 } 00063 protected: 00064 vtkJPEGReader() {}; 00065 ~vtkJPEGReader() {}; 00066 00067 virtual void ExecuteInformation(); 00068 virtual void ExecuteData(vtkDataObject *out); 00069 private: 00070 vtkJPEGReader(const vtkJPEGReader&); // Not implemented. 00071 void operator=(const vtkJPEGReader&); // Not implemented. 00072 }; 00073 #endif 00074 00075