vtkJPEGWriter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
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&);
00092 void operator=(const vtkJPEGWriter&);
00093 };
00094
00095 #endif
00096
00097