vtkCompositer.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00040 #ifndef __vtkCompositer_h
00041 #define __vtkCompositer_h
00042
00043 #include "vtkObject.h"
00044
00045 class vtkMultiProcessController;
00046 class vtkCompositer;
00047 class vtkDataArray;
00048 class vtkFloatArray;
00049 class vtkUnsignedCharArray;
00050
00051 class VTK_PARALLEL_EXPORT vtkCompositer : public vtkObject
00052 {
00053 public:
00054 static vtkCompositer *New();
00055 vtkTypeRevisionMacro(vtkCompositer,vtkObject);
00056 void PrintSelf(ostream& os, vtkIndent indent);
00057
00059
00061 virtual void CompositeBuffer(vtkDataArray *pBuf, vtkFloatArray *zBuf,
00062 vtkDataArray *pTmp, vtkFloatArray *zTmp);
00064
00066
00067 virtual void SetController(vtkMultiProcessController*);
00068 vtkGetObjectMacro(Controller,vtkMultiProcessController);
00070
00072
00073 vtkSetMacro(NumberOfProcesses, int);
00074 vtkGetMacro(NumberOfProcesses, int);
00076
00078
00079 static void DeleteArray(vtkDataArray* da);
00080 static void ResizeFloatArray(vtkFloatArray* fa, int numComp,
00081 vtkIdType size);
00082 static void ResizeUnsignedCharArray(vtkUnsignedCharArray* uca,
00083 int numComp, vtkIdType size);
00085
00086 protected:
00087 vtkCompositer();
00088 ~vtkCompositer();
00089
00090 vtkMultiProcessController *Controller;
00091 int NumberOfProcesses;
00092
00093 private:
00094 vtkCompositer(const vtkCompositer&);
00095 void operator=(const vtkCompositer&);
00096 };
00097
00098 #endif