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);
39 
41 
45  virtual void SetController(vtkMultiProcessController*);
46  vtkGetObjectMacro(Controller, vtkMultiProcessController);
48 
49  void InitializeSchedule(int numProcs);
50 
52 
58  vtkSetMacro(Synchronous, int);
59  vtkGetMacro(Synchronous, int);
60  vtkBooleanMacro(Synchronous, int);
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:
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:
108  vtkDuplicatePolyData(const vtkDuplicatePolyData&) VTK_DELETE_FUNCTION;
109  void operator=(const vtkDuplicatePolyData&) VTK_DELETE_FUNCTION;
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()
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.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkSocketController * GetSocketController()
This duplicate filter works in client server mode when this controller is set.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Multiprocessing communication superclass.