Class Path2ai.AbstractPathIterator<E extends PathElement2ai>
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.ai.Path2ai.AbstractPathIterator<E>
-
- Type Parameters:
E- the type of the path elements.
- All Implemented Interfaces:
Iterator<E>,PathIterator2ai<E>,PathIterator2D<E>
- Direct Known Subclasses:
Path2ai.PathPathIterator,Path2ai.TransformedPathIterator
- Enclosing interface:
- Path2ai<ST extends Shape2ai<?,?,IE,P,V,B>,IT extends Path2ai<?,?,IE,P,V,B>,IE extends PathElement2ai,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2ai<?,?,IE,P,V,B>>
public abstract static class Path2ai.AbstractPathIterator<E extends PathElement2ai> extends Object implements PathIterator2ai<E>
An abstract path iterator.- 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
-
-
Constructor Summary
Constructors Constructor Description AbstractPathIterator(Path2ai<?,?,E,?,?,?> path)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeomFactory2ai<E,?,?,?>getGeomFactory()Replies the factory of geometrical elements.PathWindingRulegetWindingRule()Replies the winding rule for the path.booleanisCurved()Replies the path contains a curve.booleanisMultiParts()Replies the path has multiple parts, i.e. multipleMOVE_TOare inside.booleanisPolygon()Replies the path is composed only by oneMOVE_TO, a sequence ofLINE_TOorQUAD_TOorCURVE_TOorARC_TO, and a singleCLOSEprimitives.booleanisPolyline()Replies the path is composed only by oneMOVE_TO, and a sequence ofLINE_TOprimitives.voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.ai.PathIterator2ai
restartIterations
-
-
-
-
Field Detail
-
path
protected final Path2ai<?,?,E extends PathElement2ai,?,?,?> path
Path.
-
-
Method Detail
-
remove
public void remove()
- Specified by:
removein interfaceIterator<E extends PathElement2ai>
-
getWindingRule
public PathWindingRule getWindingRule()
Description copied from interface:PathIterator2DReplies the winding rule for the path.- Specified by:
getWindingRulein interfacePathIterator2D<E extends PathElement2ai>- Returns:
- the winding rule for the path.
-
isPolyline
public boolean isPolyline()
Description copied from interface:PathIterator2DReplies the path is composed only by oneMOVE_TO, and a sequence ofLINE_TOprimitives.- Specified by:
isPolylinein interfacePathIterator2D<E extends PathElement2ai>- Returns:
trueif the path does not contain curve primitives,falseotherwise.
-
isCurved
public boolean isCurved()
Description copied from interface:PathIterator2DReplies the path contains a curve.- Specified by:
isCurvedin interfacePathIterator2D<E extends PathElement2ai>- Returns:
trueif the path contains curve primitives,falseotherwise.
-
isMultiParts
public boolean isMultiParts()
Description copied from interface:PathIterator2DReplies the path has multiple parts, i.e. multipleMOVE_TOare inside. primitives.- Specified by:
isMultiPartsin interfacePathIterator2D<E extends PathElement2ai>- Returns:
trueif the path has multiple move-to primitive,falseotherwise.
-
isPolygon
public boolean isPolygon()
Description copied from interface:PathIterator2DReplies the path is composed only by oneMOVE_TO, a sequence ofLINE_TOorQUAD_TOorCURVE_TOorARC_TO, and a singleCLOSEprimitives.- Specified by:
isPolygonin interfacePathIterator2D<E extends PathElement2ai>- Returns:
trueif the path does not contain curve primitives,falseotherwise.
-
getGeomFactory
public GeomFactory2ai<E,?,?,?> getGeomFactory()
Description copied from interface:PathIterator2DReplies the factory of geometrical elements.- Specified by:
getGeomFactoryin interfacePathIterator2ai<E extends PathElement2ai>- Specified by:
getGeomFactoryin interfacePathIterator2D<E extends PathElement2ai>- Returns:
- the factory.
-
-