Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

IO/vtkZLibDataCompressor.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkZLibDataCompressor.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00040 #ifndef __vtkZLibDataCompressor_h
00041 #define __vtkZLibDataCompressor_h
00042 
00043 #include "vtkDataCompressor.h"
00044 
00045 class VTK_IO_EXPORT vtkZLibDataCompressor : public vtkDataCompressor
00046 {
00047 public:
00048   vtkTypeRevisionMacro(vtkZLibDataCompressor,vtkDataCompressor);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050   static vtkZLibDataCompressor* New();  
00051   
00056   unsigned long GetMaximumCompressionSpace(unsigned long size);
00057   
00058 protected:
00059   vtkZLibDataCompressor();
00060   ~vtkZLibDataCompressor();
00061   
00062   // Compression method required by vtkDataCompressor.
00063   unsigned long CompressBuffer(const unsigned char* uncompressedData,
00064                                unsigned long uncompressedSize,
00065                                unsigned char* compressedData,
00066                                unsigned long compressionSpace);
00067   // Decompression method required by vtkDataCompressor.
00068   unsigned long UncompressBuffer(const unsigned char* compressedData,
00069                                  unsigned long compressedSize,
00070                                  unsigned char* uncompressedData,
00071                                  unsigned long uncompressedSize);
00072 private:
00073   vtkZLibDataCompressor(const vtkZLibDataCompressor&);  // Not implemented.
00074   void operator=(const vtkZLibDataCompressor&);  // Not implemented.
00075 };
00076 
00077 #endif