VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
Core
vtkMutableGraphHelper.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkMutableGraphHelper.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 (c) Sandia Corporation
17
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18
----------------------------------------------------------------------------*/
33
#ifndef __vtkMutableGraphHelper_h
34
#define __vtkMutableGraphHelper_h
35
36
#include "vtkInfovisCoreModule.h"
// For export macro
37
#include "
vtkObject.h
"
38
#include "
vtkGraph.h
"
// For vtkEdgeType
39
40
class
vtkDataSetAttributes
;
41
class
vtkGraph
;
42
class
vtkGraphEdge
;
43
class
vtkMutableDirectedGraph
;
44
class
vtkMutableUndirectedGraph
;
45
46
class
VTKINFOVISCORE_EXPORT
vtkMutableGraphHelper
:
public
vtkObject
47
{
48
public
:
49
static
vtkMutableGraphHelper
*
New
();
50
vtkTypeMacro(
vtkMutableGraphHelper
,
vtkObject
);
51
void
PrintSelf
(ostream& os,
vtkIndent
indent);
52
54
57
void
SetGraph(
vtkGraph
* g);
58
vtkGraph
* GetGraph();
60
61
//BTX
63
64
vtkEdgeType
AddEdge(
vtkIdType
u,
vtkIdType
v);
65
//ETX
66
vtkGraphEdge
* AddGraphEdge(
vtkIdType
u,
vtkIdType
v);
68
70
vtkIdType
AddVertex();
71
73
void
RemoveVertex(
vtkIdType
v);
74
76
void
RemoveVertices(
vtkIdTypeArray
* verts);
77
79
void
RemoveEdge(
vtkIdType
e);
80
82
void
RemoveEdges(
vtkIdTypeArray
*
edges
);
83
84
protected
:
85
vtkMutableGraphHelper
();
86
~
vtkMutableGraphHelper
();
87
88
vtkGetObjectMacro(InternalGraph,
vtkGraph
);
89
void
SetInternalGraph(
vtkGraph
* g);
90
vtkGraph
*
InternalGraph
;
91
92
vtkGraphEdge
*
GraphEdge
;
93
94
vtkMutableDirectedGraph
*
DirectedGraph
;
95
vtkMutableUndirectedGraph
*
UndirectedGraph
;
96
97
private
:
98
vtkMutableGraphHelper
(
const
vtkMutableGraphHelper
&);
// Not implemented.
99
void
operator=(
const
vtkMutableGraphHelper
&);
// Not implemented.
100
};
101
102
#endif
Generated on Thu May 24 2012 22:22:26 for VTK by
1.8.1