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  -------------------------------------------------------------------------*/
35 #ifndef vtkBoostKruskalMinimumSpanningTree_h
36 #define vtkBoostKruskalMinimumSpanningTree_h
37 
38 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
39 #include "vtkStdString.h" // For string type
40 #include "vtkVariant.h" // For variant type
41 
42 #include "vtkSelectionAlgorithm.h"
43 
44 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostKruskalMinimumSpanningTree : public vtkSelectionAlgorithm
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
59  vtkSetStringMacro(EdgeWeightArrayName);
61 
63 
68  vtkSetStringMacro(OutputSelectionType);
70 
72 
79  void SetNegateEdgeWeights(bool value);
80  vtkGetMacro(NegateEdgeWeights, bool);
81  vtkBooleanMacro(NegateEdgeWeights, bool);
83 
84 protected:
87 
88  int RequestData(
92 
94  int port, vtkInformation* info);
95 
97  int port, vtkInformation* info);
98 
99 private:
100  char* EdgeWeightArrayName;
101  char* OutputSelectionType;
102  bool NegateEdgeWeights;
103  float EdgeWeightMultiplier;
104 
106  void operator=(const vtkBoostKruskalMinimumSpanningTree&) VTK_DELETE_FUNCTION;
107 };
108 
109 #endif
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store vtkAlgorithm input/output information.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
Contructs a minimum spanning tree from a graph and the weighting array.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkSelectionAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:33
Superclass for algorithms that produce only Selection as output.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.