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  -------------------------------------------------------------------------*/
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 
42 #include "vtkSelectionAlgorithm.h"
43 
44 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostKruskalMinimumSpanningTree
45  : public vtkSelectionAlgorithm
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
60  vtkSetStringMacro(EdgeWeightArrayName);
62 
64 
69  vtkSetStringMacro(OutputSelectionType);
71 
73 
80  void SetNegateEdgeWeights(bool value);
81  vtkGetMacro(NegateEdgeWeights, bool);
82  vtkBooleanMacro(NegateEdgeWeights, bool);
84 
85 protected:
88 
90 
92 
94 
95 private:
96  char* EdgeWeightArrayName;
97  char* OutputSelectionType;
98  bool NegateEdgeWeights;
99  float EdgeWeightMultiplier;
100 
102  void operator=(const vtkBoostKruskalMinimumSpanningTree&) = delete;
103 };
104 
105 #endif
vtkStdString.h
vtkVariant.h
vtkSelectionAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkX3D::value
Definition: vtkX3D.h:226
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkSelectionAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkSelectionAlgorithm.h
vtkSelectionAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::port
Definition: vtkX3D.h:453
vtkBoostKruskalMinimumSpanningTree
Constructs a minimum spanning tree from a graph and the weighting array.
Definition: vtkBoostKruskalMinimumSpanningTree.h:44
vtkSelectionAlgorithm::New
static vtkSelectionAlgorithm * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSelectionAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:64
vtkX3D::info
Definition: vtkX3D.h:382
vtkSelectionAlgorithm
Superclass for algorithms that produce only Selection as output.
Definition: vtkSelectionAlgorithm.h:46