VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkEdgeListIterator Class Reference

Iterates through all edges in a graph. More...

#include <vtkEdgeListIterator.h>

Inheritance diagram for vtkEdgeListIterator:
Inheritance graph
[legend]
Collaboration diagram for vtkEdgeListIterator:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkEdgeListIteratorNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkGraphGetGraph ()
virtual void SetGraph (vtkGraph *graph)
vtkGraphEdgeNextGraphEdge ()
bool HasNext ()
vtkEdgeType Next ()

Static Public Member Functions

static vtkEdgeListIteratorNew ()
static int IsTypeOf (const char *type)
static vtkEdgeListIteratorSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkEdgeListIterator ()
 ~vtkEdgeListIterator ()
void Increment ()

Protected Attributes

vtkGraphGraph
const vtkOutEdgeTypeCurrent
const vtkOutEdgeTypeEnd
vtkIdType Vertex
bool Directed
vtkGraphEdgeGraphEdge

Detailed Description

Iterates through all edges in a graph.

vtkEdgeListIterator iterates through all the edges in a graph, by traversing the adjacency list for each vertex. You may instantiate this class directly and call SetGraph() to traverse a certain graph. You may also call the graph's GetEdges() method to set up the iterator for a certain graph.

Note that this class does NOT guarantee that the edges will be processed in order of their ids (i.e. it will not necessarily return edge 0, then edge 1, etc.).

See also:
vtkGraph
Examples:
vtkEdgeListIterator (Examples)
Tests:
vtkEdgeListIterator (Tests)

Definition at line 55 of file vtkEdgeListIterator.h.


Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 59 of file vtkEdgeListIterator.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

static int vtkEdgeListIterator::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 vtkEdgeListIterator::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.

Reimplemented from vtkObject.

virtual vtkObjectBase* vtkEdgeListIterator::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkObject.

Reimplemented from vtkObject.

void vtkEdgeListIterator::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 vtkObject.

virtual vtkGraph* vtkEdgeListIterator::GetGraph ( ) [virtual]
virtual void vtkEdgeListIterator::SetGraph ( vtkGraph graph) [virtual]

Returns the next edge in the graph.

Just like Next(), but returns heavy-weight vtkGraphEdge object instead of the vtkEdgeType struct, for use with wrappers. The graph edge is owned by this iterator, and changes after each call to NextGraphEdge().

Whether this iterator has more edges.

void vtkEdgeListIterator::Increment ( ) [protected]

Member Data Documentation

Definition at line 87 of file vtkEdgeListIterator.h.

Definition at line 88 of file vtkEdgeListIterator.h.

Definition at line 89 of file vtkEdgeListIterator.h.

Definition at line 90 of file vtkEdgeListIterator.h.

Definition at line 91 of file vtkEdgeListIterator.h.

Definition at line 92 of file vtkEdgeListIterator.h.


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