#include <vtkMutableDirectedGraph.h>
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.
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 () |
vtkGraphEdge * | AddGraphEdge (vtkIdType u, vtkIdType v) |
vtkIdType | AddChild (vtkIdType parent) |
vtkEdgeType | AddEdge (vtkIdType u, vtkIdType v) |
Static Public Member Functions | |
static vtkMutableDirectedGraph * | New () |
static int | IsTypeOf (const char *type) |
static vtkMutableDirectedGraph * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkMutableDirectedGraph () | |
~vtkMutableDirectedGraph () | |
Protected Attributes | |
vtkGraphEdge * | GraphEdge |
vtkMutableDirectedGraph::vtkMutableDirectedGraph | ( | ) | [protected] |
vtkMutableDirectedGraph::~vtkMutableDirectedGraph | ( | ) | [protected] |
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.
Convenience method for creating trees. Returns the newly created vertex id. Shortcut for vtkIdType v = g->AddVertex(); g->AddEdge(parent, v);
vtkGraphEdge* vtkMutableDirectedGraph::GraphEdge [protected] |
Graph edge that is reused of AddGraphEdge calls.
Definition at line 81 of file vtkMutableDirectedGraph.h.