ParaView
vtkImageCompressor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageCompressor.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef vtkImageCompressor_h
30 #define vtkImageCompressor_h
31 
32 #include "vtkObject.h"
33 #include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
34 
35 class vtkUnsignedCharArray;
36 class vtkMultiProcessStream;
37 
38 class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkImageCompressor : public vtkObject
39 {
40 public:
41  vtkTypeMacro(vtkImageCompressor, vtkObject);
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
48  void SetInput(vtkUnsignedCharArray* input);
49  vtkGetObjectMacro(Input, vtkUnsignedCharArray);
51 
53 
56  vtkGetObjectMacro(Output, vtkUnsignedCharArray);
57  void SetOutput(vtkUnsignedCharArray*);
59 
61 
65  vtkSetMacro(LossLessMode, int);
66  vtkGetMacro(LossLessMode, int);
68 
73  virtual int Compress() = 0;
74 
79  virtual int Decompress() = 0;
80 
84  virtual void SaveConfiguration(vtkMultiProcessStream* stream);
85 
90  virtual bool RestoreConfiguration(vtkMultiProcessStream* stream);
91 
96  virtual const char* SaveConfiguration();
97 
104  virtual const char* RestoreConfiguration(const char* stream);
105 
106 protected:
108 
112  virtual ~vtkImageCompressor();
114 
115  // This is the array which contains the compressed data.
116  vtkUnsignedCharArray* Output;
117  vtkUnsignedCharArray* Input;
118 
120 
121  vtkSetStringMacro(Configuration);
122  char* Configuration;
123 
124 private:
125  vtkImageCompressor(const vtkImageCompressor&) VTK_DELETE_FUNCTION;
126  void operator=(const vtkImageCompressor&) VTK_DELETE_FUNCTION;
127 };
128 
129 #endif
vtkUnsignedCharArray * Output
Superclass for image compressor/decompressor used by Composite Managers.
vtkUnsignedCharArray * Input