|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object math.geom2d.curve.CurveSet2D<T> math.geom2d.curve.CurveArray2D<T> math.geom2d.curve.PolyCurve2D<T> math.geom2d.domain.PolyOrientedCurve2D<T> math.geom2d.circulinear.PolyCirculinearCurve2D<T> math.geom2d.circulinear.BoundaryPolyCirculinearCurve2D<T>
public class BoundaryPolyCirculinearCurve2D<T extends CirculinearContinuousCurve2D>
A continuous boundary which is composed of several continuous circulinear curves. Instances of this class can be circulinear rings (composed of several continuous and finite circulinear curves that form a loop), or an open curve with two infinite circulinear curve at each extremity.
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.Shape2D |
---|
ACCURACY |
Constructor Summary | |
---|---|
BoundaryPolyCirculinearCurve2D()
|
|
BoundaryPolyCirculinearCurve2D(Collection<? extends T> curves)
|
|
BoundaryPolyCirculinearCurve2D(Collection<? extends T> curves,
boolean closed)
|
|
BoundaryPolyCirculinearCurve2D(int size)
|
|
BoundaryPolyCirculinearCurve2D(T[] curves)
|
|
BoundaryPolyCirculinearCurve2D(T[] curves,
boolean closed)
|
Method Summary | ||
---|---|---|
CirculinearCurveSet2D<? extends CirculinearContinuousCurve2D> |
clip(Box2D box)
Clip the PolyCurve2D by a box. |
|
static
|
create(Collection<T> curves)
Static factory for creating a new BoundaryPolyCirculinearCurve2D from a collection of curves. |
|
static
|
create(Collection<T> curves,
boolean closed)
Static factory for creating a new BoundaryPolyCirculinearCurve2D from a collection of curves. |
|
static
|
create(T[] curves)
Static factory for creating a new BoundaryPolyCirculinearCurve2D from an array of curves. |
|
static
|
create(T[] curves,
boolean closed)
Static factory for creating a new BoundaryPolyCirculinearCurve2D from an array of curves. |
|
void |
fill(Graphics2D g2)
|
|
Collection<BoundaryPolyCirculinearCurve2D<T>> |
getBoundaryCurves()
Returns the different continuous curves composing the boundary |
|
Collection<? extends BoundaryPolyCirculinearCurve2D<?>> |
getContinuousCurves()
Returns the collection of continuous curves which constitute this curve. |
|
CirculinearDomain2D |
getDomain()
Returns the domain delimited by this boundary. |
|
double |
getLength()
|
|
double |
getLength(double pos)
|
|
CirculinearRing2D |
getParallel(double dist)
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)
|
|
BoundaryPolyCirculinearCurve2D<? extends CirculinearContinuousCurve2D> |
getReverseCurve()
Returns the curve with same trace on the plane with parametrization in reverse order. |
|
Collection<? extends CirculinearElement2D> |
getSmoothPieces()
Returns a collection containing only instances of SmoothCurve2D. |
|
PolyCirculinearCurve2D<? extends CirculinearContinuousCurve2D> |
getSubCurve(double t0,
double t1)
Return an instance of PolyOrientedCurve2D. |
|
BoundaryPolyCurve2D<? extends ContinuousOrientedCurve2D> |
transform(AffineTransform2D trans)
Transforms each curve, and build a new CurveArray2D with the set of transformed curves. |
|
BoundaryPolyCirculinearCurve2D<? extends CirculinearContinuousCurve2D> |
transform(CircleInversion2D inv)
Transforms the shape by a circle inversion. |
Methods inherited from class math.geom2d.circulinear.PolyCirculinearCurve2D |
---|
getBuffer |
Methods inherited from class math.geom2d.domain.PolyOrientedCurve2D |
---|
getSignedDistance, getSignedDistance, getWindingAngle, isInside |
Methods inherited from class math.geom2d.curve.PolyCurve2D |
---|
appendPath, draw, equals, getAsPolyline, getGeneralPath, getLeftTangent, getRightTangent, isClosed, setClosed, wrapCurve |
Methods inherited from class math.geom2d.curve.CurveArray2D |
---|
addCurve, 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, removeCurve |
Methods inherited from class math.geom2d.curve.CurveSet2D |
---|
fromUnitSegment, toUnitSegment |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface math.geom2d.circulinear.CirculinearShape2D |
---|
getBuffer |
Methods inherited from interface math.geom2d.curve.ContinuousCurve2D |
---|
appendPath, getAsPolyline, getLeftTangent, getRightTangent, isClosed |
Methods inherited from interface math.geom2d.domain.OrientedCurve2D |
---|
getSignedDistance, getSignedDistance, getWindingAngle |
Methods inherited from interface math.geom2d.curve.Curve2D |
---|
clone, draw, getAsAWTShape, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getT0, getT1, isSingular, project |
Methods inherited from interface math.geom2d.Shape2D |
---|
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty |
Methods inherited from interface math.geom2d.domain.Boundary2D |
---|
isInside |
Constructor Detail |
---|
public BoundaryPolyCirculinearCurve2D()
public BoundaryPolyCirculinearCurve2D(int size)
public BoundaryPolyCirculinearCurve2D(T[] curves)
public BoundaryPolyCirculinearCurve2D(T[] curves, boolean closed)
public BoundaryPolyCirculinearCurve2D(Collection<? extends T> curves)
public BoundaryPolyCirculinearCurve2D(Collection<? extends T> curves, boolean closed)
Method Detail |
---|
public static <T extends CirculinearContinuousCurve2D> BoundaryPolyCirculinearCurve2D<T> create(Collection<T> curves)
public static <T extends CirculinearContinuousCurve2D> BoundaryPolyCirculinearCurve2D<T> create(Collection<T> curves, boolean closed)
public static <T extends CirculinearContour2D> BoundaryPolyCirculinearCurve2D<T> create(T[] curves)
public static <T extends CirculinearContour2D> BoundaryPolyCirculinearCurve2D<T> create(T[] curves, boolean closed)
public double getLength()
getLength
in interface CirculinearCurve2D
getLength
in class PolyCirculinearCurve2D<T extends CirculinearContinuousCurve2D>
public double getLength(double pos)
getLength
in interface CirculinearCurve2D
getLength
in class PolyCirculinearCurve2D<T extends CirculinearContinuousCurve2D>
public double getPosition(double length)
getPosition
in interface CirculinearCurve2D
getPosition
in class PolyCirculinearCurve2D<T extends CirculinearContinuousCurve2D>
public CirculinearRing2D getParallel(double dist)
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 CirculinearContinuousCurve2D
getParallel
in interface CirculinearContour2D
getParallel
in interface CirculinearCurve2D
getParallel
in interface ContinuousCirculinearCurve2D
getParallel
in class PolyCirculinearCurve2D<T extends CirculinearContinuousCurve2D>
dist
- the distance between the original curve and he parallel curve.
public BoundaryPolyCirculinearCurve2D<? extends CirculinearContinuousCurve2D> transform(CircleInversion2D inv)
CirculinearShape2D
transform
in interface CirculinearBoundary2D
transform
in interface CirculinearContinuousCurve2D
transform
in interface CirculinearContour2D
transform
in interface CirculinearCurve2D
transform
in interface CirculinearShape2D
transform
in interface ContinuousCirculinearCurve2D
transform
in class PolyCirculinearCurve2D<T extends CirculinearContinuousCurve2D>
inv
- the circle inversion
public void fill(Graphics2D g2)
fill
in interface Boundary2D
public Collection<BoundaryPolyCirculinearCurve2D<T>> getBoundaryCurves()
Boundary2D
getBoundaryCurves
in interface Boundary2D
public CirculinearDomain2D getDomain()
Boundary2D
getDomain
in interface Boundary2D
public Collection<? extends CirculinearElement2D> getSmoothPieces()
PolyCurve2D
getSmoothPieces
in interface CirculinearContinuousCurve2D
getSmoothPieces
in interface ContinuousCirculinearCurve2D
getSmoothPieces
in interface ContinuousCurve2D
getSmoothPieces
in class PolyCirculinearCurve2D<T extends CirculinearContinuousCurve2D>
public Collection<? extends BoundaryPolyCirculinearCurve2D<?>> getContinuousCurves()
Curve2D
getContinuousCurves
in interface CirculinearBoundary2D
getContinuousCurves
in interface CirculinearCurve2D
getContinuousCurves
in interface Curve2D
getContinuousCurves
in class PolyCirculinearCurve2D<T extends CirculinearContinuousCurve2D>
public BoundaryPolyCirculinearCurve2D<? extends CirculinearContinuousCurve2D> getReverseCurve()
Curve2D
getReverseCurve
in interface CirculinearBoundary2D
getReverseCurve
in interface CirculinearContinuousCurve2D
getReverseCurve
in interface CirculinearContour2D
getReverseCurve
in interface CirculinearCurve2D
getReverseCurve
in interface ContinuousCirculinearCurve2D
getReverseCurve
in interface ContinuousCurve2D
getReverseCurve
in interface Curve2D
getReverseCurve
in interface Boundary2D
getReverseCurve
in interface ContinuousBoundary2D
getReverseCurve
in interface ContinuousOrientedCurve2D
getReverseCurve
in interface OrientedCurve2D
getReverseCurve
in class PolyCirculinearCurve2D<T extends CirculinearContinuousCurve2D>
public PolyCirculinearCurve2D<? extends CirculinearContinuousCurve2D> getSubCurve(double t0, double t1)
PolyOrientedCurve2D
getSubCurve
in interface CirculinearContinuousCurve2D
getSubCurve
in interface CirculinearCurve2D
getSubCurve
in interface ContinuousCirculinearCurve2D
getSubCurve
in interface ContinuousCurve2D
getSubCurve
in interface Curve2D
getSubCurve
in interface ContinuousOrientedCurve2D
getSubCurve
in class PolyCirculinearCurve2D<T extends CirculinearContinuousCurve2D>
t0
- position of the start of the sub-curvet1
- position of the end of the sub-curve
public CirculinearCurveSet2D<? extends CirculinearContinuousCurve2D> clip(Box2D box)
PolyOrientedCurve2D
clip
in interface CirculinearBoundary2D
clip
in interface CirculinearContinuousCurve2D
clip
in interface CirculinearCurve2D
clip
in interface ContinuousCirculinearCurve2D
clip
in interface ContinuousCurve2D
clip
in interface Curve2D
clip
in interface ContinuousOrientedCurve2D
clip
in interface OrientedCurve2D
clip
in interface Shape2D
clip
in class PolyCirculinearCurve2D<T extends CirculinearContinuousCurve2D>
box
- the clipping box
public BoundaryPolyCurve2D<? extends ContinuousOrientedCurve2D> transform(AffineTransform2D trans)
CurveArray2D
transform
in interface ContinuousCurve2D
transform
in interface Curve2D
transform
in interface Boundary2D
transform
in interface ContinuousBoundary2D
transform
in interface ContinuousOrientedCurve2D
transform
in interface OrientedCurve2D
transform
in interface Shape2D
transform
in class PolyOrientedCurve2D<T extends CirculinearContinuousCurve2D>
trans
- an affine transform
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |