Package org.arakhne.afc.math.geometry.d2
Interface PathIterator2D<T extends PathElement2D>
-
- Type Parameters:
T
- the type of the path elements.
- All Superinterfaces:
Iterator<T>
- All Known Subinterfaces:
PathIterator2afp<T>
,PathIterator2ai<T>
- All Known Implementing Classes:
Circle2afp.AbstractCirclePathIterator
,Circle2afp.CirclePathIterator
,Circle2afp.TransformedCirclePathIterator
,Circle2ai.AbstractCirclePathIterator
,Circle2ai.CirclePathIterator
,Circle2ai.TransformedCirclePathIterator
,Ellipse2afp.AbstractEllipsePathIterator
,Ellipse2afp.EllipsePathIterator
,Ellipse2afp.TransformedEllipsePathIterator
,MultiShape2afp.AbstractMultiShapePathIterator
,MultiShape2afp.MultiShapePathIterator
,MultiShape2afp.TransformedMultiShapePathIterator
,MultiShape2ai.AbstractMultiShapePathIterator
,MultiShape2ai.MultiShapePathIterator
,MultiShape2ai.TransformedMultiShapePathIterator
,OrientedRectangle2afp.AbstractOrientedRectanglePathIterator
,OrientedRectangle2afp.OrientedRectanglePathIterator
,OrientedRectangle2afp.ProjectionToOrientedRectangleLocalCoordinateSystemPathIterator
,OrientedRectangle2afp.TransformedOrientedRectanglePathIterator
,Parallelogram2afp.AbstractParallelogramPathIterator
,Parallelogram2afp.ParallelogramPathIterator
,Parallelogram2afp.ProjectionToParallelogramLocalCoordinateSystemPathIterator
,Parallelogram2afp.TransformedParallelogramPathIterator
,Path2afp.AbstractPathPathIterator
,Path2afp.FlatteningPathIterator
,Path2afp.PathPathIterator
,Path2afp.TransformedPathPathIterator
,Path2ai.AbstractPathIterator
,Path2ai.FlatteningPathIterator
,Path2ai.PathPathIterator
,Path2ai.TransformedPathIterator
,PathIteratorWrapper
,PathIteratorWrapper
,Rectangle2afp.RectanglePathIterator
,Rectangle2afp.TransformedRectanglePathIterator
,Rectangle2ai.RectanglePathIterator
,Rectangle2ai.TransformedRectanglePathIterator
,RoundRectangle2afp.AbstractRoundRectanglePathIterator
,RoundRectangle2afp.RoundRectanglePathIterator
,RoundRectangle2afp.TransformedRoundRectanglePathIterator
,Segment2afp.SegmentPathIterator
,Segment2ai.AbstractSegmentPathIterator
,Segment2ai.SegmentPathIterator
,Segment2ai.TransformedSegmentPathIterator
,Triangle2afp.AbstractTrianglePathIterator
,Triangle2afp.TransformedTrianglePathIterator
,Triangle2afp.TrianglePathIterator
public interface PathIterator2D<T extends PathElement2D> extends Iterator<T>
This interface describes an interator on path elements.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GeomFactory2D<?,?>
getGeomFactory()
Replies the factory of geometrical elements.PathWindingRule
getWindingRule()
Replies the winding rule for the path.boolean
isCurved()
Replies the path contains a curve.boolean
isMultiParts()
Replies the path has multiple parts, i.e. multipleMOVE_TO
are inside.boolean
isPolygon()
Replies the path is composed only by oneMOVE_TO
, a sequence ofLINE_TO
orQUAD_TO
orCURVE_TO
orARC_TO
, and a singleCLOSE
primitives.boolean
isPolyline()
Replies the path is composed only by oneMOVE_TO
, and a sequence ofLINE_TO
primitives.PathIterator2D<T>
restartIterations()
Replies a reset instance of this iterator.-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Method Detail
-
getWindingRule
@Pure PathWindingRule getWindingRule()
Replies the winding rule for the path.- Returns:
- the winding rule for the path.
-
isPolyline
@Pure boolean isPolyline()
Replies the path is composed only by oneMOVE_TO
, and a sequence ofLINE_TO
primitives.- Returns:
true
if the path does not contain curve primitives,false
otherwise.
-
isCurved
@Pure boolean isCurved()
Replies the path contains a curve.- Returns:
true
if the path contains curve primitives,false
otherwise.
-
isMultiParts
@Pure boolean isMultiParts()
Replies the path has multiple parts, i.e. multipleMOVE_TO
are inside. primitives.- Returns:
true
if the path has multiple move-to primitive,false
otherwise.
-
isPolygon
@Pure boolean isPolygon()
Replies the path is composed only by oneMOVE_TO
, a sequence ofLINE_TO
orQUAD_TO
orCURVE_TO
orARC_TO
, and a singleCLOSE
primitives.- Returns:
true
if the path does not contain curve primitives,false
otherwise.
-
restartIterations
PathIterator2D<T> restartIterations()
Replies a reset instance of this iterator.The reset instance enables to restart iterations with the replied iterator.
- Returns:
- the reset iterator.
-
getGeomFactory
GeomFactory2D<?,?> getGeomFactory()
Replies the factory of geometrical elements.- Returns:
- the factory.
-
-