Section: Visualization Toolkit IO Classes
To create an instance of class vtkDataCompressor, simply invoke its constructor as follows
obj = vtkDataCompressor
obj
is an instance of the vtkDataCompressor class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkDataCompressor = obj.NewInstance ()
vtkDataCompressor = obj.SafeDownCast (vtkObject o)
long = obj.GetMaximumCompressionSpace (long size)
- Get the maximum space that may be needed to store data of the
given uncompressed size after compression. This is the minimum
size of the output buffer that can be passed to the four-argument
Compress method.
long = obj.Compress (string uncompressedData, long uncompressedSize, string compressedData, long compressionSpace)
- Compress the given input data buffer into the given output
buffer. The size of the output buffer must be at least as large
as the value given by GetMaximumCompressionSpace for the given
input size.
long = obj.Uncompress (string compressedData, long compressedSize, string uncompressedData, long uncompressedSize)
- Uncompress the given input data into the given output buffer.
The size of the uncompressed data must be known by the caller.
It should be transmitted from the compressor by a means outside
of this class.
vtkUnsignedCharArray = obj.Compress (string uncompressedData, long uncompressedSize)
- Compress the given data. A vtkUnsignedCharArray containing the
compressed data is returned with a reference count of 1.
vtkUnsignedCharArray = obj.Uncompress (string compressedData, long compressedSize, long uncompressedSize)
- Uncompress the given data. A vtkUnsignedCharArray containing the
compressed data is returned with a reference count of 1. The
size of the uncompressed data must be known by the caller. It
should be transmitted from the compressor by a means outside of
this class.