vtkMutableGraphHelper Class Reference

#include <vtkMutableGraphHelper.h>

Inheritance diagram for vtkMutableGraphHelper:

Inheritance graph
[legend]
Collaboration diagram for vtkMutableGraphHelper:

Collaboration graph
[legend]

List of all members.


Detailed Description

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 45 of file vtkMutableGraphHelper.h.


Public Types

typedef vtkObject Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
vtkIdType AddVertex ()
void RemoveVertex (vtkIdType v)
void RemoveVertices (vtkIdTypeArray *verts)
void RemoveEdge (vtkIdType e)
void RemoveEdges (vtkIdTypeArray *edges)
void SetGraph (vtkGraph *g)
vtkGraphGetGraph ()
vtkEdgeType AddEdge (vtkIdType u, vtkIdType v)
vtkGraphEdgeAddGraphEdge (vtkIdType u, vtkIdType v)

Static Public Member Functions

static vtkMutableGraphHelperNew ()
static int IsTypeOf (const char *type)
static vtkMutableGraphHelperSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkMutableGraphHelper ()
 ~vtkMutableGraphHelper ()
virtual vtkGraphGetInternalGraph ()
void SetInternalGraph (vtkGraph *g)

Protected Attributes

vtkGraphInternalGraph
vtkGraphEdgeGraphEdge
vtkMutableDirectedGraphDirectedGraph
vtkMutableUndirectedGraphUndirectedGraph

Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 49 of file vtkMutableGraphHelper.h.


Constructor & Destructor Documentation

vtkMutableGraphHelper::vtkMutableGraphHelper (  )  [protected]

vtkMutableGraphHelper::~vtkMutableGraphHelper (  )  [protected]


Member Function Documentation

static vtkMutableGraphHelper* vtkMutableGraphHelper::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

virtual const char* vtkMutableGraphHelper::GetClassName (  )  [virtual]

Reimplemented from vtkObject.

static int vtkMutableGraphHelper::IsTypeOf ( const char *  name  )  [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

virtual int vtkMutableGraphHelper::IsA ( const char *  name  )  [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

static vtkMutableGraphHelper* vtkMutableGraphHelper::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkObject.

void vtkMutableGraphHelper::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

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 (  )  [protected, virtual]

void vtkMutableGraphHelper::SetInternalGraph ( vtkGraph g  )  [protected]


Member Data Documentation

Definition at line 89 of file vtkMutableGraphHelper.h.

Definition at line 91 of file vtkMutableGraphHelper.h.

Definition at line 93 of file vtkMutableGraphHelper.h.

Definition at line 94 of file vtkMutableGraphHelper.h.


The documentation for this class was generated from the following file:

Generated on Wed Aug 24 11:49:25 2011 for VTK by  doxygen 1.5.6