public class BoundaryPolyCurve2D<T extends ContinuousOrientedCurve2D> extends PolyOrientedCurve2D<T> implements ContinuousBoundary2D
closedcurves| Constructor and Description |
|---|
BoundaryPolyCurve2D() |
BoundaryPolyCurve2D(Collection<? extends T> curves) |
BoundaryPolyCurve2D(int n) |
BoundaryPolyCurve2D(T[] curves) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends ContinuousOrientedCurve2D> |
create(Collection<T> curves)
Static factory for creating a new BoundaryPolyCurve2D from a collection
of curves.
|
static <T extends ContinuousOrientedCurve2D> |
create(T[] curves)
Static factory for creating a new BoundaryPolyCurve2D from an array of
curves.
|
void |
fill(Graphics2D g2) |
Collection<? extends ContinuousBoundary2D> |
getBoundaryCurves()
Returns a ArrayList
this. |
Domain2D |
getDomain()
Returns the domain delimited by this boundary.
|
BoundaryPolyCurve2D<? extends ContinuousOrientedCurve2D> |
getReverseCurve()
Returns the curve with same trace on the plane with parametrization in
reverse order.
|
boolean |
isClosed()
Override the isClosed() id the following way: return true if all curves
are bounded.
|
BoundaryPolyCurve2D<ContinuousOrientedCurve2D> |
transform(AffineTransform2D trans)
Transforms each curve, and build a new CurveArray2D with the set of
transformed curves.
|
clip, getSignedDistance, getSignedDistance, getSubCurve, getWindingAngle, isInsideappendPath, draw, equals, getAsPolyline, getContinuousCurves, getGeneralPath, getLeftTangent, getRightTangent, getSmoothPieces, setClosed, wrapCurveaddCurve, clearCurves, clone, contains, contains, containsCurve, getAsAWTShape, getBoundingBox, getChildCurve, getCurve, getCurveIndex, getCurveNumber, getCurves, getDistance, getDistance, getFirstCurve, getFirstPoint, getGlobalPosition, getIntersections, getLastCurve, getLastPoint, getLocalPosition, getPoint, getPosition, getSingularPoints, getT0, getT1, isBounded, isEmpty, isSingular, iterator, project, removeCurvefromUnitSegment, toUnitSegmentfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisInsideclip, getSubCurveappendPath, getAsPolyline, getLeftTangent, getRightTangent, getSmoothPiecesgetSignedDistance, getSignedDistance, getWindingAngleclone, draw, getAsAWTShape, getContinuousCurves, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getT0, getT1, isSingular, projectcontains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmptypublic BoundaryPolyCurve2D()
public BoundaryPolyCurve2D(int n)
public BoundaryPolyCurve2D(T[] curves)
public BoundaryPolyCurve2D(Collection<? extends T> curves)
public static <T extends ContinuousOrientedCurve2D> BoundaryPolyCurve2D<T> create(Collection<T> curves)
public static <T extends ContinuousOrientedCurve2D> BoundaryPolyCurve2D<T> create(T[] curves)
public boolean isClosed()
isClosed in interface ContinuousCurve2DisClosed in class PolyCurve2D<T extends ContinuousOrientedCurve2D>public Collection<? extends ContinuousBoundary2D> getBoundaryCurves()
this.getBoundaryCurves in interface Boundary2Dpublic Domain2D getDomain()
Boundary2DgetDomain in interface Boundary2Dpublic void fill(Graphics2D g2)
fill in interface Boundary2Dpublic BoundaryPolyCurve2D<? extends ContinuousOrientedCurve2D> getReverseCurve()
Curve2DgetReverseCurve in interface ContinuousCurve2DgetReverseCurve in interface Curve2DgetReverseCurve in interface Boundary2DgetReverseCurve in interface ContinuousBoundary2DgetReverseCurve in interface ContinuousOrientedCurve2DgetReverseCurve in interface OrientedCurve2DgetReverseCurve in class PolyOrientedCurve2D<T extends ContinuousOrientedCurve2D>public BoundaryPolyCurve2D<ContinuousOrientedCurve2D> transform(AffineTransform2D trans)
CurveArray2Dtransform in interface ContinuousCurve2Dtransform in interface Curve2Dtransform in interface Boundary2Dtransform in interface ContinuousBoundary2Dtransform in interface ContinuousOrientedCurve2Dtransform in interface OrientedCurve2Dtransform in interface Shape2Dtransform in class PolyOrientedCurve2D<T extends ContinuousOrientedCurve2D>trans - an affine transformCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.