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  */
69 #ifndef vtkPBGLRMATGraphSource_h
70 #define vtkPBGLRMATGraphSource_h
71 
72 #include "vtkInfovisParallelModule.h" // For export macro
73 #include "vtkGraphAlgorithm.h"
74 
75 class vtkGraph;
76 class vtkPVXMLElement;
77 
78 #if !defined(VTK_LEGACY_REMOVE)
79 class VTKINFOVISPARALLEL_EXPORT vtkPBGLRMATGraphSource : public vtkGraphAlgorithm
80 {
81 public:
82  static vtkPBGLRMATGraphSource* New();
84  void PrintSelf(ostream& os, vtkIndent indent);
85 
87 
89  vtkGetMacro(NumberOfVertices, vtkIdType);
91 
94  virtual void SetNumberOfVertices(vtkIdType value);
95 
97 
99  vtkGetMacro(NumberOfEdges, vtkIdType);
100  vtkSetClampMacro(NumberOfEdges, vtkIdType, 0, VTK_ID_MAX);
102 
104  void SetProbabilities(double A, double B, double C, double D);
105 
107  void GetProbabilities(double *A, double *B, double *C, double *D);
108 
110 
112  vtkSetMacro(IncludeEdgeWeights, bool);
113  vtkGetMacro(IncludeEdgeWeights, bool);
114  vtkBooleanMacro(IncludeEdgeWeights, bool);
116 
118 
119  vtkSetStringMacro(EdgeWeightArrayName);
120  vtkGetStringMacro(EdgeWeightArrayName);
122 
124 
126  vtkSetMacro(AllowSelfLoops, bool);
127  vtkGetMacro(AllowSelfLoops, bool);
128  vtkBooleanMacro(AllowSelfLoops, bool);
130 
132 
133  vtkSetMacro(GeneratePedigreeIds, bool);
134  vtkGetMacro(GeneratePedigreeIds, bool);
135  vtkBooleanMacro(GeneratePedigreeIds, bool);
137 
139 
140  vtkSetStringMacro(VertexPedigreeIdArrayName);
141  vtkGetStringMacro(VertexPedigreeIdArrayName);
143 
145 
146  vtkSetStringMacro(EdgePedigreeIdArrayName);
147  vtkGetStringMacro(EdgePedigreeIdArrayName);
149 
151 
154  vtkSetMacro(Seed, int);
155  vtkGetMacro(Seed, int);
157 
158 protected:
163  double A;
164  double B;
165  double C;
166  double D;
170  int Seed;
174 
175  virtual int RequestData(
179 
181 
182  virtual int RequestDataObject(vtkInformation*,
183  vtkInformationVector** inputVector,
184  vtkInformationVector* outputVector);
186 
187 private:
188  vtkPBGLRMATGraphSource(const vtkPBGLRMATGraphSource&); // Not implemented
189  void operator=(const vtkPBGLRMATGraphSource&); // Not implemented
190 };
191 
192 #endif //VTK_LEGACY_REMOVE
193 #endif
194 
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:275
Superclass for algorithms that produce only graph as output.
Base class for graph data types.
Definition: vtkGraph.h:288
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_ID_MAX
Definition: vtkType.h:278
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
a distributed graph with random edges built accorting to the recursive matrix (R-MAT) model...
Store zero or more vtkInformation instances.