VTK
dox/Infovis/vtkBoostBrandesCentrality.h
Go to the documentation of this file.
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 "vtkVariant.h" // For variant type
00044 
00045 #include "vtkGraphAlgorithm.h"
00046 
00047 class VTK_INFOVIS_EXPORT vtkBoostBrandesCentrality : public vtkGraphAlgorithm 
00048 {
00049 public:
00050   static vtkBoostBrandesCentrality *New();
00051   vtkTypeMacro(vtkBoostBrandesCentrality, vtkGraphAlgorithm);
00052   void PrintSelf(ostream& os, vtkIndent indent);
00053 
00054 protected:
00055   vtkBoostBrandesCentrality();
00056   ~vtkBoostBrandesCentrality();
00057 
00058   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00059   
00060 private:
00061 
00062   vtkIdType OriginVertexIndex;
00063   char* ArrayName;
00064   //BTX
00065   vtkVariant OriginValue;
00066   //ETX
00067   bool ArrayNameSet;
00068   
00070 
00071   vtkSetStringMacro(ArrayName);
00073   
00074   //BTX
00075 
00077 
00079   vtkIdType GetVertexIndex(
00080     vtkAbstractArray *abstract,vtkVariant value);
00081   //ETX
00083 
00084   vtkBoostBrandesCentrality(const vtkBoostBrandesCentrality&);  // Not implemented.
00085   void operator=(const vtkBoostBrandesCentrality&);  // Not implemented.
00086 };
00087 
00088 #endif