VTK  9.3.0
vtkBoostKruskalMinimumSpanningTree.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
19 #ifndef vtkBoostKruskalMinimumSpanningTree_h
20 #define vtkBoostKruskalMinimumSpanningTree_h
21 
22 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
23 #include "vtkVariant.h" // For variant type
24 
25 #include "vtkSelectionAlgorithm.h"
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostKruskalMinimumSpanningTree
29  : public vtkSelectionAlgorithm
30 {
31 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
37 
44  vtkSetStringMacro(EdgeWeightArrayName);
46 
48 
53  vtkSetStringMacro(OutputSelectionType);
55 
57 
65  vtkGetMacro(NegateEdgeWeights, bool);
66  vtkBooleanMacro(NegateEdgeWeights, bool);
68 
69 protected:
72 
74 
76 
78 
79 private:
80  char* EdgeWeightArrayName;
81  char* OutputSelectionType;
82  bool NegateEdgeWeights;
83  float EdgeWeightMultiplier;
84 
86  void operator=(const vtkBoostKruskalMinimumSpanningTree&) = delete;
87 };
88 
89 VTK_ABI_NAMESPACE_END
90 #endif
Constructs 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.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
void SetNegateEdgeWeights(bool value)
Whether to negate the edge weights.
static vtkBoostKruskalMinimumSpanningTree * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only Selection as output.
@ info
Definition: vtkX3D.h:376
@ value
Definition: vtkX3D.h:220
@ port
Definition: vtkX3D.h:447