37 #ifndef __vtkPBGLShortestPaths_h
38 #define __vtkPBGLShortestPaths_h
40 #include "vtkInfovisParallelModule.h"
41 #include "vtkStdString.h"
42 #include "vtkVariant.h"
44 #include "vtkGraphAlgorithm.h"
53 void PrintSelf(ostream& os, vtkIndent indent);
57 void SetOriginSelection(vtkSelection *s);
60 this->SetInputConnection(1, algOutput);
66 void SetOriginVertex(vtkIdType index);
72 void SetOriginVertex(vtkStdString arrayName, vtkVariant value);
78 void SetOriginVertexString(
char* arrayName,
char* value);
85 vtkSetStringMacro(EdgeWeightArrayName);
99 vtkSetMacro(Delta,
double);
108 vtkSetStringMacro(PredecessorArrayName);
118 vtkSetStringMacro(PathLengthArrayName);
126 vtkSetMacro(OriginFromSelection,
bool);
127 vtkGetMacro(OriginFromSelection,
bool);
128 vtkBooleanMacro(OriginFromSelection,
bool);
135 vtkGetMacro(OutputSelection,
bool);
136 vtkSetMacro(OutputSelection,
bool);
137 vtkBooleanMacro(OutputSelection,
bool);
144 vtkSetStringMacro(OutputSelectionType);
151 vtkSetMacro(UseUniformEdgeWeights,
bool);
152 vtkGetMacro(UseUniformEdgeWeights,
bool);
153 vtkBooleanMacro(UseUniformEdgeWeights,
bool);
161 virtual int RequestData(
163 vtkInformationVector **,
164 vtkInformationVector *);
166 virtual int FillInputPortInformation(
167 int port, vtkInformation* info);
169 virtual int FillOutputPortInformation(
170 int port, vtkInformation* info);
174 vtkIdType OriginVertexIndex;
175 char* InputArrayName;
176 char* EdgeWeightArrayName;
178 char* PredecessorArrayName;
179 char* PathLengthArrayName;
180 vtkVariant OriginValue;
181 bool OutputSelection;
182 bool OriginFromSelection;
183 bool UseUniformEdgeWeights;
184 char* OutputSelectionType;
188 vtkSetStringMacro(InputArrayName);
194 vtkIdType GetVertexIndex(
195 vtkAbstractArray *
abstract,vtkVariant value);
Compute the shortest paths from the origin vertex to all other vertices in a distributed vtkGraph...
void SetOriginSelectionConnection(vtkAlgorithmOutput *algOutput)