VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkMutableGraphHelper Class Reference

Helper class for building a directed or directed graph. More...

#include <vtkMutableGraphHelper.h>

Inheritance diagram for vtkMutableGraphHelper:
Inheritance graph
[legend]
Collaboration diagram for vtkMutableGraphHelper:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkMutableGraphHelperNewInstance () const
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 (vtkObjectBase *o)

Protected Member Functions

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

Protected Attributes

vtkGraphInternalGraph
vtkGraphEdgeGraphEdge
vtkMutableDirectedGraphDirectedGraph
vtkMutableUndirectedGraphUndirectedGraph

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


Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 50 of file vtkMutableGraphHelper.h.


Constructor & Destructor Documentation


Member Function Documentation

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

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.

Reimplemented from vtkObject.

virtual vtkObjectBase* vtkMutableGraphHelper::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkObject.

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.

Set the underlying graph that you want to modify with this helper. The graph must be an instance of vtkMutableDirectedGraph or vtkMutableUndirectedGraph.

Set the underlying graph that you want to modify with this helper. The graph must be an instance of vtkMutableDirectedGraph or vtkMutableUndirectedGraph.

Add an edge to the underlying mutable graph.

Add an edge to the underlying mutable graph.

Add a vertex to the underlying mutable graph.

Remove a vertex from the underlying mutable graph.

Remove a collection of vertices from the underlying mutable graph.

Remove an edge from the underlying mutable graph.

Remove a collection of edges from the underlying mutable graph.

virtual vtkGraph* vtkMutableGraphHelper::GetInternalGraph ( ) [protected, virtual]

Member Data Documentation

Definition at line 90 of file vtkMutableGraphHelper.h.

Definition at line 92 of file vtkMutableGraphHelper.h.

Definition at line 94 of file vtkMutableGraphHelper.h.

Definition at line 95 of file vtkMutableGraphHelper.h.


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