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 -------------------------------------------------------------------------*/
48 #ifndef vtkBoostBreadthFirstSearchTree_h
49 #define vtkBoostBreadthFirstSearchTree_h
50 
51 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
52 #include "vtkStdString.h" // For string type
53 #include "vtkVariant.h" // For variant type
54 
55 #include "vtkTreeAlgorithm.h"
56 
57 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostBreadthFirstSearchTree : public vtkTreeAlgorithm
58 {
59 public:
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
69 
78 
80 
84  vtkSetMacro(CreateGraphVertexIdArray, bool);
85  vtkGetMacro(CreateGraphVertexIdArray, bool);
86  vtkBooleanMacro(CreateGraphVertexIdArray, bool);
88 
90 
93  vtkSetMacro(ReverseEdges, bool);
94  vtkGetMacro(ReverseEdges, bool);
95  vtkBooleanMacro(ReverseEdges, bool);
97 
98 protected:
101 
103 
105 
106 private:
107  vtkIdType OriginVertexIndex;
108  char* ArrayName;
109  vtkVariant OriginValue;
110  bool ArrayNameSet;
111  bool CreateGraphVertexIdArray;
112  bool ReverseEdges;
113 
115 
118  vtkSetStringMacro(ArrayName);
120 
125  vtkIdType GetVertexIndex(vtkAbstractArray* abstract, vtkVariant value);
126 
128  void operator=(const vtkBoostBreadthFirstSearchTree&) = delete;
129 };
130 
131 #endif
Abstract superclass for all arrays.
Constructs a BFS tree from a graph.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetOriginVertex(vtkStdString arrayName, vtkVariant value)
Set the breadth first search 'origin' vertex.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkBoostBreadthFirstSearchTree * New()
~vtkBoostBreadthFirstSearchTree() override
void SetOriginVertex(vtkIdType index)
Set the index (into the vertex array) of the breadth first search 'origin' vertex.
a simple class to control print indentation
Definition: vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:48
Superclass for algorithms that produce only Tree as output.
A atomic type representing the union of many types.
Definition: vtkVariant.h:79
@ info
Definition: vtkX3D.h:382
@ value
Definition: vtkX3D.h:226
@ port
Definition: vtkX3D.h:453
@ index
Definition: vtkX3D.h:252
int vtkIdType
Definition: vtkType.h:332