Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkCompositer.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkCompositer.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
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&); // Not implemented
00095   void operator=(const vtkCompositer&); // Not implemented
00096 };
00097 
00098 #endif