VTK
vtkRandomGraphSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRandomGraphSource.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 -------------------------------------------------------------------------*/
37 #ifndef vtkRandomGraphSource_h
38 #define vtkRandomGraphSource_h
39 
40 #include "vtkInfovisCoreModule.h" // For export macro
41 #include "vtkGraphAlgorithm.h"
42 
43 class vtkGraph;
44 class vtkPVXMLElement;
45 
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
54 
55  vtkGetMacro(NumberOfVertices, int);
56  vtkSetClampMacro(NumberOfVertices, int, 0, VTK_INT_MAX);
58 
60 
62  vtkGetMacro(NumberOfEdges, int);
63  vtkSetClampMacro(NumberOfEdges, int, 0, VTK_INT_MAX);
65 
67 
69  vtkGetMacro(EdgeProbability, double);
70  vtkSetClampMacro(EdgeProbability, double, 0.0, 1.0);
72 
74 
76  vtkSetMacro(IncludeEdgeWeights, bool);
77  vtkGetMacro(IncludeEdgeWeights, bool);
78  vtkBooleanMacro(IncludeEdgeWeights, bool);
80 
82 
83  vtkSetStringMacro(EdgeWeightArrayName);
84  vtkGetStringMacro(EdgeWeightArrayName);
86 
88 
90  vtkSetMacro(Directed, bool);
91  vtkGetMacro(Directed, bool);
92  vtkBooleanMacro(Directed, bool);
94 
96 
98  vtkSetMacro(UseEdgeProbability, bool);
99  vtkGetMacro(UseEdgeProbability, bool);
100  vtkBooleanMacro(UseEdgeProbability, bool);
102 
104 
106  vtkSetMacro(StartWithTree, bool);
107  vtkGetMacro(StartWithTree, bool);
108  vtkBooleanMacro(StartWithTree, bool);
110 
112 
114  vtkSetMacro(AllowSelfLoops, bool);
115  vtkGetMacro(AllowSelfLoops, bool);
116  vtkBooleanMacro(AllowSelfLoops, bool);
118 
120 
122  vtkSetMacro(AllowParallelEdges, bool);
123  vtkGetMacro(AllowParallelEdges, bool);
124  vtkBooleanMacro(AllowParallelEdges, 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 
149  vtkSetMacro(Seed, int);
150  vtkGetMacro(Seed, int);
152 
153 protected:
159  bool Directed;
166  int Seed;
170 
171  virtual int RequestData(
175 
177 
179  vtkInformationVector** inputVector,
180  vtkInformationVector* outputVector);
182 
183 private:
184  vtkRandomGraphSource(const vtkRandomGraphSource&); // Not implemented
185  void operator=(const vtkRandomGraphSource&); // Not implemented
186 };
187 
188 #endif
189 
VTKINFOVISCORE_EXPORT
#define VTKINFOVISCORE_EXPORT
Definition: vtkInfovisCoreModule.h:15
vtkRandomGraphSource::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:132
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:54
vtkRandomGraphSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkRandomGraphSource::VertexPedigreeIdArrayName
char * VertexPedigreeIdArrayName
Definition: vtkRandomGraphSource.h:168
vtkRandomGraphSource::UseEdgeProbability
bool UseEdgeProbability
Definition: vtkRandomGraphSource.h:160
vtkRandomGraphSource::~vtkRandomGraphSource
~vtkRandomGraphSource()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkRandomGraphSource::NumberOfVertices
int NumberOfVertices
Definition: vtkRandomGraphSource.h:156
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkRandomGraphSource::IncludeEdgeWeights
bool IncludeEdgeWeights
Definition: vtkRandomGraphSource.h:162
vtkRandomGraphSource::GeneratePedigreeIds
bool GeneratePedigreeIds
Definition: vtkRandomGraphSource.h:165
vtkRandomGraphSource::EdgeProbability
double EdgeProbability
Definition: vtkRandomGraphSource.h:158
vtkRandomGraphSource::AllowSelfLoops
bool AllowSelfLoops
Definition: vtkRandomGraphSource.h:163
vtkRandomGraphSource::NumberOfEdges
int NumberOfEdges
Definition: vtkRandomGraphSource.h:157
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkGraphAlgorithm.h
vtkRandomGraphSource::AllowParallelEdges
bool AllowParallelEdges
Definition: vtkRandomGraphSource.h:164
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkRandomGraphSource::EdgePedigreeIdArrayName
char * EdgePedigreeIdArrayName
Definition: vtkRandomGraphSource.h:169
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkRandomGraphSource
a graph with random edges
Definition: vtkRandomGraphSource.h:47
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkInfovisCoreModule.h
vtkRandomGraphSource::Directed
bool Directed
Definition: vtkRandomGraphSource.h:159
vtkRandomGraphSource::RequestDataObject
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkRandomGraphSource::StartWithTree
bool StartWithTree
Definition: vtkRandomGraphSource.h:161
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkRandomGraphSource::vtkRandomGraphSource
vtkRandomGraphSource()
vtkRandomGraphSource::New
static vtkRandomGraphSource * New()
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:289
vtkRandomGraphSource::Seed
int Seed
Definition: vtkRandomGraphSource.h:166
vtkRandomGraphSource::EdgeWeightArrayName
char * EdgeWeightArrayName
Definition: vtkRandomGraphSource.h:167