VTK  9.4.20241218
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
26
27VTK_ABI_NAMESPACE_BEGIN
28class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostKruskalMinimumSpanningTree
30{
31public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
37
44 vtkSetStringMacro(EdgeWeightArrayName);
46
48
53 vtkSetStringMacro(OutputSelectionType);
55
57
64 void SetNegateEdgeWeights(bool value);
65 vtkGetMacro(NegateEdgeWeights, bool);
66 vtkBooleanMacro(NegateEdgeWeights, bool);
68
69protected:
72
74
75 int FillInputPortInformation(int port, vtkInformation* info) override;
76
77 int FillOutputPortInformation(int port, vtkInformation* info) override;
78
79private:
80 char* EdgeWeightArrayName;
81 char* OutputSelectionType;
82 bool NegateEdgeWeights;
83 float EdgeWeightMultiplier;
84
86 void operator=(const vtkBoostKruskalMinimumSpanningTree&) = delete;
87};
88
89VTK_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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only Selection as output.