VTK
vtkDuplicatePolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDuplicatePolyData.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 =========================================================================*/
25 #ifndef vtkDuplicatePolyData_h
26 #define vtkDuplicatePolyData_h
27 
28 #include "vtkFiltersParallelModule.h" // For export macro
29 #include "vtkPolyDataAlgorithm.h"
32 
33 class VTKFILTERSPARALLEL_EXPORT vtkDuplicatePolyData : public vtkPolyDataAlgorithm
34 {
35 public:
36  static vtkDuplicatePolyData *New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
45  virtual void SetController(vtkMultiProcessController*);
46  vtkGetObjectMacro(Controller, vtkMultiProcessController);
48 
49  void InitializeSchedule(int numProcs);
50 
52 
58  vtkSetMacro(Synchronous, vtkTypeBool);
59  vtkGetMacro(Synchronous, vtkTypeBool);
60  vtkBooleanMacro(Synchronous, vtkTypeBool);
62 
64 
70  vtkSocketController *GetSocketController() {return this->SocketController;}
71  void SetSocketController (vtkSocketController *controller);
72  vtkSetMacro(ClientFlag,int);
73  vtkGetMacro(ClientFlag,int);
75 
77 
82  vtkGetMacro(MemorySize, unsigned long);
84 
85 protected:
87  ~vtkDuplicatePolyData() override;
88 
89  // Data generation method
92  void ClientExecute(vtkPolyData *output);
93 
96 
99  int **Schedule;
100 
101  // For client server mode.
104 
105  unsigned long MemorySize;
106 
107 private:
109  void operator=(const vtkDuplicatePolyData&) = delete;
110 };
111 
112 #endif
113 
Process communication using Sockets.
Store vtkAlgorithm input/output information.
vtkSocketController * SocketController
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkMultiProcessController * Controller
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
For distributed tiled displays.
vtkSocketController * GetSocketController()
This duplicate filter works in client server mode when this controller is set.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Multiprocessing communication superclass.