VTK  9.3.1
vtkCollectGraph.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkCollectGraph_h
13 #define vtkCollectGraph_h
14 
15 #include "vtkFiltersParallelModule.h" // For export macro
16 #include "vtkGraphAlgorithm.h"
17 
18 VTK_ABI_NAMESPACE_BEGIN
21 
22 class VTKFILTERSPARALLEL_EXPORT vtkCollectGraph : public vtkGraphAlgorithm
23 {
24 public:
25  static vtkCollectGraph* New();
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
30 
34  virtual void SetController(vtkMultiProcessController*);
35  vtkGetObjectMacro(Controller, vtkMultiProcessController);
37 
39 
44  virtual void SetSocketController(vtkSocketController*);
45  vtkGetObjectMacro(SocketController, vtkSocketController);
47 
49 
52  vtkSetMacro(PassThrough, vtkTypeBool);
53  vtkGetMacro(PassThrough, vtkTypeBool);
54  vtkBooleanMacro(PassThrough, vtkTypeBool);
56 
57  enum
58  {
61  USE_INPUT_TYPE
62  };
63 
65 
73  vtkSetMacro(OutputType, int);
74  vtkGetMacro(OutputType, int);
76 
77 protected:
79  ~vtkCollectGraph() override;
80 
83 
84  // Data generation method
88 
91 
92 private:
93  vtkCollectGraph(const vtkCollectGraph&) = delete;
94  void operator=(const vtkCollectGraph&) = delete;
95 };
96 
97 VTK_ABI_NAMESPACE_END
98 #endif
static vtkGraphAlgorithm * New()
Process communication using Sockets.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
Collect distributed graph.
Superclass for algorithms that produce only graph as output.
vtkTypeBool PassThrough
int vtkTypeBool
Definition: vtkABI.h:64
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkSocketController * SocketController
vtkMultiProcessController * Controller
Store zero or more vtkInformation instances.
Multiprocessing communication superclass.