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

vtkCollectPolyData.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkCollectPolyData.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 =========================================================================*/
00033 #ifndef __vtkCollectPolyData_h
00034 #define __vtkCollectPolyData_h
00035 
00036 #include "vtkPolyDataToPolyDataFilter.h"
00037 
00038 class vtkMultiProcessController;
00039 class vtkSocketController;
00040 
00041 class VTK_PARALLEL_EXPORT vtkCollectPolyData : public vtkPolyDataToPolyDataFilter
00042 {
00043 public:
00044   static vtkCollectPolyData *New();
00045   vtkTypeRevisionMacro(vtkCollectPolyData, vtkPolyDataToPolyDataFilter);
00046   void PrintSelf(ostream& os, vtkIndent indent);
00047   
00049 
00051   virtual void SetController(vtkMultiProcessController*);
00052   vtkGetObjectMacro(Controller, vtkMultiProcessController);
00054 
00056 
00059   virtual void SetSocketController(vtkSocketController*);
00060   vtkGetObjectMacro(SocketController, vtkSocketController);
00062 
00064 
00065   vtkSetMacro(PassThrough, int);
00066   vtkGetMacro(PassThrough, int);
00067   vtkBooleanMacro(PassThrough, int);
00069 
00070 protected:
00071   vtkCollectPolyData();
00072   ~vtkCollectPolyData();
00073 
00074   int PassThrough;
00075 
00076   // Data generation method
00077   void ComputeInputUpdateExtents(vtkDataObject *output);
00078   void ExecuteData(vtkDataObject*);
00079   void ExecuteInformation();
00080 
00081   vtkMultiProcessController *Controller;
00082   vtkSocketController *SocketController;
00083 
00084 private:
00085   vtkCollectPolyData(const vtkCollectPolyData&); // Not implemented
00086   void operator=(const vtkCollectPolyData&); // Not implemented
00087 };
00088 
00089 #endif