VTK  9.0.1
vtkCompositer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCompositer.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 vtkCompositer_h
30 #define vtkCompositer_h
31 
32 #include "vtkObject.h"
33 #include "vtkRenderingParallelModule.h" // For export macro
34 
36 class vtkCompositer;
37 class vtkDataArray;
38 class vtkFloatArray;
40 
41 class VTKRENDERINGPARALLEL_EXPORT vtkCompositer : public vtkObject
42 {
43 public:
44  static vtkCompositer* New();
45  vtkTypeMacro(vtkCompositer, vtkObject);
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
52  virtual void CompositeBuffer(
53  vtkDataArray* pBuf, vtkFloatArray* zBuf, vtkDataArray* pTmp, vtkFloatArray* zTmp);
54 
56 
59  virtual void SetController(vtkMultiProcessController*);
60  vtkGetObjectMacro(Controller, vtkMultiProcessController);
62 
64 
67  vtkSetMacro(NumberOfProcesses, int);
68  vtkGetMacro(NumberOfProcesses, int);
70 
72 
75  static void DeleteArray(vtkDataArray* da);
76  static void ResizeFloatArray(vtkFloatArray* fa, int numComp, vtkIdType size);
77  static void ResizeUnsignedCharArray(vtkUnsignedCharArray* uca, int numComp, vtkIdType size);
79 
80 protected:
81  vtkCompositer();
82  ~vtkCompositer() override;
83 
86 
87 private:
88  vtkCompositer(const vtkCompositer&) = delete;
89  void operator=(const vtkCompositer&) = delete;
90 };
91 
92 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:62
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:35
int vtkIdType
Definition: vtkType.h:338
a simple class to control print indentation
Definition: vtkIndent.h:33
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:49
dynamic, self-adjusting array of unsigned char
vtkMultiProcessController * Controller
Definition: vtkCompositer.h:84
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Super class for composite algorthms.
Definition: vtkCompositer.h:41
Multiprocessing communication superclass.