VTK
|
Helper class for building a directed or directed graph. More...
#include <vtkMutableGraphHelper.h>
Helper class for building a directed or directed graph.
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 46 of file vtkMutableGraphHelper.h.
Reimplemented from vtkObject.
Definition at line 50 of file vtkMutableGraphHelper.h.
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.
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 | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkObject.
virtual vtkObjectBase* vtkMutableGraphHelper::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkObject.
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.
Set the underlying graph that you want to modify with this helper. The graph must be an instance of vtkMutableDirectedGraph or vtkMutableUndirectedGraph.
Add an edge to the underlying mutable graph.
Add an edge to the underlying mutable graph.
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 90 of file vtkMutableGraphHelper.h.
vtkGraphEdge* vtkMutableGraphHelper::GraphEdge [protected] |
Definition at line 92 of file vtkMutableGraphHelper.h.
Definition at line 94 of file vtkMutableGraphHelper.h.
Definition at line 95 of file vtkMutableGraphHelper.h.