VTK
|
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 =========================================================================*/ 00033 #ifndef __vtkJPEGReader_h 00034 #define __vtkJPEGReader_h 00035 00036 #include "vtkIOImageModule.h" // For export macro 00037 #include "vtkImageReader2.h" 00038 00039 class VTKIOIMAGE_EXPORT vtkJPEGReader : public vtkImageReader2 00040 { 00041 public: 00042 static vtkJPEGReader *New(); 00043 vtkTypeMacro(vtkJPEGReader,vtkImageReader2); 00044 virtual void PrintSelf(ostream& os, vtkIndent indent); 00045 00047 int CanReadFile(const char* fname); 00048 00050 00052 virtual const char* GetFileExtensions() 00053 { 00054 return ".jpeg .jpg"; 00055 } 00057 00059 00061 virtual const char* GetDescriptiveName() 00062 { 00063 return "JPEG"; 00064 } 00065 protected: 00066 vtkJPEGReader() {}; 00067 ~vtkJPEGReader() {}; 00069 00070 virtual void ExecuteInformation(); 00071 virtual void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation *outInfo); 00072 private: 00073 vtkJPEGReader(const vtkJPEGReader&); // Not implemented. 00074 void operator=(const vtkJPEGReader&); // Not implemented. 00075 }; 00076 #endif 00077 00078