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 =========================================================================*/
30 #ifndef vtkCompressCompositer_h
31 #define vtkCompressCompositer_h
32 
33 #include "vtkRenderingParallelModule.h" // For export macro
34 #include "vtkCompositer.h"
35 
36 class vtkTimerLog;
37 class vtkDataArray;
38 class vtkFloatArray;
39 
40 class VTKRENDERINGPARALLEL_EXPORT vtkCompressCompositer : public vtkCompositer
41 {
42 public:
43  static vtkCompressCompositer *New();
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
47  void CompositeBuffer(vtkDataArray *pBuf, vtkFloatArray *zBuf,
48  vtkDataArray *pTmp, vtkFloatArray *zTmp) override;
49 
54  static void Compress(vtkFloatArray *zIn, vtkDataArray *pIn,
55  vtkFloatArray *zOut, vtkDataArray *pOut);
56 
57  static void Uncompress(vtkFloatArray *zIn, vtkDataArray *pIn,
58  vtkFloatArray *zOut, vtkDataArray *pOut,
59  int finalLength);
60 
61  static void CompositeImagePair(vtkFloatArray *localZ, vtkDataArray *localP,
62  vtkFloatArray *remoteZ, vtkDataArray *remoteP,
63  vtkFloatArray *outZ, vtkDataArray *outP);
64 protected:
66  ~vtkCompressCompositer() override;
67 
68 
71 
73 
74 private:
76  void operator=(const vtkCompressCompositer&) = delete;
77 };
78 
79 #endif
Implements compressed tree based compositing.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:41
Timer support and logging.
Definition: vtkTimerLog.h:91
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
virtual void CompositeBuffer(vtkDataArray *pBuf, vtkFloatArray *zBuf, vtkDataArray *pTmp, vtkFloatArray *zTmp)
This method gets called on every process.
Super class for composite algorthms.
Definition: vtkCompositer.h:41
static vtkCompositer * New()