VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
Core
vtkZLibDataCompressor.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkZLibDataCompressor.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
=========================================================================*/
25
#ifndef __vtkZLibDataCompressor_h
26
#define __vtkZLibDataCompressor_h
27
28
#include "vtkIOCoreModule.h"
// For export macro
29
#include "
vtkDataCompressor.h
"
30
31
class
VTKIOCORE_EXPORT
vtkZLibDataCompressor
:
public
vtkDataCompressor
32
{
33
public
:
34
vtkTypeMacro(
vtkZLibDataCompressor
,
vtkDataCompressor
);
35
void
PrintSelf
(ostream& os,
vtkIndent
indent);
36
static
vtkZLibDataCompressor
*
New
();
37
42
size_t
GetMaximumCompressionSpace
(
size_t
size
);
43
45
46
vtkSetClampMacro(CompressionLevel,
int
, 0, 9);
47
vtkGetMacro(CompressionLevel,
int
);
49
50
protected
:
51
vtkZLibDataCompressor
();
52
~
vtkZLibDataCompressor
();
53
54
int
CompressionLevel
;
55
56
// Compression method required by vtkDataCompressor.
57
size_t
CompressBuffer
(
unsigned
char
const
* uncompressedData,
58
size_t
uncompressedSize,
59
unsigned
char
* compressedData,
60
size_t
compressionSpace);
61
// Decompression method required by vtkDataCompressor.
62
size_t
UncompressBuffer
(
unsigned
char
const
* compressedData,
63
size_t
compressedSize,
64
unsigned
char
* uncompressedData,
65
size_t
uncompressedSize);
66
private
:
67
vtkZLibDataCompressor
(
const
vtkZLibDataCompressor
&);
// Not implemented.
68
void
operator=(
const
vtkZLibDataCompressor
&);
// Not implemented.
69
};
70
71
#endif
Generated on Fri May 25 2012 22:39:25 for VTK by
1.8.1