VTK
vtkPBGLCollectGraph.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPBGLCollectGraph.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 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
52 #ifndef vtkPBGLCollectGraph_h
53 #define vtkPBGLCollectGraph_h
54 
55 #include "vtkInfovisParallelModule.h" // For export macro
56 #include "vtkStdString.h" // For string type
57 
58 #include <vtksys/stl/utility> // for pair
59 #include <vtksys/stl/numeric> // for accumulate, partial_sum
60 #include <vtksys/stl/functional> // for plus
61 
62 #include "vtkGraphAlgorithm.h"
63 
64 class vtkSelection;
66 
67 #if !defined(VTK_LEGACY_REMOVE)
68 class VTKINFOVISPARALLEL_EXPORT vtkPBGLCollectGraph : public vtkGraphAlgorithm
69 {
70 public:
71  static vtkPBGLCollectGraph *New();
73  void PrintSelf(ostream& os, vtkIndent indent);
74 
76 
80  vtkGetMacro(TargetProcessor, int);
81  vtkSetMacro(TargetProcessor, int);
83 
85 
89  vtkGetMacro(ReplicateGraph, bool);
90  vtkSetMacro(ReplicateGraph, bool);
91  vtkBooleanMacro(ReplicateGraph, bool);
93 
95 
97  vtkGetMacro(CopyVertexData, bool);
98  vtkSetMacro(CopyVertexData, bool);
99  vtkBooleanMacro(CopyVertexData, bool);
101 
103 
105  vtkGetMacro(CopyEdgeData, bool);
106  vtkSetMacro(CopyEdgeData, bool);
107  vtkBooleanMacro(CopyEdgeData, bool);
109 
111 
114  vtkGetMacro(CreateOriginProcessArray, bool);
115  vtkSetMacro(CreateOriginProcessArray, bool);
116  vtkBooleanMacro(CreateOriginProcessArray, bool);
118 
120 
122  vtkSetStringMacro(OriginProcessArrayName);
124 
125 protected:
128 
129  virtual int RequestData(
130  vtkInformation *,
133 
134  virtual int FillInputPortInformation(
135  int port, vtkInformation* info);
136 
137  virtual int FillOutputPortInformation(
138  int port, vtkInformation* info);
139 
141 
144  void CopyStructureOfDataSetAttributes(vtkDataSetAttributes *inAttrs,
145  vtkDataSetAttributes *outAttrs,
146  vtkIdType numberOfTuples);
148 
149 private:
150  int TargetProcessor;
151  bool ReplicateGraph;
152  bool CopyVertexData;
153  bool CopyEdgeData;
154  bool CreateOriginProcessArray;
155  char * OriginProcessArrayName;
156 
157  vtkPBGLCollectGraph(const vtkPBGLCollectGraph&); // Not implemented.
158  void operator=(const vtkPBGLCollectGraph&); // Not implemented.
159 
160 };
161 
162 #endif //VTK_LEGACY_REMOVE
163 #endif
helper for the vtkGraph class that allows the graph to be distributed across multiple memory spaces...
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:44
int vtkIdType
Definition: vtkType.h:275
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Superclass for algorithms that produce only graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
represent and manipulate attribute data in a dataset
Collects all of the pieces of a distributed vtkGraph into a single, non-distributed vtkGraph...
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.
virtual int FillInputPortInformation(int port, vtkInformation *info)