VTK  9.0.1
vtkCollectGraph.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCollectGraph.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 =========================================================================*/
15 /*----------------------------------------------------------------------------
16  Copyright (c) Sandia Corporation
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
27 #ifndef vtkCollectGraph_h
28 #define vtkCollectGraph_h
29 
30 #include "vtkFiltersParallelModule.h" // For export macro
31 #include "vtkGraphAlgorithm.h"
32 
35 
36 class VTKFILTERSPARALLEL_EXPORT vtkCollectGraph : public vtkGraphAlgorithm
37 {
38 public:
39  static vtkCollectGraph* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
49  vtkGetObjectMacro(Controller, vtkMultiProcessController);
51 
53 
59  vtkGetObjectMacro(SocketController, vtkSocketController);
61 
63 
66  vtkSetMacro(PassThrough, vtkTypeBool);
67  vtkGetMacro(PassThrough, vtkTypeBool);
68  vtkBooleanMacro(PassThrough, vtkTypeBool);
70 
71  enum
72  {
75  USE_INPUT_TYPE
76  };
77 
79 
87  vtkSetMacro(OutputType, int);
88  vtkGetMacro(OutputType, int);
90 
91 protected:
93  ~vtkCollectGraph() override;
94 
97 
98  // Data generation method
102 
105 
106 private:
107  vtkCollectGraph(const vtkCollectGraph&) = delete;
108  void operator=(const vtkCollectGraph&) = delete;
109 };
110 
111 #endif
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:52
vtkCollectGraph::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCollectGraph::RequestDataObject
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkCollectGraph::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkCollectGraph
Collect distributed graph.
Definition: vtkCollectGraph.h:37
vtkCollectGraph::vtkCollectGraph
vtkCollectGraph()
vtkCollectGraph::~vtkCollectGraph
~vtkCollectGraph() override
vtkCollectGraph::OutputType
int OutputType
Definition: vtkCollectGraph.h:96
vtkCollectGraph::UNDIRECTED_OUTPUT
@ UNDIRECTED_OUTPUT
Definition: vtkCollectGraph.h:74
vtkCollectGraph::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkCollectGraph::New
static vtkCollectGraph * New()
vtkGraphAlgorithm.h
vtkCollectGraph::SetController
virtual void SetController(vtkMultiProcessController *)
By default this filter uses the global controller, but this method can be used to set another instead...
vtkCollectGraph::Controller
vtkMultiProcessController * Controller
Definition: vtkCollectGraph.h:103
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:76
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:65
vtkCollectGraph::PassThrough
vtkTypeBool PassThrough
Definition: vtkCollectGraph.h:95
vtkCollectGraph::DIRECTED_OUTPUT
@ DIRECTED_OUTPUT
Definition: vtkCollectGraph.h:73
vtkSocketController
Process communication using Sockets.
Definition: vtkSocketController.h:50
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkCollectGraph::SocketController
vtkSocketController * SocketController
Definition: vtkCollectGraph.h:104
vtkCollectGraph::SetSocketController
virtual void SetSocketController(vtkSocketController *)
When this filter is being used in client-server mode, this is the controller used to communicate betw...