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:
49  static vtkRandomGraphSource* New();
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 
178  virtual int RequestDataObject(vtkInformation*,
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 
static vtkGraphAlgorithm * New()
a graph with random edges
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:132
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 VTKINFOVISCORE_EXPORT
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.