VTK  9.4.20241218
vtkZLibDataCompressor.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
14#ifndef vtkZLibDataCompressor_h
15#define vtkZLibDataCompressor_h
16
17#include "vtkDataCompressor.h"
18#include "vtkIOCoreModule.h" // For export macro
19
20VTK_ABI_NAMESPACE_BEGIN
21class VTKIOCORE_EXPORT vtkZLibDataCompressor : public vtkDataCompressor
22{
23public:
25 void PrintSelf(ostream& os, vtkIndent indent) override;
27
34 size_t GetMaximumCompressionSpace(size_t size) override;
35
37
40 // Compression level getter required by vtkDataCompressor.
41 int GetCompressionLevel() override;
42
43 // Compression level setter required by vtkDataCompresor.
44 void SetCompressionLevel(int compressionLevel) override;
46
47protected:
50
52
53 // Compression method required by vtkDataCompressor.
54 size_t CompressBuffer(unsigned char const* uncompressedData, size_t uncompressedSize,
55 unsigned char* compressedData, size_t compressionSpace) override;
56 // Decompression method required by vtkDataCompressor.
57 size_t UncompressBuffer(unsigned char const* compressedData, size_t compressedSize,
58 unsigned char* uncompressedData, size_t uncompressedSize) override;
59
60private:
62 void operator=(const vtkZLibDataCompressor&) = delete;
63};
64
65VTK_ABI_NAMESPACE_END
66#endif
Abstract interface for data compression classes.
a simple class to control print indentation
Definition vtkIndent.h:108
Data compression using zlib.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetCompressionLevel() override
Get/Set the compression level.
~vtkZLibDataCompressor() override
size_t UncompressBuffer(unsigned char const *compressedData, size_t compressedSize, unsigned char *uncompressedData, size_t uncompressedSize) override
size_t GetMaximumCompressionSpace(size_t size) override
Get the maximum space that may be needed to store data of the given uncompressed size after compressi...
size_t CompressBuffer(unsigned char const *uncompressedData, size_t uncompressedSize, unsigned char *compressedData, size_t compressionSpace) override
static vtkZLibDataCompressor * New()
void SetCompressionLevel(int compressionLevel) override
Get/Set the compression level.