VTK  9.3.1
vtkBoostBreadthFirstSearchTree.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
23 #ifndef vtkBoostBreadthFirstSearchTree_h
24 #define vtkBoostBreadthFirstSearchTree_h
25 
26 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
27 #include "vtkStdString.h" // For string type
28 #include "vtkVariant.h" // For variant type
29 
30 #include "vtkTreeAlgorithm.h"
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostBreadthFirstSearchTree : public vtkTreeAlgorithm
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
44  void SetOriginVertex(vtkIdType index);
45 
53  void SetOriginVertex(vtkStdString arrayName, vtkVariant value);
54 
56 
60  vtkSetMacro(CreateGraphVertexIdArray, bool);
61  vtkGetMacro(CreateGraphVertexIdArray, bool);
62  vtkBooleanMacro(CreateGraphVertexIdArray, bool);
64 
66 
69  vtkSetMacro(ReverseEdges, bool);
70  vtkGetMacro(ReverseEdges, bool);
71  vtkBooleanMacro(ReverseEdges, bool);
73 
74 protected:
77 
79 
81 
82 private:
83  vtkIdType OriginVertexIndex;
84  char* ArrayName;
85  vtkVariant OriginValue;
86  bool ArrayNameSet;
87  bool CreateGraphVertexIdArray;
88  bool ReverseEdges;
89 
91 
94  vtkSetStringMacro(ArrayName);
96 
101  vtkIdType GetVertexIndex(vtkAbstractArray* abstract, vtkVariant value);
102 
104  void operator=(const vtkBoostBreadthFirstSearchTree&) = delete;
105 };
106 
107 VTK_ABI_NAMESPACE_END
108 #endif
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:28
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int vtkIdType
Definition: vtkType.h:315
A type representing the union of many types.
Definition: vtkVariant.h:52
Constructs a BFS tree from a graph.
a simple class to control print indentation
Definition: vtkIndent.h:28
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.