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 "vtkGraphAlgorithm.h"
71 
72 class vtkGraph;
73 class vtkPVXMLElement;
74 
76 {
77 public:
78  static vtkPBGLRMATGraphSource* New();
80  void PrintSelf(ostream& os, vtkIndent indent);
81 
83 
85  vtkGetMacro(NumberOfVertices, vtkIdType);
87 
90  virtual void SetNumberOfVertices(vtkIdType value);
91 
93 
95  vtkGetMacro(NumberOfEdges, vtkIdType);
96  vtkSetClampMacro(NumberOfEdges, vtkIdType, 0, VTK_LARGE_ID);
98 
100  void SetProbabilities(double A, double B, double C, double D);
101 
103  void GetProbabilities(double *A, double *B, double *C, double *D);
104 
106 
108  vtkSetMacro(IncludeEdgeWeights, bool);
109  vtkGetMacro(IncludeEdgeWeights, bool);
110  vtkBooleanMacro(IncludeEdgeWeights, bool);
112 
114 
115  vtkSetStringMacro(EdgeWeightArrayName);
116  vtkGetStringMacro(EdgeWeightArrayName);
118 
120 
122  vtkSetMacro(AllowSelfLoops, bool);
123  vtkGetMacro(AllowSelfLoops, bool);
124  vtkBooleanMacro(AllowSelfLoops, bool);
126 
128 
129  vtkSetMacro(GeneratePedigreeIds, bool);
130  vtkGetMacro(GeneratePedigreeIds, bool);
131  vtkBooleanMacro(GeneratePedigreeIds, bool);
133 
135 
136  vtkSetStringMacro(VertexPedigreeIdArrayName);
137  vtkGetStringMacro(VertexPedigreeIdArrayName);
139 
141 
142  vtkSetStringMacro(EdgePedigreeIdArrayName);
143  vtkGetStringMacro(EdgePedigreeIdArrayName);
145 
147 
150  vtkSetMacro(Seed, int);
151  vtkGetMacro(Seed, int);
153 
154 protected:
159  double A;
160  double B;
161  double C;
162  double D;
166  int Seed;
170 
171  virtual int RequestData(
172  vtkInformation*,
175 
177 
178  virtual int RequestDataObject(vtkInformation*,
179  vtkInformationVector** inputVector,
180  vtkInformationVector* outputVector);
182 
183 private:
184  vtkPBGLRMATGraphSource(const vtkPBGLRMATGraphSource&); // Not implemented
185  void operator=(const vtkPBGLRMATGraphSource&); // Not implemented
186 };
187 
188 #endif
189 
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int vtkIdType
Definition: vtkType.h:255
Superclass for algorithms that produce only graph as output.
Base class for graph data types.
Definition: vtkGraph.h:287
a simple class to control print indentation
Definition: vtkIndent.h:37
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_PARALLEL_EXPORT
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_LARGE_ID
Definition: vtkType.h:257
a distributed graph with random edges built accorting to the recursive matrix (R-MAT) model...
Store zero or more vtkInformation instances.