VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkPBGLRMATGraphSource.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 -------------------------------------------------------------------------*/ 00020 /* 00021 * Copyright (C) 2008 The Trustees of Indiana University. 00022 * Use, modification and distribution is subject to the Boost Software 00023 * License, Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt) 00024 */ 00067 #ifndef __vtkPBGLRMATGraphSource_h 00068 #define __vtkPBGLRMATGraphSource_h 00069 00070 #include "vtkInfovisParallelModule.h" // For export macro 00071 #include "vtkGraphAlgorithm.h" 00072 00073 class vtkGraph; 00074 class vtkPVXMLElement; 00075 00076 class VTKINFOVISPARALLEL_EXPORT vtkPBGLRMATGraphSource : public vtkGraphAlgorithm 00077 { 00078 public: 00079 static vtkPBGLRMATGraphSource* New(); 00080 vtkTypeMacro(vtkPBGLRMATGraphSource,vtkGraphAlgorithm); 00081 void PrintSelf(ostream& os, vtkIndent indent); 00082 00084 00086 vtkGetMacro(NumberOfVertices, vtkIdType); 00088 00091 virtual void SetNumberOfVertices(vtkIdType value); 00092 00094 00096 vtkGetMacro(NumberOfEdges, vtkIdType); 00097 vtkSetClampMacro(NumberOfEdges, vtkIdType, 0, VTK_ID_MAX); 00099 00101 void SetProbabilities(double A, double B, double C, double D); 00102 00104 void GetProbabilities(double *A, double *B, double *C, double *D); 00105 00107 00109 vtkSetMacro(IncludeEdgeWeights, bool); 00110 vtkGetMacro(IncludeEdgeWeights, bool); 00111 vtkBooleanMacro(IncludeEdgeWeights, bool); 00113 00115 00116 vtkSetStringMacro(EdgeWeightArrayName); 00117 vtkGetStringMacro(EdgeWeightArrayName); 00119 00121 00123 vtkSetMacro(AllowSelfLoops, bool); 00124 vtkGetMacro(AllowSelfLoops, bool); 00125 vtkBooleanMacro(AllowSelfLoops, bool); 00127 00129 00130 vtkSetMacro(GeneratePedigreeIds, bool); 00131 vtkGetMacro(GeneratePedigreeIds, bool); 00132 vtkBooleanMacro(GeneratePedigreeIds, bool); 00134 00136 00137 vtkSetStringMacro(VertexPedigreeIdArrayName); 00138 vtkGetStringMacro(VertexPedigreeIdArrayName); 00140 00142 00143 vtkSetStringMacro(EdgePedigreeIdArrayName); 00144 vtkGetStringMacro(EdgePedigreeIdArrayName); 00146 00148 00151 vtkSetMacro(Seed, int); 00152 vtkGetMacro(Seed, int); 00154 00155 protected: 00156 vtkPBGLRMATGraphSource(); 00157 ~vtkPBGLRMATGraphSource(); 00158 vtkIdType NumberOfVertices; 00159 vtkIdType NumberOfEdges; 00160 double A; 00161 double B; 00162 double C; 00163 double D; 00164 bool IncludeEdgeWeights; 00165 bool AllowSelfLoops; 00166 bool GeneratePedigreeIds; 00167 int Seed; 00168 char* EdgeWeightArrayName; 00169 char* VertexPedigreeIdArrayName; 00170 char* EdgePedigreeIdArrayName; 00171 00172 virtual int RequestData( 00173 vtkInformation*, 00174 vtkInformationVector**, 00175 vtkInformationVector*); 00176 00178 00179 virtual int RequestDataObject(vtkInformation*, 00180 vtkInformationVector** inputVector, 00181 vtkInformationVector* outputVector); 00183 00184 private: 00185 vtkPBGLRMATGraphSource(const vtkPBGLRMATGraphSource&); // Not implemented 00186 void operator=(const vtkPBGLRMATGraphSource&); // Not implemented 00187 }; 00188 00189 #endif 00190