VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkBoostGraphAdapter.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 00033 #ifndef vtkBoostBetweennessClustering_h 00034 #define vtkBoostBetweennessClustering_h 00035 00036 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro 00037 #include "vtkGraphAlgorithm.h" 00038 00039 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostBetweennessClustering : 00040 public vtkGraphAlgorithm 00041 { 00042 public: 00043 static vtkBoostBetweennessClustering* New(); 00044 vtkTypeMacro(vtkBoostBetweennessClustering, vtkGraphAlgorithm); 00045 void PrintSelf(ostream &os, vtkIndent indent); 00046 00047 vtkBoostBetweennessClustering(); 00048 virtual ~vtkBoostBetweennessClustering(); 00049 00051 00053 vtkSetMacro(Threshold, double); 00054 vtkGetMacro(Threshold, double); 00056 00058 00060 vtkSetMacro(UseEdgeWeightArray, bool); 00061 vtkBooleanMacro(UseEdgeWeightArray, bool); 00063 00064 vtkSetMacro(InvertEdgeWeightArray, bool); 00065 vtkBooleanMacro(InvertEdgeWeightArray, bool); 00066 00068 00070 vtkGetStringMacro(EdgeWeightArrayName); 00071 vtkSetStringMacro(EdgeWeightArrayName); 00073 00075 00077 vtkSetStringMacro(EdgeCentralityArrayName); 00079 00080 protected: 00081 00082 virtual int RequestData(vtkInformation* request, 00083 vtkInformationVector** inputVector, 00084 vtkInformationVector* outputVector); 00085 00086 virtual int FillOutputPortInformation(int port, vtkInformation* info); 00087 00088 00089 private: 00090 00091 double Threshold; 00092 bool UseEdgeWeightArray; 00093 bool InvertEdgeWeightArray; 00094 char* EdgeWeightArrayName; 00095 char* EdgeCentralityArrayName; 00096 00097 vtkBoostBetweennessClustering(const vtkBoostBetweennessClustering&); // Not implemented. 00098 void operator=(const vtkBoostBetweennessClustering&); // Not implemented. 00099 }; 00100 00101 #endif // vtkBoostBetweennessClustering_h