VTK  9.1.0
vtkBoostKruskalMinimumSpanningTree.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: Visualization Toolkit
4Module: vtkBoostKruskalMinimumSpanningTree.h
5
6Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7All rights reserved.
8See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10This software is distributed WITHOUT ANY WARRANTY; without even
11the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12PURPOSE. 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
43
44class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostKruskalMinimumSpanningTree
46{
47public:
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
60 vtkSetStringMacro(EdgeWeightArrayName);
62
64
69 vtkSetStringMacro(OutputSelectionType);
71
73
81 vtkGetMacro(NegateEdgeWeights, bool);
82 vtkBooleanMacro(NegateEdgeWeights, bool);
84
85protected:
88
90
92
94
95private:
96 char* EdgeWeightArrayName;
97 char* OutputSelectionType;
98 bool NegateEdgeWeights;
99 float EdgeWeightMultiplier;
100
102 void operator=(const vtkBoostKruskalMinimumSpanningTree&) = delete;
103};
104
105#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:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only Selection as output.
@ info
Definition: vtkX3D.h:382
@ value
Definition: vtkX3D.h:226
@ port
Definition: vtkX3D.h:453