VTK
vtkBoostPrimMinimumSpanningTree.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkBoostPrimMinimumSpanningTree.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 __vtkBoostPrimMinimumSpanningTree_h
49 #define __vtkBoostPrimMinimumSpanningTree_h
50 
51 #include "vtkStdString.h" // For string type
52 #include "vtkVariant.h" // For variant type
53 
54 #include "vtkTreeAlgorithm.h"
55 
57 {
58 public:
61  void PrintSelf(ostream& os, vtkIndent indent);
62 
64 
68  vtkSetStringMacro(EdgeWeightArrayName);
70 
73  void SetOriginVertex(vtkIdType index);
74 
79  void SetOriginVertex(vtkStdString arrayName, vtkVariant value);
80 
82 
84  vtkSetMacro(CreateGraphVertexIdArray, bool);
85  vtkGetMacro(CreateGraphVertexIdArray, bool);
86  vtkBooleanMacro(CreateGraphVertexIdArray, bool);
88 
90 
94  void SetNegateEdgeWeights(bool value);
95  vtkGetMacro(NegateEdgeWeights, bool);
96  vtkBooleanMacro(NegateEdgeWeights, bool);
98 
99 protected:
102 
103  int RequestData(
104  vtkInformation *,
107 
109  int port, vtkInformation* info);
110 
111 private:
112  char* EdgeWeightArrayName;
113  vtkIdType OriginVertexIndex;
114  vtkVariant OriginValue;
115  bool CreateGraphVertexIdArray;
116  bool ArrayNameSet;
117  char* ArrayName;
118  bool NegateEdgeWeights;
119  float EdgeWeightMultiplier;
120 
122 
123  vtkSetStringMacro(ArrayName);
125 
127 
129  vtkIdType GetVertexIndex(
130  vtkAbstractArray *abstract,vtkVariant value);
132 
134  void operator=(const vtkBoostPrimMinimumSpanningTree&); // Not implemented.
135 };
136 
137 #endif