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

vtkCompressCompositer.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkCompressCompositer.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 =========================================================================*/
00040 #ifndef __vtkCompressCompositer_h
00041 #define __vtkCompressCompositer_h
00042 
00043 #include "vtkCompositer.h"
00044 
00045 class vtkTimerLog;
00046 class vtkDataArray;
00047 class vtkFloatArray;
00048 
00049 class VTK_PARALLEL_EXPORT vtkCompressCompositer : public vtkCompositer
00050 {
00051 public:
00052   static vtkCompressCompositer *New();
00053   vtkTypeRevisionMacro(vtkCompressCompositer,vtkCompositer);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055 
00056   virtual void CompositeBuffer(vtkDataArray *pBuf, vtkFloatArray *zBuf,
00057                                vtkDataArray *pTmp, vtkFloatArray *zTmp);
00058 
00060 
00062   static void Compress(vtkFloatArray *zIn, vtkDataArray *pIn,
00063                        vtkFloatArray *zOut, vtkDataArray *pOut);
00065 
00066   static void Uncompress(vtkFloatArray *zIn, vtkDataArray *pIn,
00067                          vtkFloatArray *zOut, vtkDataArray *pOut,
00068                          int finalLength);
00069 
00070   static void CompositeImagePair(vtkFloatArray *localZ, vtkDataArray *localP,
00071                                  vtkFloatArray *remoteZ, vtkDataArray *remoteP,
00072                                  vtkFloatArray *outZ, vtkDataArray *outP); 
00073 protected:
00074   vtkCompressCompositer();
00075   ~vtkCompressCompositer();
00076   
00077 
00078   vtkDataArray *InternalPData;
00079   vtkFloatArray *InternalZData;
00080 
00081   vtkTimerLog *Timer;
00082 
00083 private:
00084   vtkCompressCompositer(const vtkCompressCompositer&); // Not implemented
00085   void operator=(const vtkCompressCompositer&); // Not implemented
00086 };
00087 
00088 #endif