uk.ac.starlink.diva.interp
Class InterpolatedCurveIterator
java.lang.Object
uk.ac.starlink.diva.interp.InterpolatedCurveIterator
- All Implemented Interfaces:
- PathIterator
public class InterpolatedCurveIterator
- extends Object
- implements PathIterator
An iterator over an InterpolatedCurve2D.
- Version:
- $Id$
- Author:
- Peter W. Draper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterpolatedCurveIterator
public InterpolatedCurveIterator(InterpolatedCurve2D curve,
AffineTransform at)
- Create an iterator for the given InterpolatedCurve2D.
- Parameters:
curve
- the InterpolatedCurve2D instance to iterate over.at
- a transform to apply to the InterpolatedCurve2D vertices.
If null then an identity transform will be used.
currentSegment
public int currentSegment(double[] coords)
- Specified by:
currentSegment
in interface PathIterator
currentSegment
public int currentSegment(float[] coords)
- Specified by:
currentSegment
in interface PathIterator
getWindingRule
public int getWindingRule()
- Specified by:
getWindingRule
in interface PathIterator
isDone
public boolean isDone()
- Test if the iterator is done.
- Specified by:
isDone
in interface PathIterator
next
public void next()
- Move the iterator along by one point.
- Specified by:
next
in interface PathIterator
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.