VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkMutableUndirectedGraph.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkMutableUndirectedGraph.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
-------------------------------------------------------------------------*/
36
#ifndef __vtkMutableUndirectedGraph_h
37
#define __vtkMutableUndirectedGraph_h
38
39
#include "
vtkUndirectedGraph.h
"
40
41
class
vtkEdgeListIterator
;
42
class
vtkGraphEdge
;
43
44
class
VTK_FILTERING_EXPORT
vtkMutableUndirectedGraph
:
public
vtkUndirectedGraph
45
{
46
public
:
47
static
vtkMutableUndirectedGraph
*
New
();
48
vtkTypeMacro(
vtkMutableUndirectedGraph
,
vtkUndirectedGraph
);
49
void
PrintSelf
(ostream& os,
vtkIndent
indent);
50
60
virtual
vtkIdType
SetNumberOfVertices(
vtkIdType
numVerts );
61
68
vtkIdType
AddVertex();
69
83
vtkIdType
AddVertex(
vtkVariantArray
*propertyArr);
84
95
vtkIdType
AddVertex(
const
vtkVariant
& pedigreeId);
96
97
//BTX
102
vtkEdgeType
AddEdge(
vtkIdType
u,
vtkIdType
v);
103
105
112
vtkEdgeType
AddEdge(
vtkIdType
u,
vtkIdType
v,
113
vtkVariantArray
*propertyArr);
115
117
124
vtkEdgeType
AddEdge(
const
vtkVariant
& u,
vtkIdType
v,
125
vtkVariantArray
*propertyArr = 0);
127
129
136
vtkEdgeType
AddEdge(
vtkIdType
u,
const
vtkVariant
& v,
137
vtkVariantArray
*propertyArr = 0);
139
141
147
vtkEdgeType
AddEdge(
const
vtkVariant
& u,
148
const
vtkVariant
& v,
149
vtkVariantArray
*propertyArr = 0);
151
152
//ETX
153
157
void
LazyAddVertex();
158
167
void
LazyAddVertex(
vtkVariantArray
*propertyArr);
168
174
void
LazyAddVertex(
const
vtkVariant
& pedigreeId);
175
180
void
LazyAddEdge(
vtkIdType
u,
vtkIdType
v);
181
188
void
LazyAddEdge(
vtkIdType
u,
vtkIdType
v,
vtkVariantArray
*propertyArr);
189
191
198
void
LazyAddEdge(
const
vtkVariant
& u,
vtkIdType
v,
199
vtkVariantArray
*propertyArr = 0);
201
203
210
void
LazyAddEdge(
vtkIdType
u,
const
vtkVariant
& v,
211
vtkVariantArray
*propertyArr = 0);
213
215
221
void
LazyAddEdge(
const
vtkVariant
& u,
222
const
vtkVariant
& v,
223
vtkVariantArray
*propertyArr = 0);
225
231
vtkGraphEdge
*AddGraphEdge(
vtkIdType
u,
vtkIdType
v);
232
236
void
RemoveVertex(
vtkIdType
v);
237
240
void
RemoveEdge(
vtkIdType
e);
241
244
void
RemoveVertices(
vtkIdTypeArray
* arr);
245
247
void
RemoveEdges(
vtkIdTypeArray
* arr);
248
249
protected
:
250
vtkMutableUndirectedGraph
();
251
~
vtkMutableUndirectedGraph
();
252
254
vtkGraphEdge
*
GraphEdge
;
255
256
private
:
257
vtkMutableUndirectedGraph
(
const
vtkMutableUndirectedGraph
&);
// Not implemented.
258
void
operator=(
const
vtkMutableUndirectedGraph
&);
// Not implemented.
259
};
260
261
#endif
Generated on Fri Aug 2 2013 12:19:48 for VTK by
1.8.4