00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00023 #ifndef __vtkImageCompressor_h
00024 #define __vtkImageCompressor_h
00025
00026 #include "vtkObject.h"
00027
00028 class vtkUnsignedCharArray;
00029
00030 class VTK_EXPORT vtkImageCompressor : public vtkObject
00031 {
00032 public:
00033 vtkTypeRevisionMacro(vtkImageCompressor, vtkObject);
00034 void PrintSelf(ostream& os, vtkIndent indent);
00035
00037
00038 void SetInput(vtkUnsignedCharArray* input);
00039 vtkGetObjectMacro(Input, vtkUnsignedCharArray);
00041
00044 int Compress();
00045
00048 int Decompress();
00049
00051
00052 vtkGetObjectMacro(Output, vtkUnsignedCharArray);
00053 void SetOutput(vtkUnsignedCharArray*);
00055
00056 protected:
00057 vtkImageCompressor();
00058 ~vtkImageCompressor();
00059
00061 virtual int CompressData() = 0;
00062
00064 virtual int DecompressData() = 0;
00065
00066
00067 vtkUnsignedCharArray* Output;
00068 vtkUnsignedCharArray* Input;
00069
00070 private:
00071 vtkImageCompressor(const vtkImageCompressor&);
00072 void operator=(const vtkImageCompressor&);
00073 };
00074
00075 #endif