VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkMutableGraphHelper Class Reference

Helper class for building a directed or directed graph. More...

#include <vtkMutableGraphHelper.h>

Inherits vtkObject.

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkMutableGraphHelperNewInstance () const
 
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 vtkMutableGraphHelperNew ()
 
static int IsTypeOf (const char *type)
 
static vtkMutableGraphHelperSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkMutableGraphHelper ()
 
 ~vtkMutableGraphHelper ()
 
virtual vtkGraph * GetInternalGraph ()
 
void SetInternalGraph (vtkGraph *g)
 

Protected Attributes

vtkGraph * InternalGraph
 
vtkGraphEdge * GraphEdge
 
vtkMutableDirectedGraph * DirectedGraph
 
vtkMutableUndirectedGraph * UndirectedGraph
 

Detailed Description

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.

See Also
vtkGraph vtkMutableDirectedGraph vtkMutableUndirectedGraph

Definition at line 46 of file vtkMutableGraphHelper.h.

Member Typedef Documentation

Definition at line 50 of file vtkMutableGraphHelper.h.

Constructor & Destructor Documentation

vtkMutableGraphHelper::vtkMutableGraphHelper ( )
protected
vtkMutableGraphHelper::~vtkMutableGraphHelper ( )
protected

Member Function Documentation

static vtkMutableGraphHelper* vtkMutableGraphHelper::New ( )
static
static int vtkMutableGraphHelper::IsTypeOf ( const char *  type)
static
virtual int vtkMutableGraphHelper::IsA ( const char *  type)
virtual
static vtkMutableGraphHelper* vtkMutableGraphHelper::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkMutableGraphHelper::NewInstanceInternal ( ) const
protectedvirtual
vtkMutableGraphHelper* vtkMutableGraphHelper::NewInstance ( ) const
void vtkMutableGraphHelper::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
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 ( )
protectedvirtual
void vtkMutableGraphHelper::SetInternalGraph ( vtkGraph *  g)
protected

Member Data Documentation

vtkGraph* vtkMutableGraphHelper::InternalGraph
protected

Definition at line 90 of file vtkMutableGraphHelper.h.

vtkGraphEdge* vtkMutableGraphHelper::GraphEdge
protected

Definition at line 92 of file vtkMutableGraphHelper.h.

vtkMutableDirectedGraph* vtkMutableGraphHelper::DirectedGraph
protected

Definition at line 94 of file vtkMutableGraphHelper.h.

vtkMutableUndirectedGraph* vtkMutableGraphHelper::UndirectedGraph
protected

Definition at line 95 of file vtkMutableGraphHelper.h.


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