VTK
vtkBoostBetweennessClustering.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBoostGraphAdapter.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 
31 #ifndef vtkBoostBetweennessClustering_h
32 #define vtkBoostBetweennessClustering_h
33 
34 #include "vtkGraphAlgorithm.h"
35 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
36 
37 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostBetweennessClustering : public vtkGraphAlgorithm
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
46 
48 
52  vtkSetMacro(Threshold, double);
53  vtkGetMacro(Threshold, double);
55 
57 
61  vtkSetMacro(UseEdgeWeightArray, bool);
62  vtkBooleanMacro(UseEdgeWeightArray, bool);
64 
65  vtkSetMacro(InvertEdgeWeightArray, bool);
66  vtkBooleanMacro(InvertEdgeWeightArray, bool);
67 
69 
73  vtkGetStringMacro(EdgeWeightArrayName);
74  vtkSetStringMacro(EdgeWeightArrayName);
76 
78 
82  vtkSetStringMacro(EdgeCentralityArrayName);
84 
85 protected:
86  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
87  vtkInformationVector* outputVector) override;
88 
89  virtual int FillOutputPortInformation(int port, vtkInformation* info) override;
90 
91 private:
92  double Threshold;
93  bool UseEdgeWeightArray;
94  bool InvertEdgeWeightArray;
95  char* EdgeWeightArrayName;
96  char* EdgeCentralityArrayName;
97 
99  void operator=(const vtkBoostBetweennessClustering&) = delete;
100 };
101 
102 #endif // vtkBoostBetweennessClustering_h
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:51
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkBoostBetweennessClustering
Implements graph clustering based on edge betweenness centrality.
Definition: vtkBoostBetweennessClustering.h:37
vtkX3D::port
Definition: vtkX3D.h:453
vtkGraphAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphAlgorithm.h
vtkGraphAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:64
vtkX3D::info
Definition: vtkX3D.h:382
vtkGraphAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkGraphAlgorithm::New
static vtkGraphAlgorithm * New()