FreeMat
|
Section: Visualization Toolkit Filtering Classes
vtkInEdgeIterator iterates through all edges whose target is a particular vertex. Instantiate this class directly and call Initialize() to traverse the vertex of a graph. Alternately, use GetInEdges() on the graph to initialize the iterator. it->Next() returns a vtkInEdgeType structure, which contains Id, the edge's id, and Source, the edge's source vertex.
To create an instance of class vtkInEdgeIterator, simply invoke its constructor as follows
obj = vtkInEdgeIterator
The class vtkInEdgeIterator has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, obj
is an instance of the vtkInEdgeIterator class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkInEdgeIterator = obj.NewInstance ()
vtkInEdgeIterator = obj.SafeDownCast (vtkObject o)
obj.Initialize (vtkGraph g, vtkIdType v)
- Initialize the iterator with a graph and vertex. vtkGraph = obj.GetGraph ()
- Get the graph and vertex associated with this iterator. vtkIdType = obj.GetVertex ()
- Get the graph and vertex associated with this iterator. vtkGraphEdge = obj.NextGraphEdge ()
- 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(). bool = obj.HasNext ()