public class CirculinearBoundarySet2D<T extends CirculinearContour2D> extends BoundarySet2D<T> implements CirculinearBoundary2D
curves| Constructor and Description |
|---|
CirculinearBoundarySet2D()
Empty constructor.
|
CirculinearBoundarySet2D(Collection<? extends T> curves)
Constructor from a collection of curves.
|
CirculinearBoundarySet2D(int n)
Empty constructor.
|
CirculinearBoundarySet2D(T curve)
Constructor from a collection of curves.
|
CirculinearBoundarySet2D(T[] curves)
Constructor from an array of curves.
|
| Modifier and Type | Method and Description |
|---|---|
CirculinearCurveSet2D<? extends CirculinearContinuousCurve2D> |
clip(Box2D box)
Clip the curve by a box.
|
CirculinearDomain2D |
getBuffer(double dist)
Computes the buffer of the shape, formed by the set of points located
at a distance from the shape that is lower or equal to d.
|
Collection<? extends CirculinearContour2D> |
getContinuousCurves()
Returns the collection of continuous curves which constitute this curve.
|
double |
getLength() |
double |
getLength(double pos) |
CirculinearCurve2D |
getParallel(double d)
Creates a new curve, formed by the points with parameterization:
p(t) = c(t) + d*n(t)/|n(t)|, with p(t) being a point of
the original curve, n(t) the normal of the curve, and |n| being the
norm of n.In the case of a continuous curve formed by several smooth circulinear elements, the parallels of contiguous elements are joined by a circle arc. |
double |
getPosition(double length) |
CirculinearBoundarySet2D<? extends CirculinearContour2D> |
getReverseCurve()
Returns the curve with same trace on the plane with parametrization in
reverse order.
|
CirculinearCurveSet2D<? extends CirculinearContinuousCurve2D> |
getSubCurve(double t0,
double t1)
Return an instance of CurveArray2D.
|
CirculinearBoundarySet2D<? extends CirculinearContour2D> |
transform(CircleInversion2D inv)
Transforms the shape by a circle inversion.
|
create, create, fill, getBoundaryCurves, getDomain, getSignedDistance, getSignedDistance, getWindingAngle, isInside, transformaddCurve, clearCurves, clone, contains, contains, containsCurve, draw, equals, getAsAWTShape, getBoundingBox, getChildCurve, getCurve, getCurveIndex, getCurveNumber, getCurves, getDistance, getDistance, getFirstCurve, getFirstPoint, getGeneralPath, getGlobalPosition, getIntersections, getLastCurve, getLastPoint, getLocalPosition, getPoint, getPosition, getSingularPoints, getT0, getT1, isBounded, isEmpty, isSingular, iterator, project, removeCurvefromUnitSegment, toUnitSegmentfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfill, getBoundaryCurves, getDomain, isInside, transformgetSignedDistance, getSignedDistance, getWindingAngleclone, draw, getAsAWTShape, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getT0, getT1, isSingular, projectcontains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmptypublic CirculinearBoundarySet2D()
public CirculinearBoundarySet2D(int n)
public CirculinearBoundarySet2D(T[] curves)
curves - the array of curves in the setpublic CirculinearBoundarySet2D(T curve)
curves - the collection of curves to add to the setpublic CirculinearBoundarySet2D(Collection<? extends T> curves)
curves - the collection of curves to add to the setpublic double getLength()
getLength in interface CirculinearCurve2Dpublic double getLength(double pos)
getLength in interface CirculinearCurve2Dpublic double getPosition(double length)
getPosition in interface CirculinearCurve2Dpublic CirculinearDomain2D getBuffer(double dist)
CirculinearShape2DgetBuffer in interface CirculinearShape2Ddist - the maximal distance between a point of the buffer and the
shapepublic CirculinearCurve2D getParallel(double d)
CirculinearCurve2D p(t) = c(t) + d*n(t)/|n(t)|, with p(t) being a point of
the original curve, n(t) the normal of the curve, and |n| being the
norm of n.getParallel in interface CirculinearCurve2Dd - the distance between the original curve and he parallel curve.public CirculinearBoundarySet2D<? extends CirculinearContour2D> transform(CircleInversion2D inv)
CirculinearShape2Dtransform in interface CirculinearBoundary2Dtransform in interface CirculinearCurve2Dtransform in interface CirculinearShape2Dinv - the circle inversionpublic Collection<? extends CirculinearContour2D> getContinuousCurves()
Curve2DgetContinuousCurves in interface CirculinearBoundary2DgetContinuousCurves in interface CirculinearCurve2DgetContinuousCurves in interface Curve2DgetContinuousCurves in class CurveArray2D<T extends CirculinearContour2D>public CirculinearCurveSet2D<? extends CirculinearContinuousCurve2D> clip(Box2D box)
BoundarySet2Dclip in interface CirculinearBoundary2Dclip in interface CirculinearCurve2Dclip in interface Curve2Dclip in interface OrientedCurve2Dclip in interface Shape2Dclip in class BoundarySet2D<T extends CirculinearContour2D>box - the clipping boxpublic CirculinearBoundarySet2D<? extends CirculinearContour2D> getReverseCurve()
Curve2DgetReverseCurve in interface CirculinearBoundary2DgetReverseCurve in interface CirculinearCurve2DgetReverseCurve in interface Curve2DgetReverseCurve in interface Boundary2DgetReverseCurve in interface OrientedCurve2DgetReverseCurve in class BoundarySet2D<T extends CirculinearContour2D>public CirculinearCurveSet2D<? extends CirculinearContinuousCurve2D> getSubCurve(double t0, double t1)
CurveArray2DgetSubCurve in interface CirculinearCurve2DgetSubCurve in interface Curve2DgetSubCurve in class BoundarySet2D<T extends CirculinearContour2D>t0 - position of the start of the sub-curvet1 - position of the end of the sub-curveCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.