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 
34 #ifndef vtkBoostBetweennessClustering_h
35 #define vtkBoostBetweennessClustering_h
36 
37 #include "vtkGraphAlgorithm.h"
38 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
39 
40 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostBetweennessClustering :
41  public vtkGraphAlgorithm
42 {
43 public:
46  void PrintSelf(ostream &os, vtkIndent indent) override;
47 
50 
52 
56  vtkSetMacro(Threshold, double);
57  vtkGetMacro(Threshold, double);
59 
61 
65  vtkSetMacro(UseEdgeWeightArray, bool);
66  vtkBooleanMacro(UseEdgeWeightArray, bool);
68 
69  vtkSetMacro(InvertEdgeWeightArray, bool);
70  vtkBooleanMacro(InvertEdgeWeightArray, bool);
71 
73 
77  vtkGetStringMacro(EdgeWeightArrayName);
78  vtkSetStringMacro(EdgeWeightArrayName);
80 
82 
86  vtkSetStringMacro(EdgeCentralityArrayName);
88 
89 protected:
90 
91  virtual int RequestData(vtkInformation* request,
92  vtkInformationVector** inputVector,
93  vtkInformationVector* outputVector) override;
94 
95  virtual int FillOutputPortInformation(int port, vtkInformation* info) override;
96 
97 
98 private:
99 
100  double Threshold;
101  bool UseEdgeWeightArray;
102  bool InvertEdgeWeightArray;
103  char* EdgeWeightArrayName;
104  char* EdgeCentralityArrayName;
105 
107  void operator=(const vtkBoostBetweennessClustering&) = delete;
108 };
109 
110 #endif // vtkBoostBetweennessClustering_h
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:54
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkBoostBetweennessClustering
Implements graph clustering based on edge betweenness centrality.
Definition: vtkBoostBetweennessClustering.h:40
vtkX3D::port
Definition: vtkX3D.h:447
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:39
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:70
vtkX3D::info
Definition: vtkX3D.h:376
vtkGraphAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkGraphAlgorithm::New
static vtkGraphAlgorithm * New()