Package org.tinfour.common
Class VertexIterator
- java.lang.Object
-
- org.tinfour.common.VertexIterator
-
public class VertexIterator extends Object implements Iterator<Vertex>
An implementation of an iterator for looping through the vertices that form a Triangulated Irregular Network.This iterator will identify all unique vertices that form the structure of the TIN and will deliver them to the calling application. In the case where an application has supplied multiple vertices with the same coordinates, this application will use a "VertexMergerGroup" object in their place. Thus the set of vertex objects input to an Incremental TIN instance is not necessarily the same set of objects produced by this iterator.
This class is not thread safe. Applications must not modify the TIN (by adding or removing vertices) while using the iterator.
-
-
Constructor Summary
Constructors Constructor Description VertexIterator(IIncrementalTin tin)Construct an instance of the iterator based on the specified Incremental TIN structure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Vertexnext()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
VertexIterator
public VertexIterator(IIncrementalTin tin)
Construct an instance of the iterator based on the specified Incremental TIN structure.- Parameters:
tin- a valid instance
-
-