vtkMutableDirectedGraph Class Reference

#include <vtkMutableDirectedGraph.h>

Inheritance diagram for vtkMutableDirectedGraph:

Inheritance graph
[legend]
Collaboration diagram for vtkMutableDirectedGraph:

Collaboration graph
[legend]

List of all members.


Detailed Description

An editable directed graph.

vtkMutableDirectedGraph is a directed graph which has additional methods for adding edges and vertices. AddChild() is a convenience method for constructing trees. ShallowCopy(), DeepCopy(), CheckedShallowCopy() and CheckedDeepCopy() will succeed for instances of vtkDirectedGraph, vtkMutableDirectedGraph and vtkTree.

See also:
vtkDirectedGraph vtkGraph vtkTree
Examples:
vtkMutableDirectedGraph (Examples)
Tests:
vtkMutableDirectedGraph (Tests)

Definition at line 48 of file vtkMutableDirectedGraph.h.


Public Types

typedef vtkDirectedGraph Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
vtkIdType AddVertex ()
vtkGraphEdgeAddGraphEdge (vtkIdType u, vtkIdType v)
vtkIdType AddChild (vtkIdType parent)
vtkEdgeType AddEdge (vtkIdType u, vtkIdType v)

Static Public Member Functions

static vtkMutableDirectedGraphNew ()
static int IsTypeOf (const char *type)
static vtkMutableDirectedGraphSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkMutableDirectedGraph ()
 ~vtkMutableDirectedGraph ()

Protected Attributes

vtkGraphEdgeGraphEdge

Member Typedef Documentation

Reimplemented from vtkDirectedGraph.

Definition at line 52 of file vtkMutableDirectedGraph.h.


Constructor & Destructor Documentation

vtkMutableDirectedGraph::vtkMutableDirectedGraph (  )  [protected]

vtkMutableDirectedGraph::~vtkMutableDirectedGraph (  )  [protected]


Member Function Documentation

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

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

Reimplemented from vtkDirectedGraph.

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

Reimplemented from vtkDirectedGraph.

static int vtkMutableDirectedGraph::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkDirectedGraph.

virtual int vtkMutableDirectedGraph::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkDirectedGraph.

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

Reimplemented from vtkDirectedGraph.

void vtkMutableDirectedGraph::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 vtkDirectedGraph.

vtkIdType vtkMutableDirectedGraph::AddVertex (  ) 

Adds a vertex to the graph, and returns the id of that vertex.

vtkEdgeType vtkMutableDirectedGraph::AddEdge ( vtkIdType  u,
vtkIdType  v 
)

Adds a directed edge from u to v to the graph and returns a vtkEdgeType structure for that edge.

vtkGraphEdge* vtkMutableDirectedGraph::AddGraphEdge ( vtkIdType  u,
vtkIdType  v 
)

Version of AddEdge that returns a heavyweight vtkGraphEdge for use with wrappers. The graph owns the reference of the edge and will replace its contents on the next call to AddGraphEdge.

vtkIdType vtkMutableDirectedGraph::AddChild ( vtkIdType  parent  ) 

Convenience method for creating trees. Returns the newly created vertex id. Shortcut for vtkIdType v = g->AddVertex(); g->AddEdge(parent, v);


Member Data Documentation

Graph edge that is reused of AddGraphEdge calls.

Definition at line 81 of file vtkMutableDirectedGraph.h.


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

Generated on Sat Dec 27 13:38:14 2008 for VTK by  doxygen 1.5.6