ParaView
vtkSquirtCompressor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSquirtCompressor.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 =========================================================================*/
15 /*----------------------------------------------------------------------------
16  Copyright (c) Sandia Corporation
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
19 
51 #ifndef vtkSquirtCompressor_h
52 #define vtkSquirtCompressor_h
53 
54 #include "vtkImageCompressor.h"
55 #include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
56 
57 class vtkMultiProcessStream;
58 
59 class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkSquirtCompressor : public vtkImageCompressor
60 {
61 public:
62  static vtkSquirtCompressor* New();
64  void PrintSelf(ostream& os, vtkIndent indent);
65 
67 
72  vtkSetClampMacro(SquirtLevel, int, 0, 5);
73  vtkGetMacro(SquirtLevel, int);
75 
77 
81  virtual int Compress();
82  virtual int Decompress();
84 
86 
89  virtual void SaveConfiguration(vtkMultiProcessStream* stream);
90  virtual bool RestoreConfiguration(vtkMultiProcessStream* stream);
92 
93  virtual const char* SaveConfiguration();
94  virtual const char* RestoreConfiguration(const char* stream);
95 
96 protected:
98  virtual ~vtkSquirtCompressor();
99  int DecompressRGB();
100  int DecompressRGBA();
101 
103 
104 private:
105  vtkSquirtCompressor(const vtkSquirtCompressor&) VTK_DELETE_FUNCTION;
106  void operator=(const vtkSquirtCompressor&) VTK_DELETE_FUNCTION;
107 };
108 
109 #endif
virtual int Decompress()=0
Decompresses and geenartes the decompressed data as output.
Image compressor/decompressor using SQUIRT.
virtual const char * SaveConfiguration()
Serialize compressor configuration (but not the data) into the stream.
Superclass for image compressor/decompressor used by Composite Managers.
virtual bool RestoreConfiguration(vtkMultiProcessStream *stream)
Restore state from the stream.
virtual int Compress()=0
Call this method to compress the input and generate the compressed data.
void PrintSelf(ostream &os, vtkIndent indent)