#include <vtkMutableGraphHelper.h>
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.
Definition at line 45 of file vtkMutableGraphHelper.h.
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
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) |
vtkGraph * | GetGraph () |
vtkEdgeType | AddEdge (vtkIdType u, vtkIdType v) |
vtkGraphEdge * | AddGraphEdge (vtkIdType u, vtkIdType v) |
Static Public Member Functions | |
static vtkMutableGraphHelper * | New () |
static int | IsTypeOf (const char *type) |
static vtkMutableGraphHelper * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkMutableGraphHelper () | |
~vtkMutableGraphHelper () | |
virtual vtkGraph * | GetInternalGraph () |
void | SetInternalGraph (vtkGraph *g) |
Protected Attributes | |
vtkGraph * | InternalGraph |
vtkGraphEdge * | GraphEdge |
vtkMutableDirectedGraph * | DirectedGraph |
vtkMutableUndirectedGraph * | UndirectedGraph |
vtkMutableGraphHelper::vtkMutableGraphHelper | ( | ) | [protected] |
vtkMutableGraphHelper::~vtkMutableGraphHelper | ( | ) | [protected] |
static vtkMutableGraphHelper* vtkMutableGraphHelper::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
virtual const char* vtkMutableGraphHelper::GetClassName | ( | ) | [virtual] |
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.
static vtkMutableGraphHelper* vtkMutableGraphHelper::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkObject.
void vtkMutableGraphHelper::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
void vtkMutableGraphHelper::SetGraph | ( | vtkGraph * | g | ) |
Set the underlying graph that you want to modify with this helper. The graph must be an instance of vtkMutableDirectedGraph or vtkMutableUndirectedGraph.
vtkGraph* vtkMutableGraphHelper::GetGraph | ( | ) |
Set the underlying graph that you want to modify with this helper. The graph must be an instance of vtkMutableDirectedGraph or vtkMutableUndirectedGraph.
vtkEdgeType vtkMutableGraphHelper::AddEdge | ( | vtkIdType | u, | |
vtkIdType | v | |||
) |
Add an edge to the underlying mutable graph.
vtkGraphEdge* vtkMutableGraphHelper::AddGraphEdge | ( | vtkIdType | u, | |
vtkIdType | v | |||
) |
Add an edge to the underlying mutable graph.
vtkIdType vtkMutableGraphHelper::AddVertex | ( | ) |
Add a vertex to the underlying mutable graph.
void vtkMutableGraphHelper::RemoveVertex | ( | vtkIdType | v | ) |
Remove a vertex from the underlying mutable graph.
void vtkMutableGraphHelper::RemoveVertices | ( | vtkIdTypeArray * | verts | ) |
Remove a collection of vertices from the underlying mutable graph.
void vtkMutableGraphHelper::RemoveEdge | ( | vtkIdType | e | ) |
Remove an edge from the underlying mutable graph.
void vtkMutableGraphHelper::RemoveEdges | ( | vtkIdTypeArray * | edges | ) |
Remove a collection of edges from the underlying mutable graph.
virtual vtkGraph* vtkMutableGraphHelper::GetInternalGraph | ( | ) | [protected, virtual] |
void vtkMutableGraphHelper::SetInternalGraph | ( | vtkGraph * | g | ) | [protected] |
vtkGraph* vtkMutableGraphHelper::InternalGraph [protected] |
Definition at line 89 of file vtkMutableGraphHelper.h.
vtkGraphEdge* vtkMutableGraphHelper::GraphEdge [protected] |
Definition at line 91 of file vtkMutableGraphHelper.h.
Definition at line 93 of file vtkMutableGraphHelper.h.
Definition at line 94 of file vtkMutableGraphHelper.h.