VTK
vtkPBGLRMATGraphSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPBGLRMATGraphSource.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 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
20 /*
21  * Copyright (C) 2008 The Trustees of Indiana University.
22  * Use, modification and distribution is subject to the Boost Software
23  * License, Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt)
24  */
67 #ifndef vtkPBGLRMATGraphSource_h
68 #define vtkPBGLRMATGraphSource_h
69 
70 #include "vtkInfovisParallelModule.h" // For export macro
71 #include "vtkGraphAlgorithm.h"
72 
73 class vtkGraph;
74 class vtkPVXMLElement;
75 
76 #if !defined(VTK_LEGACY_REMOVE)
77 class VTKINFOVISPARALLEL_EXPORT vtkPBGLRMATGraphSource : public vtkGraphAlgorithm
78 {
79 public:
80  static vtkPBGLRMATGraphSource* New();
82  void PrintSelf(ostream& os, vtkIndent indent);
83 
85 
89  vtkGetMacro(NumberOfVertices, vtkIdType);
91 
96  virtual void SetNumberOfVertices(vtkIdType value);
97 
99 
103  vtkGetMacro(NumberOfEdges, vtkIdType);
104  vtkSetClampMacro(NumberOfEdges, vtkIdType, 0, VTK_ID_MAX);
106 
111  void SetProbabilities(double A, double B, double C, double D);
112 
116  void GetProbabilities(double *A, double *B, double *C, double *D);
117 
119 
123  vtkSetMacro(IncludeEdgeWeights, bool);
124  vtkGetMacro(IncludeEdgeWeights, bool);
125  vtkBooleanMacro(IncludeEdgeWeights, bool);
127 
129 
132  vtkSetStringMacro(EdgeWeightArrayName);
133  vtkGetStringMacro(EdgeWeightArrayName);
135 
137 
142  vtkSetMacro(AllowSelfLoops, bool);
143  vtkGetMacro(AllowSelfLoops, bool);
144  vtkBooleanMacro(AllowSelfLoops, bool);
146 
148 
151  vtkSetMacro(GeneratePedigreeIds, bool);
152  vtkGetMacro(GeneratePedigreeIds, bool);
153  vtkBooleanMacro(GeneratePedigreeIds, bool);
155 
157 
160  vtkSetStringMacro(VertexPedigreeIdArrayName);
161  vtkGetStringMacro(VertexPedigreeIdArrayName);
163 
165 
168  vtkSetStringMacro(EdgePedigreeIdArrayName);
169  vtkGetStringMacro(EdgePedigreeIdArrayName);
171 
173 
178  vtkSetMacro(Seed, int);
179  vtkGetMacro(Seed, int);
181 
182 protected:
187  double A;
188  double B;
189  double C;
190  double D;
194  int Seed;
198 
199  virtual int RequestData(
203 
207  virtual int RequestDataObject(vtkInformation*,
208  vtkInformationVector** inputVector,
209  vtkInformationVector* outputVector);
210 
211 private:
212  vtkPBGLRMATGraphSource(const vtkPBGLRMATGraphSource&) VTK_DELETE_FUNCTION;
213  void operator=(const vtkPBGLRMATGraphSource&) VTK_DELETE_FUNCTION;
214 };
215 
216 #endif //VTK_LEGACY_REMOVE
217 #endif
218 
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:345
Superclass for algorithms that produce only graph as output.
Base class for graph data types.
Definition: vtkGraph.h:281
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
#define VTK_ID_MAX
Definition: vtkType.h:349
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
a distributed graph with random edges built accorting to the recursive matrix (R-MAT) model...
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.