math.geom2d.spline
Class PolyBezierCurve2D

java.lang.Object
  extended by math.geom2d.curve.CurveSet2D<T>
      extended by math.geom2d.curve.PolyCurve2D<BezierCurve2D>
          extended by math.geom2d.spline.PolyBezierCurve2D
All Implemented Interfaces:
java.awt.Shape, java.lang.Iterable<BezierCurve2D>, ContinuousCurve2D, Curve2D, Shape2D

public class PolyBezierCurve2D
extends PolyCurve2D<BezierCurve2D>

A set of bezier curves, making a continuous curve.

Author:
dlegland

Field Summary
 
Fields inherited from class math.geom2d.curve.PolyCurve2D
closed
 
Fields inherited from class math.geom2d.curve.CurveSet2D
curves
 
Fields inherited from interface math.geom2d.curve.ContinuousCurve2D
CIRCLE, CLOSED_EDGE, LOOP, OPEN_EDGE
 
Fields inherited from interface math.geom2d.Shape2D
ACCURACY, defaultClipWindow, EMPTY_SET
 
Constructor Summary
PolyBezierCurve2D()
           
PolyBezierCurve2D(BezierCurve2D[] curves)
           
PolyBezierCurve2D(java.util.Collection<BezierCurve2D> curves)
           
 
Method Summary
 PolyBezierCurve2D clip(Box2D box)
          returns a new PolyBezierCurve2D.
 PolyBezierCurve2D transform(AffineTransform2D trans)
          Transform each curve, and build a new CurveSet2D with the set of transformed curves.
 
Methods inherited from class math.geom2d.curve.PolyCurve2D
appendPath, getAsPolyline, getGeneralPath, getPathIterator, getPathIterator, getReverseCurve, getSmoothPieces, getSubCurve, isClosed, setClosed
 
Methods inherited from class math.geom2d.curve.CurveSet2D
addCurve, clearCurves, contains, contains, contains, contains, equals, fromUnitSegment, getBoundingBox, getBounds, getBounds2D, getContinuousCurves, getCurveNumber, getCurves, getDistance, getDistance, getFirstCurve, getFirstPoint, getIntersections, getLastCurve, getLastPoint, getPoint, getPoint, getPosition, getT0, getT1, intersects, intersects, isBounded, isEmpty, iterator, project, removeCurve, toUnitSegment
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface math.geom2d.curve.Curve2D
getContinuousCurves, getFirstPoint, getIntersections, getLastPoint, getPoint, getPoint, getPosition, getT0, getT1, project
 
Methods inherited from interface math.geom2d.Shape2D
getBoundingBox, getDistance, getDistance, isBounded
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, getBounds2D, intersects, intersects
 

Constructor Detail

PolyBezierCurve2D

public PolyBezierCurve2D()

PolyBezierCurve2D

public PolyBezierCurve2D(BezierCurve2D[] curves)

PolyBezierCurve2D

public PolyBezierCurve2D(java.util.Collection<BezierCurve2D> curves)
Method Detail

clip

public PolyBezierCurve2D clip(Box2D box)
returns a new PolyBezierCurve2D.

Specified by:
clip in interface ContinuousCurve2D
Specified by:
clip in interface Curve2D
Specified by:
clip in interface Shape2D
Overrides:
clip in class PolyCurve2D<BezierCurve2D>
Parameters:
box - the clipping box
Returns:
the clipped shape

transform

public PolyBezierCurve2D transform(AffineTransform2D trans)
Description copied from class: CurveSet2D
Transform each curve, and build a new CurveSet2D with the set of transformed curves.

Specified by:
transform in interface ContinuousCurve2D
Specified by:
transform in interface Curve2D
Specified by:
transform in interface Shape2D
Overrides:
transform in class PolyCurve2D<BezierCurve2D>
Parameters:
trans - an affine transform
Returns:
the transformed shape