VTK
vtkBoostKruskalMinimumSpanningTree.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkBoostKruskalMinimumSpanningTree.h
5 
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. 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 
45 #include "vtkSelectionAlgorithm.h"
46 
47 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostKruskalMinimumSpanningTree : public vtkSelectionAlgorithm
48 {
49 public:
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
55 
62  vtkSetStringMacro(EdgeWeightArrayName);
64 
66 
71  vtkSetStringMacro(OutputSelectionType);
73 
75 
82  void SetNegateEdgeWeights(bool value);
83  vtkGetMacro(NegateEdgeWeights, bool);
84  vtkBooleanMacro(NegateEdgeWeights, bool);
86 
87 protected:
90 
91  int RequestData(
94  vtkInformationVector *) override;
95 
97  int port, vtkInformation* info) override;
98 
100  int port, vtkInformation* info) override;
101 
102 private:
103  char* EdgeWeightArrayName;
104  char* OutputSelectionType;
105  bool NegateEdgeWeights;
106  float EdgeWeightMultiplier;
107 
109  void operator=(const vtkBoostKruskalMinimumSpanningTree&) = delete;
110 };
111 
112 #endif
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store vtkAlgorithm input/output information.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
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.
static vtkSelectionAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:39
Superclass for algorithms that produce only Selection as output.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store zero or more vtkInformation instances.