vtkMutableUndirectedGraph Class Reference

#include <vtkMutableUndirectedGraph.h>

Inheritance diagram for vtkMutableUndirectedGraph:

Inheritance graph
[legend]
Collaboration diagram for vtkMutableUndirectedGraph:

Collaboration graph
[legend]

List of all members.


Detailed Description

An editable undirected graph.

vtkMutableUndirectedGraph is an undirected graph with additional functions for adding vertices and edges. ShallowCopy(), DeepCopy(), CheckedShallowCopy(), and CheckedDeepCopy() will succeed when the argument is a vtkUndirectedGraph or vtkMutableUndirectedGraph.

See also:
vtkUndirectedGraph vtkGraph
Tests:
vtkMutableUndirectedGraph (Tests)

Definition at line 44 of file vtkMutableUndirectedGraph.h.


Public Types

typedef vtkUndirectedGraph 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)
vtkEdgeType AddEdge (vtkIdType u, vtkIdType v)

Static Public Member Functions

static vtkMutableUndirectedGraphNew ()
static int IsTypeOf (const char *type)
static vtkMutableUndirectedGraphSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkMutableUndirectedGraph ()
 ~vtkMutableUndirectedGraph ()

Protected Attributes

vtkGraphEdgeGraphEdge

Member Typedef Documentation

Reimplemented from vtkUndirectedGraph.

Definition at line 48 of file vtkMutableUndirectedGraph.h.


Constructor & Destructor Documentation

vtkMutableUndirectedGraph::vtkMutableUndirectedGraph (  )  [protected]

vtkMutableUndirectedGraph::~vtkMutableUndirectedGraph (  )  [protected]


Member Function Documentation

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

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

Reimplemented from vtkUndirectedGraph.

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

Reimplemented from vtkUndirectedGraph.

static int vtkMutableUndirectedGraph::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 vtkUndirectedGraph.

virtual int vtkMutableUndirectedGraph::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 vtkUndirectedGraph.

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

Reimplemented from vtkUndirectedGraph.

void vtkMutableUndirectedGraph::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 vtkUndirectedGraph.

vtkIdType vtkMutableUndirectedGraph::AddVertex (  ) 

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

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

Adds an undirected edge between u and v, and returns a vtkEdgeType structure for that edge. The returned vtkEdgeType indicates a Source and Target, but these are in arbitrary order.

vtkGraphEdge* vtkMutableUndirectedGraph::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.


Member Data Documentation

Graph edge that is reused of AddGraphEdge calls.

Definition at line 73 of file vtkMutableUndirectedGraph.h.


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

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