VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkCollectPolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCollectPolyData.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 =========================================================================*/
22 #ifndef __vtkCollectPolyData_h
23 #define __vtkCollectPolyData_h
24 
25 #include "vtkFiltersParallelModule.h" // For export macro
26 #include "vtkPolyDataAlgorithm.h"
27 
28 class vtkMultiProcessController;
29 class vtkSocketController;
30 
31 class VTKFILTERSPARALLEL_EXPORT vtkCollectPolyData : public vtkPolyDataAlgorithm
32 {
33 public:
34  static vtkCollectPolyData *New();
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
39 
41  virtual void SetController(vtkMultiProcessController*);
42  vtkGetObjectMacro(Controller, vtkMultiProcessController);
44 
46 
49  virtual void SetSocketController(vtkSocketController*);
50  vtkGetObjectMacro(SocketController, vtkSocketController);
52 
54 
55  vtkSetMacro(PassThrough, int);
56  vtkGetMacro(PassThrough, int);
57  vtkBooleanMacro(PassThrough, int);
59 
60 protected:
63 
65 
66  // Data generation method
67  virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
68  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
69  virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
70 
71  vtkMultiProcessController *Controller;
72  vtkSocketController *SocketController;
73 
74 private:
75  vtkCollectPolyData(const vtkCollectPolyData&); // Not implemented
76  void operator=(const vtkCollectPolyData&); // Not implemented
77 };
78 
79 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
vtkSocketController * SocketController
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkMultiProcessController * Controller
Superclass for algorithms that produce only polydata as output.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Collect distributed polydata.