VTK  9.2.6
vtkBoostBreadthFirstSearchTree.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBoostBreadthFirstSearchTree.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 -------------------------------------------------------------------------*/
39 #ifndef vtkBoostBreadthFirstSearchTree_h
40 #define vtkBoostBreadthFirstSearchTree_h
41 
42 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
43 #include "vtkStdString.h" // For string type
44 #include "vtkVariant.h" // For variant type
45 
46 #include "vtkTreeAlgorithm.h"
47 
48 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostBreadthFirstSearchTree : public vtkTreeAlgorithm
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
59  void SetOriginVertex(vtkIdType index);
60 
68  void SetOriginVertex(vtkStdString arrayName, vtkVariant value);
69 
71 
75  vtkSetMacro(CreateGraphVertexIdArray, bool);
76  vtkGetMacro(CreateGraphVertexIdArray, bool);
77  vtkBooleanMacro(CreateGraphVertexIdArray, bool);
79 
81 
84  vtkSetMacro(ReverseEdges, bool);
85  vtkGetMacro(ReverseEdges, bool);
86  vtkBooleanMacro(ReverseEdges, bool);
88 
89 protected:
92 
94 
96 
97 private:
98  vtkIdType OriginVertexIndex;
99  char* ArrayName;
100  vtkVariant OriginValue;
101  bool ArrayNameSet;
102  bool CreateGraphVertexIdArray;
103  bool ReverseEdges;
104 
106 
109  vtkSetStringMacro(ArrayName);
111 
116  vtkIdType GetVertexIndex(vtkAbstractArray* abstract, vtkVariant value);
117 
119  void operator=(const vtkBoostBreadthFirstSearchTree&) = delete;
120 };
121 
122 #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:38
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:332
A atomic type representing the union of many types.
Definition: vtkVariant.h:69
Constructs a BFS tree from a graph.
a simple class to control print indentation
Definition: vtkIndent.h:39
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.