VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkBoostBrandesCentrality.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 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00040 #ifndef __vtkBoostBrandesCentrality_h 00041 #define __vtkBoostBrandesCentrality_h 00042 00043 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro 00044 #include "vtkVariant.h" // For variant type 00045 00046 #include "vtkGraphAlgorithm.h" 00047 00048 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostBrandesCentrality : public vtkGraphAlgorithm 00049 { 00050 public: 00051 static vtkBoostBrandesCentrality *New(); 00052 vtkTypeMacro(vtkBoostBrandesCentrality, vtkGraphAlgorithm); 00053 void PrintSelf(ostream& os, vtkIndent indent); 00054 00056 00058 vtkSetMacro(UseEdgeWeightArray, bool); 00059 vtkBooleanMacro(UseEdgeWeightArray, bool); 00061 00062 vtkSetMacro(InvertEdgeWeightArray, bool); 00063 vtkBooleanMacro(InvertEdgeWeightArray, bool); 00064 00066 00068 vtkGetStringMacro(EdgeWeightArrayName); 00069 vtkSetStringMacro(EdgeWeightArrayName); 00071 00072 protected: 00073 vtkBoostBrandesCentrality(); 00074 ~vtkBoostBrandesCentrality(); 00075 00076 int RequestData(vtkInformation *, vtkInformationVector **, 00077 vtkInformationVector *); 00078 00079 00080 private: 00081 00082 bool UseEdgeWeightArray; 00083 bool InvertEdgeWeightArray; 00084 char* EdgeWeightArrayName; 00085 00086 vtkBoostBrandesCentrality(const vtkBoostBrandesCentrality&); // Not implemented. 00087 void operator=(const vtkBoostBrandesCentrality&); // Not implemented. 00088 }; 00089 00090 #endif