Class AbstractMultiCurve.MultiCurveIterator
java.lang.Object
org.gvsig.fmap.geom.jts.gputils.GeneralPathXIterator
org.gvsig.fmap.geom.jts.aggregate.AbstractMultiCurve.MultiCurveIterator
- All Implemented Interfaces:
PathIterator
- Enclosing class:
AbstractMultiCurve
-
Field Summary
Fields inherited from class org.gvsig.fmap.geom.jts.gputils.GeneralPathXIterator
affine, path, pointIdx, typeIdxFields inherited from interface java.awt.geom.PathIterator
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcurrentSegment(double[] coords) Returns the coordinates and type of the current path segment in the iteration.intcurrentSegment(float[] coords) Returns the coordinates and type of the current path segment in the iteration.intReturn the winding rule for determining the interior of the path.booleanisDone()Tests if there are more points to read.voidnext()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.Methods inherited from class org.gvsig.fmap.geom.jts.gputils.GeneralPathXIterator
currentSegment3D
-
Constructor Details
-
MultiCurveIterator
Creates a new PointIterator object.- Parameters:
at- The affine transform applied to coordinates during iterationp- The polygon
-
-
Method Details
-
getWindingRule
public int getWindingRule()Return the winding rule for determining the interior of the path.- Specified by:
getWindingRulein interfacePathIterator- Overrides:
getWindingRulein classGeneralPathXIterator- Returns:
WIND_EVEN_ODDby default.- See Also:
-
next
public void next()Description copied from class:GeneralPathXIteratorMoves 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.- Specified by:
nextin interfacePathIterator- Overrides:
nextin classGeneralPathXIterator- See Also:
-
isDone
public boolean isDone()Description copied from class:GeneralPathXIteratorTests if there are more points to read.- Specified by:
isDonein interfacePathIterator- Overrides:
isDonein classGeneralPathXIterator- Returns:
- true if there are more points to read
- See Also:
-
currentSegment
public int currentSegment(double[] coords) Description copied from class:GeneralPathXIteratorReturns the coordinates and type of the current path segment in the iteration. The return value is the path segment type: SEG_MOVETO, SEG_LINETO, SEG_QUADTO, SEG_CUBICTO, or SEG_CLOSE. A double array of length 6 must be passed in and may be used to store the coordinates of the point(s). Each point is stored as a pair of double x,y coordinates. SEG_MOVETO and SEG_LINETO types will return one point, SEG_QUADTO will return two points, SEG_CUBICTO will return 3 points and SEG_CLOSE will not return any points.- Specified by:
currentSegmentin interfacePathIterator- Overrides:
currentSegmentin classGeneralPathXIterator- See Also:
-
currentSegment
public int currentSegment(float[] coords) Description copied from class:GeneralPathXIteratorReturns the coordinates and type of the current path segment in the iteration. The return value is the path segment type: SEG_MOVETO, SEG_LINETO, SEG_QUADTO, SEG_CUBICTO, or SEG_CLOSE. A float array of length 6 must be passed in and may be used to store the coordinates of the point(s). Each point is stored as a pair of float x,y coordinates. SEG_MOVETO and SEG_LINETO types will return one point, SEG_QUADTO will return two points, SEG_CUBICTO will return 3 points and SEG_CLOSE will not return any points.- Specified by:
currentSegmentin interfacePathIterator- Overrides:
currentSegmentin classGeneralPathXIterator- See Also:
-