Helper class for building a directed or directed graph.
More...
#include <vtkMutableGraphHelper.h>
Inherits vtkObject.
Helper class for building a directed or directed graph.
vtkMutableGraphHelper has helper methods AddVertex and AddEdge which add vertices/edges to the underlying mutable graph. This is helpful in filters which need to (re)construct graphs which may be either directed or undirected.
- See Also
- vtkGraph vtkMutableDirectedGraph vtkMutableUndirectedGraph
Definition at line 46 of file vtkMutableGraphHelper.h.
vtkMutableGraphHelper::vtkMutableGraphHelper |
( |
| ) |
|
|
protected |
vtkMutableGraphHelper::~vtkMutableGraphHelper |
( |
| ) |
|
|
protected |
static int vtkMutableGraphHelper::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkMutableGraphHelper::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkMutableGraphHelper::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkMutableGraphHelper::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
void vtkMutableGraphHelper::SetGraph |
( |
vtkGraph * |
g | ) |
|
Set the underlying graph that you want to modify with this helper. The graph must be an instance of vtkMutableDirectedGraph or vtkMutableUndirectedGraph.
vtkGraph* vtkMutableGraphHelper::GetGraph |
( |
| ) |
|
Set the underlying graph that you want to modify with this helper. The graph must be an instance of vtkMutableDirectedGraph or vtkMutableUndirectedGraph.
vtkEdgeType vtkMutableGraphHelper::AddEdge |
( |
vtkIdType |
u, |
|
|
vtkIdType |
v |
|
) |
| |
Add an edge to the underlying mutable graph.
vtkGraphEdge* vtkMutableGraphHelper::AddGraphEdge |
( |
vtkIdType |
u, |
|
|
vtkIdType |
v |
|
) |
| |
Add an edge to the underlying mutable graph.
vtkIdType vtkMutableGraphHelper::AddVertex |
( |
| ) |
|
Add a vertex to the underlying mutable graph.
void vtkMutableGraphHelper::RemoveVertex |
( |
vtkIdType |
v | ) |
|
Remove a vertex from the underlying mutable graph.
void vtkMutableGraphHelper::RemoveVertices |
( |
vtkIdTypeArray * |
verts | ) |
|
Remove a collection of vertices from the underlying mutable graph.
void vtkMutableGraphHelper::RemoveEdge |
( |
vtkIdType |
e | ) |
|
Remove an edge from the underlying mutable graph.
void vtkMutableGraphHelper::RemoveEdges |
( |
vtkIdTypeArray * |
edges | ) |
|
Remove a collection of edges from the underlying mutable graph.
virtual vtkGraph* vtkMutableGraphHelper::GetInternalGraph |
( |
| ) |
|
|
protectedvirtual |
void vtkMutableGraphHelper::SetInternalGraph |
( |
vtkGraph * |
g | ) |
|
|
protected |
vtkGraph* vtkMutableGraphHelper::InternalGraph |
|
protected |
vtkGraphEdge* vtkMutableGraphHelper::GraphEdge |
|
protected |
vtkMutableDirectedGraph* vtkMutableGraphHelper::DirectedGraph |
|
protected |
vtkMutableUndirectedGraph* vtkMutableGraphHelper::UndirectedGraph |
|
protected |
The documentation for this class was generated from the following file: