VTK
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 "vtkCommonDataModelModule.h" // For export macro
40 #include "vtkUndirectedGraph.h"
41 
43 class vtkGraphEdge;
44 
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
62 
70 
85 
96  vtkIdType AddVertex(const vtkVariant& pedigreeId);
97 
98  //BTX
104 
106 
114  vtkVariantArray *propertyArr);
116 
118 
126  vtkVariantArray *propertyArr = 0);
128 
130 
138  vtkVariantArray *propertyArr = 0);
140 
142 
149  const vtkVariant& v,
150  vtkVariantArray *propertyArr = 0);
152 
153  //ETX
154 
159 
168  void LazyAddVertex(vtkVariantArray *propertyArr);
169 
175  void LazyAddVertex(const vtkVariant& pedigreeId);
176 
182 
190 
192 
200  vtkVariantArray *propertyArr = 0);
202 
204 
212  vtkVariantArray *propertyArr = 0);
214 
216 
222  void LazyAddEdge(const vtkVariant& u,
223  const vtkVariant& v,
224  vtkVariantArray *propertyArr = 0);
226 
233 
238 
242 
246 
249 
250 protected:
253 
256 
257 private:
258  vtkMutableUndirectedGraph(const vtkMutableUndirectedGraph&); // Not implemented.
259  void operator=(const vtkMutableUndirectedGraph&); // Not implemented.
260 };
261 
262 #endif
vtkMutableUndirectedGraph::LazyAddVertex
void LazyAddVertex()
vtkUndirectedGraph
An undirected graph.
Definition: vtkUndirectedGraph.h:54
vtkMutableUndirectedGraph
An editable undirected graph.
Definition: vtkMutableUndirectedGraph.h:46
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCommonDataModelModule.h
vtkMutableUndirectedGraph::LazyAddVertex
void LazyAddVertex(const vtkVariant &pedigreeId)
vtkMutableUndirectedGraph::~vtkMutableUndirectedGraph
~vtkMutableUndirectedGraph()
vtkMutableUndirectedGraph::RemoveVertices
void RemoveVertices(vtkIdTypeArray *arr)
vtkMutableUndirectedGraph::AddEdge
vtkEdgeType AddEdge(const vtkVariant &u, const vtkVariant &v, vtkVariantArray *propertyArr=0)
vtkUndirectedGraph.h
vtkMutableUndirectedGraph::SetNumberOfVertices
virtual vtkIdType SetNumberOfVertices(vtkIdType numVerts)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkMutableUndirectedGraph::AddGraphEdge
vtkGraphEdge * AddGraphEdge(vtkIdType u, vtkIdType v)
vtkMutableUndirectedGraph::GraphEdge
vtkGraphEdge * GraphEdge
Definition: vtkMutableUndirectedGraph.h:255
vtkMutableUndirectedGraph::LazyAddEdge
void LazyAddEdge(vtkIdType u, vtkIdType v, vtkVariantArray *propertyArr)
vtkgl::v
const GLdouble * v
Definition: vtkgl.h:11595
vtkVariantArray
An array holding vtkVariants.
Definition: vtkVariantArray.h:48
vtkMutableUndirectedGraph::LazyAddEdge
void LazyAddEdge(const vtkVariant &u, const vtkVariant &v, vtkVariantArray *propertyArr=0)
vtkMutableUndirectedGraph::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkMutableUndirectedGraph::AddEdge
vtkEdgeType AddEdge(vtkIdType u, const vtkVariant &v, vtkVariantArray *propertyArr=0)
vtkMutableUndirectedGraph::LazyAddEdge
void LazyAddEdge(const vtkVariant &u, vtkIdType v, vtkVariantArray *propertyArr=0)
vtkEdgeType
Definition: vtkGraph.h:277
vtkMutableUndirectedGraph::AddEdge
vtkEdgeType AddEdge(vtkIdType u, vtkIdType v)
vtkMutableUndirectedGraph::AddVertex
vtkIdType AddVertex(vtkVariantArray *propertyArr)
vtkMutableUndirectedGraph::LazyAddVertex
void LazyAddVertex(vtkVariantArray *propertyArr)
vtkGraphEdge
Representation of a single graph edge.
Definition: vtkGraphEdge.h:39
vtkMutableUndirectedGraph::RemoveEdge
void RemoveEdge(vtkIdType e)
vtkMutableUndirectedGraph::New
static vtkMutableUndirectedGraph * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMutableUndirectedGraph::AddVertex
vtkIdType AddVertex()
vtkVariant
A atomic type representing the union of many types.
Definition: vtkVariant.h:79
vtkEdgeListIterator
Iterates through all edges in a graph.
Definition: vtkEdgeListIterator.h:56
vtkMutableUndirectedGraph::AddVertex
vtkIdType AddVertex(const vtkVariant &pedigreeId)
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:49
vtkMutableUndirectedGraph::RemoveVertex
void RemoveVertex(vtkIdType v)
vtkMutableUndirectedGraph::LazyAddEdge
void LazyAddEdge(vtkIdType u, const vtkVariant &v, vtkVariantArray *propertyArr=0)
vtkMutableUndirectedGraph::vtkMutableUndirectedGraph
vtkMutableUndirectedGraph()
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkMutableUndirectedGraph::AddEdge
vtkEdgeType AddEdge(vtkIdType u, vtkIdType v, vtkVariantArray *propertyArr)
vtkMutableUndirectedGraph::RemoveEdges
void RemoveEdges(vtkIdTypeArray *arr)
vtkMutableUndirectedGraph::LazyAddEdge
void LazyAddEdge(vtkIdType u, vtkIdType v)
vtkMutableUndirectedGraph::AddEdge
vtkEdgeType AddEdge(const vtkVariant &u, vtkIdType v, vtkVariantArray *propertyArr=0)