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:
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 
135  int port, vtkInformation* info);
136 
138  int port, vtkInformation* info);
139 
141 
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
vtkStdString.h
vtkPBGLCollectGraph::vtkPBGLCollectGraph
vtkPBGLCollectGraph()
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:54
vtkDistributedGraphHelper
helper for the vtkGraph class that allows the graph to be distributed across multiple memory spaces.
Definition: vtkDistributedGraphHelper.h:80
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkDataSetAttributes
represent and manipulate attribute data in a dataset
Definition: vtkDataSetAttributes.h:58
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPBGLCollectGraph::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkSelection
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:45
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkPBGLCollectGraph::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGraphAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkPBGLCollectGraph::New
static vtkPBGLCollectGraph * New()
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkPBGLCollectGraph::~vtkPBGLCollectGraph
~vtkPBGLCollectGraph()
vtkPBGLCollectGraph::CopyStructureOfDataSetAttributes
void CopyStructureOfDataSetAttributes(vtkDataSetAttributes *inAttrs, vtkDataSetAttributes *outAttrs, vtkIdType numberOfTuples)
vtkPBGLCollectGraph::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPBGLCollectGraph::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkPBGLCollectGraph
Collects all of the pieces of a distributed vtkGraph into a single, non-distributed vtkGraph.
Definition: vtkPBGLCollectGraph.h:69