VTK
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 -------------------------------------------------------------------------*/
38#ifndef vtkBoostKruskalMinimumSpanningTree_h
39#define vtkBoostKruskalMinimumSpanningTree_h
40
41#include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
42#include "vtkStdString.h" // For string type
43#include "vtkVariant.h" // For variant type
44
46
47class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostKruskalMinimumSpanningTree : public vtkSelectionAlgorithm
48{
49public:
52 void PrintSelf(ostream& os, vtkIndent indent);
53
55
62 vtkSetStringMacro(EdgeWeightArrayName);
64
66
71 vtkSetStringMacro(OutputSelectionType);
73
75
83 vtkGetMacro(NegateEdgeWeights, bool);
84 vtkBooleanMacro(NegateEdgeWeights, bool);
86
87protected:
90
95
98
100 int port, vtkInformation* info);
101
102private:
103 char* EdgeWeightArrayName;
104 char* OutputSelectionType;
105 bool NegateEdgeWeights;
106 float EdgeWeightMultiplier;
107
109 void operator=(const vtkBoostKruskalMinimumSpanningTree&) VTK_DELETE_FUNCTION;
110};
111
112#endif
Contructs a minimum spanning tree from a graph and the weighting array.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
void SetNegateEdgeWeights(bool value)
Whether to negate the edge weights.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
static vtkBoostKruskalMinimumSpanningTree * New()
a simple class to control print indentation
Definition: vtkIndent.h:40
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
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.