VTK
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 -------------------------------------------------------------------------*/
41 #ifndef vtkBoostBreadthFirstSearchTree_h
42 #define vtkBoostBreadthFirstSearchTree_h
43 
44 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
45 #include "vtkStdString.h" // For string type
46 #include "vtkVariant.h" // For variant type
47 
48 #include "vtkTreeAlgorithm.h"
49 
50 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostBreadthFirstSearchTree : public vtkTreeAlgorithm
51 {
52 public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
59  void SetOriginVertex(vtkIdType index);
60 
65  void SetOriginVertex(vtkStdString arrayName, vtkVariant value);
66 
68 
70  vtkSetMacro(CreateGraphVertexIdArray, bool);
71  vtkGetMacro(CreateGraphVertexIdArray, bool);
72  vtkBooleanMacro(CreateGraphVertexIdArray, bool);
74 
76 
77  vtkSetMacro(ReverseEdges, bool);
78  vtkGetMacro(ReverseEdges, bool);
79  vtkBooleanMacro(ReverseEdges, bool);
81 
82 protected:
85 
87 
89 
90 private:
91 
92  vtkIdType OriginVertexIndex;
93  char* ArrayName;
94  vtkVariant OriginValue;
95  bool ArrayNameSet;
96  bool CreateGraphVertexIdArray;
97  bool ReverseEdges;
98 
100 
101  vtkSetStringMacro(ArrayName);
103 
105 
107  vtkIdType GetVertexIndex(
108  vtkAbstractArray *abstract,vtkVariant value);
110 
112  void operator=(const vtkBoostBreadthFirstSearchTree&); // Not implemented.
113 };
114 
115 #endif
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
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)
int vtkIdType
Definition: vtkType.h:247
void PrintSelf(ostream &os, vtkIndent indent)
A atomic type representing the union of many types.
Definition: vtkVariant.h:78
Contructs a BFS tree from a graph.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()
virtual int FillInputPortInformation(int port, vtkInformation *info)