Class RectangularPrism3afp.TransformedRectanglePathIterator<T extends PathElement3afp>
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.afp.RectangularPrism3afp.TransformedRectanglePathIterator<T>
-
- Type Parameters:
T- the type of the path elements.
- All Implemented Interfaces:
Cloneable,Iterator<T>,PathIterator3afp<T>,PathIterator3D<T>
- Enclosing interface:
- RectangularPrism3afp<ST extends Shape3afp<?,?,IE,P,V,B>,IT extends RectangularPrism3afp<?,?,IE,P,V,B>,IE extends PathElement3afp,P extends Point3D<? super P,? super V>,V extends Vector3D<? super V,? super P>,B extends RectangularPrism3afp<?,?,IE,P,V,B>>
public static class RectangularPrism3afp.TransformedRectanglePathIterator<T extends PathElement3afp> extends Object implements PathIterator3afp<T>
Iterator on the path elements of the rectangle.- 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 TransformedRectanglePathIterator(RectangularPrism3afp<?,?,T,?,?,?> rectangle, Transform3D transform)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeomFactory3afp<T,?,?,?>getGeomFactory()Replies the factory of geometrical elements.PathWindingRulegetWindingRule()Replies the winding rule for the path.booleanhasNext()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_TO, and a singleCLOSEprimitives.booleanisPolyline()Replies the path is composed only by oneMOVE_TO, and a sequence ofLINE_TOprimitives.Tnext()voidremove()PathIterator3afp<T>restartIterations()Replies a reset instance of this iterator.-
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
-
-
-
-
Constructor Detail
-
TransformedRectanglePathIterator
public TransformedRectanglePathIterator(RectangularPrism3afp<?,?,T,?,?,?> rectangle, Transform3D transform)
Constructor.- Parameters:
rectangle- the iterated rectangle.transform- the transformation.
-
-
Method Detail
-
restartIterations
public PathIterator3afp<T> restartIterations()
Description copied from interface:PathIterator3DReplies a reset instance of this iterator.The reset instance enables to restart iterations with the replied iterator.
- Specified by:
restartIterationsin interfacePathIterator3afp<T extends PathElement3afp>- Specified by:
restartIterationsin interfacePathIterator3D<T extends PathElement3afp>- Returns:
- the reset iterator.
-
hasNext
@Pure public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<T extends PathElement3afp>
-
next
public T next()
- Specified by:
nextin interfaceIterator<T extends PathElement3afp>
-
remove
public void remove()
- Specified by:
removein interfaceIterator<T extends PathElement3afp>
-
getWindingRule
@Pure public PathWindingRule getWindingRule()
Description copied from interface:PathIterator3DReplies the winding rule for the path.- Specified by:
getWindingRulein interfacePathIterator3D<T extends PathElement3afp>- Returns:
- the winding rule for the path.
-
isPolyline
@Pure public boolean isPolyline()
Description copied from interface:PathIterator3DReplies the path is composed only by oneMOVE_TO, and a sequence ofLINE_TOprimitives.- Specified by:
isPolylinein interfacePathIterator3D<T extends PathElement3afp>- Returns:
trueif the path does not contain curve primitives,falseotherwise.
-
isCurved
@Pure public boolean isCurved()
Description copied from interface:PathIterator3DReplies the path contains a curve.- Specified by:
isCurvedin interfacePathIterator3D<T extends PathElement3afp>- Returns:
trueif the path contains curve primitives,falseotherwise.
-
isPolygon
@Pure public boolean isPolygon()
Description copied from interface:PathIterator3DReplies the path is composed only by oneMOVE_TO, a sequence ofLINE_TOorQUAD_TOorCURVE_TO, and a singleCLOSEprimitives.- Specified by:
isPolygonin interfacePathIterator3D<T extends PathElement3afp>- Returns:
trueif the path does not contain curve primitives,falseotherwise.
-
isMultiParts
@Pure public boolean isMultiParts()
Description copied from interface:PathIterator3DReplies the path has multiple parts, i.e. multipleMOVE_TOare inside. primitives.- Specified by:
isMultiPartsin interfacePathIterator3D<T extends PathElement3afp>- Returns:
trueif the path has multiple move-to primitive,falseotherwise.
-
getGeomFactory
public GeomFactory3afp<T,?,?,?> getGeomFactory()
Description copied from interface:PathIterator3afpReplies the factory of geometrical elements.- Specified by:
getGeomFactoryin interfacePathIterator3afp<T extends PathElement3afp>- Returns:
- the factory.
-
-