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 =========================================================================*/
28 #ifndef vtkCompositer_h
29 #define vtkCompositer_h
30 
31 #include "vtkRenderingParallelModule.h" // For export macro
32 #include "vtkObject.h"
33 
35 class vtkCompositer;
36 class vtkDataArray;
37 class vtkFloatArray;
39 
40 class VTKRENDERINGPARALLEL_EXPORT vtkCompositer : public vtkObject
41 {
42 public:
43  static vtkCompositer *New();
44  vtkTypeMacro(vtkCompositer,vtkObject);
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
50  virtual void CompositeBuffer(vtkDataArray *pBuf, vtkFloatArray *zBuf,
51  vtkDataArray *pTmp, vtkFloatArray *zTmp);
53 
55 
56  virtual void SetController(vtkMultiProcessController*);
57  vtkGetObjectMacro(Controller,vtkMultiProcessController);
59 
61 
62  vtkSetMacro(NumberOfProcesses, int);
63  vtkGetMacro(NumberOfProcesses, int);
65 
67 
68  static void DeleteArray(vtkDataArray* da);
69  static void ResizeFloatArray(vtkFloatArray* fa, int numComp,
70  vtkIdType size);
71  static void ResizeUnsignedCharArray(vtkUnsignedCharArray* uca,
72  int numComp, vtkIdType size);
74 
75 protected:
76  vtkCompositer();
77  ~vtkCompositer();
78 
81 
82 private:
83  vtkCompositer(const vtkCompositer&); // Not implemented
84  void operator=(const vtkCompositer&); // Not implemented
85 };
86 
87 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:45
int vtkIdType
Definition: vtkType.h:275
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
dynamic, self-adjusting array of unsigned char
vtkMultiProcessController * Controller
Definition: vtkCompositer.h:79
static vtkObject * New()
Super class for composite algorthms.
Definition: vtkCompositer.h:40
Multiprocessing communication superclass.