VTK  9.0.1
vtkLZMADataCompressor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLZMADataCompressor.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 vtkLZMADataCompressor_h
30 #define vtkLZMADataCompressor_h
31 
32 #include "vtkDataCompressor.h"
33 #include "vtkIOCoreModule.h" // For export macro
34 
35 class VTKIOCORE_EXPORT vtkLZMADataCompressor : public vtkDataCompressor
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40  static vtkLZMADataCompressor* New();
41 
48  size_t GetMaximumCompressionSpace(size_t size) override;
53  // Compression level setter required by vtkDataCompressor.
54  void SetCompressionLevel(int compressionLevel) override;
55 
56  // Compression level getter required by vtkDataCompressor.
57  int GetCompressionLevel() override;
58 
59 protected:
61  ~vtkLZMADataCompressor() override;
62 
64 
65  // Compression method required by vtkDataCompressor.
66  size_t CompressBuffer(unsigned char const* uncompressedData, size_t uncompressedSize,
67  unsigned char* compressedData, size_t compressionSpace) override;
68  // Decompression method required by vtkDataCompressor.
69  size_t UncompressBuffer(unsigned char const* compressedData, size_t compressedSize,
70  unsigned char* uncompressedData, size_t uncompressedSize) override;
71 
72 private:
74  void operator=(const vtkLZMADataCompressor&) = delete;
75 };
76 
77 #endif
vtkDataCompressor::GetCompressionLevel
virtual int GetCompressionLevel()=0
vtkDataCompressor::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataCompressor::CompressBuffer
virtual size_t CompressBuffer(unsigned char const *uncompressedData, size_t uncompressedSize, unsigned char *compressedData, size_t compressionSpace)=0
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkDataCompressor::GetMaximumCompressionSpace
virtual size_t GetMaximumCompressionSpace(size_t size)=0
Get the maximum space that may be needed to store data of the given uncompressed size after compressi...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkDataCompressor
Abstract interface for data compression classes.
Definition: vtkDataCompressor.h:45
vtkX3D::size
@ size
Definition: vtkX3D.h:259
vtkLZMADataCompressor::CompressionLevel
int CompressionLevel
Definition: vtkLZMADataCompressor.h:63
vtkDataCompressor::UncompressBuffer
virtual size_t UncompressBuffer(unsigned char const *compressedData, size_t compressedSize, unsigned char *uncompressedData, size_t uncompressedSize)=0
vtkLZMADataCompressor
Data compression using LZMA Utils.
Definition: vtkLZMADataCompressor.h:35
vtkDataCompressor.h
vtkDataCompressor::SetCompressionLevel
virtual void SetCompressionLevel(int compressionLevel)=0
Compression performance varies greatly with compression level Require level setting from any vtkDataC...