public class SimpleTriangleIterator extends Object implements Iterator<SimpleTriangle>
Note: The Tinfour incremental TIN classes do not actual construct triangle objects as part of their structure. The fundamental element in a TIN is the edge structure. Triangle objects are constructed by the iterator at run time. This approach reduces the overall memory requirements for the TIN.
This iterator will identify all unique triangles implicit in the structure of the TIN and will deliver them to the calling application.
This class is not thread safe. Applications must not modify the TIN (by adding or removing points) while using the iterator.
| Constructor and Description |
|---|
SimpleTriangleIterator(IIncrementalTin tin)
Construct an instance of the iterator based on the specified
Incremental TIN structure.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
SimpleTriangle |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic SimpleTriangleIterator(IIncrementalTin tin)
tin - a valid instancepublic boolean hasNext()
hasNext in interface Iterator<SimpleTriangle>public SimpleTriangle next()
next in interface Iterator<SimpleTriangle>Copyright © 2021. All rights reserved.