VTK
vtkBoostKruskalMinimumSpanningTree.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkBoostKruskalMinimumSpanningTree.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  -------------------------------------------------------------------------*/
37 #ifndef vtkBoostKruskalMinimumSpanningTree_h
38 #define vtkBoostKruskalMinimumSpanningTree_h
39 
40 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
41 #include "vtkStdString.h" // For string type
42 #include "vtkVariant.h" // For variant type
43 
44 #include "vtkSelectionAlgorithm.h"
45 
46 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostKruskalMinimumSpanningTree : public vtkSelectionAlgorithm
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
54 
58  vtkSetStringMacro(EdgeWeightArrayName);
60 
62 
65  vtkSetStringMacro(OutputSelectionType);
67 
69 
73  void SetNegateEdgeWeights(bool value);
74  vtkGetMacro(NegateEdgeWeights, bool);
75  vtkBooleanMacro(NegateEdgeWeights, bool);
77 
78 protected:
81 
82  int RequestData(
86 
88  int port, vtkInformation* info);
89 
91  int port, vtkInformation* info);
92 
93 private:
94  char* EdgeWeightArrayName;
95  char* OutputSelectionType;
96  bool NegateEdgeWeights;
97  float EdgeWeightMultiplier;
98 
100  void operator=(const vtkBoostKruskalMinimumSpanningTree&); // Not implemented.
101 };
102 
103 #endif
Store vtkAlgorithm input/output information.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Contructs a minimum spanning tree from a graph and the weighting array.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
static vtkSelectionAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:38
Superclass for algorithms that produce only Selection as output.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)