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 "vtkPVVTKExtensionsFiltersRenderingModule.h" // needed for export macro
56 
58 
60 {
61 public:
62  static vtkSquirtCompressor* New();
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
67 
72  vtkSetClampMacro(SquirtLevel, int, 0, 5);
73  vtkGetMacro(SquirtLevel, int);
75 
77 
81  int Compress() override;
82  int Decompress() override;
84 
86 
89  void SaveConfiguration(vtkMultiProcessStream* stream) override;
90  bool RestoreConfiguration(vtkMultiProcessStream* stream) override;
92 
93  const char* SaveConfiguration() override;
94  const char* RestoreConfiguration(const char* stream) override;
95 
96 protected:
98  ~vtkSquirtCompressor() override;
99  int DecompressRGB();
100  int DecompressRGBA();
101 
103 
104 private:
105  vtkSquirtCompressor(const vtkSquirtCompressor&) = delete;
106  void operator=(const vtkSquirtCompressor&) = delete;
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.
#define VTKPVVTKEXTENSIONSFILTERSRENDERING_EXPORT
virtual int Compress()=0
Call this method to compress the input and generate the compressed data.
static vtkObject * New()
void PrintSelf(ostream &os, vtkIndent indent) override