VTK: Infovis/BoostGraphAlgorithms/vtkBoostKruskalMinimumSpanningTree.h Source File

| VTK 9.3.1

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:
32 static vtkBoostKruskalMinimumSpanningTree* New();
33 vtkTypeMacro(vtkBoostKruskalMinimumSpanningTree, vtkSelectionAlgorithm);
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
69 protected:
70 vtkBoostKruskalMinimumSpanningTree();
71 ~vtkBoostKruskalMinimumSpanningTree() override;
72
73 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
74
75 int FillInputPortInformation(int port, vtkInformation* info) override;
76
77 int FillOutputPortInformation(int port, vtkInformation* info) override;
78
79 private:
80 char* EdgeWeightArrayName;
81 char* OutputSelectionType;
82 bool NegateEdgeWeights;
83 float EdgeWeightMultiplier;
84
85 vtkBoostKruskalMinimumSpanningTree(const vtkBoostKruskalMinimumSpanningTree&) = delete;
86 void operator=(const vtkBoostKruskalMinimumSpanningTree&) = delete;
87 };
88
89 VTK_ABI_NAMESPACE_END
90 #endif
vtkBoostKruskalMinimumSpanningTree
Constructs a minimum spanning tree from a graph and the weighting array.
Definition: vtkBoostKruskalMinimumSpanningTree.h:30
vtkBoostKruskalMinimumSpanningTree::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkBoostKruskalMinimumSpanningTree::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkBoostKruskalMinimumSpanningTree::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkBoostKruskalMinimumSpanningTree::SetNegateEdgeWeights
void SetNegateEdgeWeights(bool value)
Whether to negate the edge weights.
vtkBoostKruskalMinimumSpanningTree::New
static vtkBoostKruskalMinimumSpanningTree * New()
vtkBoostKruskalMinimumSpanningTree::vtkBoostKruskalMinimumSpanningTree
vtkBoostKruskalMinimumSpanningTree()
vtkBoostKruskalMinimumSpanningTree::~vtkBoostKruskalMinimumSpanningTree
~vtkBoostKruskalMinimumSpanningTree() override
vtkBoostKruskalMinimumSpanningTree::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkSelectionAlgorithm
Superclass for algorithms that produce only Selection as output.
Definition: vtkSelectionAlgorithm.h:36
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::value
@ value
Definition: vtkX3D.h:220
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkSelectionAlgorithm.h
vtkVariant.h