VTK
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 "vtkRenderingParallelModule.h" // For export macro
33 #include "vtkObject.h"
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);
47 
52  virtual void CompositeBuffer(vtkDataArray *pBuf, vtkFloatArray *zBuf,
53  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,
77  vtkIdType size);
78  static void ResizeUnsignedCharArray(vtkUnsignedCharArray* uca,
79  int numComp, vtkIdType size);
81 
82 protected:
83  vtkCompositer();
84  ~vtkCompositer();
85 
88 
89 private:
90  vtkCompositer(const vtkCompositer&) VTK_DELETE_FUNCTION;
91  void operator=(const vtkCompositer&) VTK_DELETE_FUNCTION;
92 };
93 
94 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
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:41
int vtkIdType
Definition: vtkType.h:287
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
dynamic, self-adjusting array of unsigned char
vtkMultiProcessController * Controller
Definition: vtkCompositer.h:86
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.