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

dox/IO/vtkJPEGWriter.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkJPEGWriter.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 =========================================================================*/ 00033 #ifndef __vtkJPEGWriter_h 00034 #define __vtkJPEGWriter_h 00035 00036 #include "vtkImageWriter.h" 00037 00038 class vtkUnsignedCharArray; 00039 class vtkImageData; 00040 00041 class VTK_IO_EXPORT vtkJPEGWriter : public vtkImageWriter 00042 { 00043 public: 00044 static vtkJPEGWriter *New(); 00045 vtkTypeRevisionMacro(vtkJPEGWriter,vtkImageWriter); 00046 void PrintSelf(ostream& os, vtkIndent indent); 00047 00049 virtual void Write(); 00050 00052 00053 vtkSetClampMacro(Quality, int, 0, 100); 00054 vtkGetMacro(Quality, int); 00056 00058 00059 vtkSetMacro(Progressive, unsigned int); 00060 vtkGetMacro(Progressive, unsigned int); 00061 vtkBooleanMacro(Progressive, unsigned int); 00063 00065 00066 vtkSetMacro(WriteToMemory, unsigned int); 00067 vtkGetMacro(WriteToMemory, unsigned int); 00068 vtkBooleanMacro(WriteToMemory, unsigned int); 00070 00072 00074 virtual void SetResult(vtkUnsignedCharArray*); 00075 vtkGetObjectMacro(Result, vtkUnsignedCharArray); 00077 00078 protected: 00079 vtkJPEGWriter(); 00080 ~vtkJPEGWriter(); 00081 00082 void WriteSlice(vtkImageData *data); 00083 00084 private: 00085 int Quality; 00086 unsigned int Progressive; 00087 unsigned int WriteToMemory; 00088 vtkUnsignedCharArray *Result; 00089 00090 private: 00091 vtkJPEGWriter(const vtkJPEGWriter&); // Not implemented. 00092 void operator=(const vtkJPEGWriter&); // Not implemented. 00093 }; 00094 00095 #endif 00096 00097