#include <vtkMutableUndirectedGraph.h>
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.
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 () |
vtkGraphEdge * | AddGraphEdge (vtkIdType u, vtkIdType v) |
vtkEdgeType | AddEdge (vtkIdType u, vtkIdType v) |
Static Public Member Functions | |
static vtkMutableUndirectedGraph * | New () |
static int | IsTypeOf (const char *type) |
static vtkMutableUndirectedGraph * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkMutableUndirectedGraph () | |
~vtkMutableUndirectedGraph () | |
Protected Attributes | |
vtkGraphEdge * | GraphEdge |
vtkMutableUndirectedGraph::vtkMutableUndirectedGraph | ( | ) | [protected] |
vtkMutableUndirectedGraph::~vtkMutableUndirectedGraph | ( | ) | [protected] |
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.
vtkGraphEdge* vtkMutableUndirectedGraph::GraphEdge [protected] |
Graph edge that is reused of AddGraphEdge calls.
Definition at line 73 of file vtkMutableUndirectedGraph.h.