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 "vtkStdString.h" // For string type
45 #include "vtkVariant.h" // For variant type
46 
47 #include "vtkTreeAlgorithm.h"
48 
50 {
51 public:
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
58  void SetOriginVertex(vtkIdType index);
59 
64  void SetOriginVertex(vtkStdString arrayName, vtkVariant value);
65 
67 
69  vtkSetMacro(CreateGraphVertexIdArray, bool);
70  vtkGetMacro(CreateGraphVertexIdArray, bool);
71  vtkBooleanMacro(CreateGraphVertexIdArray, bool);
73 
75 
76  vtkSetMacro(ReverseEdges, bool);
77  vtkGetMacro(ReverseEdges, bool);
78  vtkBooleanMacro(ReverseEdges, bool);
80 
81 protected:
84 
86 
88 
89 private:
90 
91  vtkIdType OriginVertexIndex;
92  char* ArrayName;
93  vtkVariant OriginValue;
94  bool ArrayNameSet;
95  bool CreateGraphVertexIdArray;
96  bool ReverseEdges;
97 
99 
100  vtkSetStringMacro(ArrayName);
102 
104 
106  vtkIdType GetVertexIndex(
107  vtkAbstractArray *abstract,vtkVariant value);
109 
111  void operator=(const vtkBoostBreadthFirstSearchTree&); // Not implemented.
112 };
113 
114 #endif