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 "vtkObject.h"
32 
34 class vtkCompositer;
35 class vtkDataArray;
36 class vtkFloatArray;
38 
40 {
41 public:
42  static vtkCompositer *New();
43  vtkTypeMacro(vtkCompositer,vtkObject);
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
49  virtual void CompositeBuffer(vtkDataArray *pBuf, vtkFloatArray *zBuf,
50  vtkDataArray *pTmp, vtkFloatArray *zTmp);
52 
54 
55  virtual void SetController(vtkMultiProcessController*);
56  vtkGetObjectMacro(Controller,vtkMultiProcessController);
58 
60 
61  vtkSetMacro(NumberOfProcesses, int);
62  vtkGetMacro(NumberOfProcesses, int);
64 
66 
67  static void DeleteArray(vtkDataArray* da);
68  static void ResizeFloatArray(vtkFloatArray* fa, int numComp,
69  vtkIdType size);
70  static void ResizeUnsignedCharArray(vtkUnsignedCharArray* uca,
71  int numComp, vtkIdType size);
73 
74 protected:
75  vtkCompositer();
76  ~vtkCompositer();
77 
80 
81 private:
82  vtkCompositer(const vtkCompositer&); // Not implemented
83  void operator=(const vtkCompositer&); // Not implemented
84 };
85 
86 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:60
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:42
int vtkIdType
Definition: vtkType.h:255
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
dynamic, self-adjusting array of unsigned char
vtkMultiProcessController * Controller
Definition: vtkCompositer.h:78
#define VTK_PARALLEL_EXPORT
static vtkObject * New()
Super class for composite algorthms.
Definition: vtkCompositer.h:39
Multiprocessing communication superclass.