| java.lang.Object org.geotools.geometry.jts.AbstractLiteIterator org.geotools.geometry.jts.LineIterator
LineIterator | final public class LineIterator extends AbstractLiteIterator (Code) | | A path iterator for the LiteShape class, specialized to iterate over
LineString object.
author: Andrea Aime author: simone giannecchini version: $Id: LineIterator.java 25075 2007-04-09 19:20:46Z desruisseaux $ |
Method Summary | |
public int | currentSegment(double[] coords) | public double | getMaxDistance() | public int | getWindingRule() Returns the winding rule for determining the interior of the path. | public void | init(LineString ls, AffineTransform at, boolean generalize, float maxDistance, float xScale, float yScale) | public void | init(LineString ls, AffineTransform at, boolean generalize, float maxDistance) | public boolean | isDone() Tests if the iteration is complete. | public void | next() Moves the iterator to the next segment of the path forwards along the
primary direction of traversal as long as there are more points in that
direction. | public void | setMaxDistance(float distance) |
LineIterator | public LineIterator()(Code) | | |
LineIterator | public LineIterator(LineString ls, AffineTransform at, boolean generalize, float maxDistance)(Code) | | Creates a new instance of LineIterator
Parameters: ls - The line string the iterator will use Parameters: at - The affine transform applied to coordinates during iteration |
getMaxDistance | public double getMaxDistance()(Code) | | Returns the distance limit for point skipping during distance based
generalization
the maximum distance for distance based generalization |
init | public void init(LineString ls, AffineTransform at, boolean generalize, float maxDistance, float xScale, float yScale)(Code) | | Parameters: ls - a LineString Parameters: at - Parameters: generalize - Parameters: maxDistance - Parameters: xScale - Parameters: yScale - |
init | public void init(LineString ls, AffineTransform at, boolean generalize, float maxDistance)(Code) | | Parameters: ls - Parameters: at - Parameters: generalize - Parameters: maxDistance - |
isDone | public boolean isDone()(Code) | | Tests if the iteration is complete.
true if all the segments have been read;false otherwise. |
next | public void next()(Code) | | Moves the iterator to the next segment of the path forwards along the
primary direction of traversal as long as there are more points in that
direction.
|
setMaxDistance | public void setMaxDistance(float distance)(Code) | | Sets the distance limit for point skipping during distance based
generalization
Parameters: distance - the maximum distance for point skipping |
Fields inherited from org.geotools.geometry.jts.AbstractLiteIterator | protected double[] dcoords(Code)(Java Doc)
|
Methods inherited from org.geotools.geometry.jts.AbstractLiteIterator | public int currentSegment(float[] coords)(Code)(Java Doc)
|
|
|