VTK
vtkCompressCompositer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCompressCompositer.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 =========================================================================*/
29 #ifndef vtkCompressCompositer_h
30 #define vtkCompressCompositer_h
31 
32 #include "vtkRenderingParallelModule.h" // For export macro
33 #include "vtkCompositer.h"
34 
35 class vtkTimerLog;
36 class vtkDataArray;
37 class vtkFloatArray;
38 
39 class VTKRENDERINGPARALLEL_EXPORT vtkCompressCompositer : public vtkCompositer
40 {
41 public:
42  static vtkCompressCompositer *New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
46  virtual void CompositeBuffer(vtkDataArray *pBuf, vtkFloatArray *zBuf,
47  vtkDataArray *pTmp, vtkFloatArray *zTmp);
48 
50 
52  static void Compress(vtkFloatArray *zIn, vtkDataArray *pIn,
53  vtkFloatArray *zOut, vtkDataArray *pOut);
55 
56  static void Uncompress(vtkFloatArray *zIn, vtkDataArray *pIn,
57  vtkFloatArray *zOut, vtkDataArray *pOut,
58  int finalLength);
59 
60  static void CompositeImagePair(vtkFloatArray *localZ, vtkDataArray *localP,
61  vtkFloatArray *remoteZ, vtkDataArray *remoteP,
62  vtkFloatArray *outZ, vtkDataArray *outP);
63 protected:
66 
67 
70 
72 
73 private:
74  vtkCompressCompositer(const vtkCompressCompositer&); // Not implemented
75  void operator=(const vtkCompressCompositer&); // Not implemented
76 };
77 
78 #endif
Implements compressed tree based compositing.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:45
void PrintSelf(ostream &os, vtkIndent indent)
Timer support and logging.
Definition: vtkTimerLog.h:81
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
virtual void CompositeBuffer(vtkDataArray *pBuf, vtkFloatArray *zBuf, vtkDataArray *pTmp, vtkFloatArray *zTmp)
Super class for composite algorthms.
Definition: vtkCompositer.h:40
static vtkCompositer * New()