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

Servers/Filters/vtkImageCompressor.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageCompressor.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00023 #ifndef __vtkImageCompressor_h
00024 #define __vtkImageCompressor_h
00025 
00026 #include "vtkObject.h"
00027 
00028 class vtkUnsignedCharArray;
00029 
00030 class VTK_EXPORT vtkImageCompressor : public vtkObject
00031 {
00032 public:
00033   vtkTypeRevisionMacro(vtkImageCompressor, vtkObject);
00034   void PrintSelf(ostream& os, vtkIndent indent);
00035 
00037 
00038   void SetInput(vtkUnsignedCharArray* input);
00039   vtkGetObjectMacro(Input, vtkUnsignedCharArray);
00041 
00044   int Compress();
00045  
00048   int Decompress();
00049 
00051 
00052   vtkGetObjectMacro(Output, vtkUnsignedCharArray);
00053   void SetOutput(vtkUnsignedCharArray*);
00055 
00056 protected:
00057   vtkImageCompressor();
00058   ~vtkImageCompressor();
00059 
00061   virtual int CompressData() = 0;
00062 
00064   virtual int DecompressData() = 0;
00065 
00066   // This is the array which contains the compressed data.
00067   vtkUnsignedCharArray* Output;
00068   vtkUnsignedCharArray* Input;
00069 
00070 private:
00071   vtkImageCompressor(const vtkImageCompressor&); // Not implemented.
00072   void operator=(const vtkImageCompressor&); // Not implemented.
00073 };
00074 
00075 #endif

Generated on Tue May 30 12:31:46 2006 for ParaView by doxygen 1.3.5