vtkSquirtCompressor.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
4 
36 #ifndef vtkSquirtCompressor_h
37 #define vtkSquirtCompressor_h
38 
39 #include "vtkImageCompressor.h"
40 #include "vtkPVVTKExtensionsFiltersRenderingModule.h" // needed for export macro
41 
43 
45 {
46 public:
47  static vtkSquirtCompressor* New();
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
57  vtkSetClampMacro(SquirtLevel, int, 0, 5);
58  vtkGetMacro(SquirtLevel, int);
60 
62 
66  int Compress() override;
67  int Decompress() override;
69 
71 
74  void SaveConfiguration(vtkMultiProcessStream* stream) override;
75  bool RestoreConfiguration(vtkMultiProcessStream* stream) override;
77 
78  const char* SaveConfiguration() override;
79  const char* RestoreConfiguration(const char* stream) override;
80 
81 protected:
83  ~vtkSquirtCompressor() override;
84  int DecompressRGB();
85  int DecompressRGBA();
86 
88 
89 private:
91  void operator=(const vtkSquirtCompressor&) = delete;
92 };
93 
94 #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