|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmath.geom2d.curve.CurveArray2D<T>
math.geom2d.domain.ContourArray2D<T>
public class ContourArray2D<T extends Contour2D>
A ContourArray2D is a set of contours. Each contour in the set defines its own domain.
| Field Summary |
|---|
| Fields inherited from interface math.geom2d.Shape2D |
|---|
ACCURACY |
| Constructor Summary | |
|---|---|
ContourArray2D()
|
|
ContourArray2D(java.util.Collection<? extends T> curves)
|
|
ContourArray2D(int size)
|
|
ContourArray2D(T... curves)
|
|
ContourArray2D(T curve)
|
|
| Method Summary | ||
|---|---|---|
CurveSet2D<? extends ContinuousOrientedCurve2D> |
clip(Box2D box)
Clip the curve by a box. |
|
java.util.Collection<? extends T> |
continuousCurves()
Returns the collection of continuous curves which constitute this curve. |
|
static
|
create(java.util.Collection<T> curves)
Static factory for creating a new ContourArray2D from a collection of contours. |
|
static
|
create(T... curves)
Static factory for creating a new ContourArray2D from an array of contours. |
|
Domain2D |
domain()
Returns the domain delimited by this boundary. |
|
boolean |
equals(java.lang.Object obj)
Returns true if obj is a CurveArray2D with the same number of curves, and such that each curve belongs to both objects. |
|
void |
fill(java.awt.Graphics2D g2)
Fills the interior of the boundary, using the Graphics current Paint. |
|
boolean |
isInside(Point2D point)
Returns true if the point is 'inside' the domain bounded by the curve. |
|
ContourArray2D<? extends Contour2D> |
reverse()
Returns the curve with same trace on the plane with parameterization in reverse order. |
|
double |
signedDistance(double x,
double y)
The same as distanceSigned(Point2D), but by passing 2 double as arguments. |
|
double |
signedDistance(Point2D p)
Returns the signed distance of the curve to the given point. |
|
CurveSet2D<? extends ContinuousOrientedCurve2D> |
subCurve(double t0,
double t1)
Return an instance of CurveArray2D. |
|
ContourArray2D<? extends Contour2D> |
transform(AffineTransform2D trans)
Transforms each curve, and build a new CurveArray2D with the set of transformed curves. |
|
double |
windingAngle(Point2D point)
Return the angle portion that the curve turn around the given point. |
|
| Methods inherited from class math.geom2d.curve.CurveArray2D |
|---|
add, add, almostEquals, asAwtShape, boundingBox, childCurve, clear, clone, contains, contains, contains, curveIndex, curves, distance, distance, draw, firstCurve, firstPoint, get, getGeneralPath, getT0, getT1, globalPosition, indexOf, intersections, isBounded, isEmpty, isSingular, iterator, lastCurve, lastPoint, localPosition, point, position, project, remove, remove, singularPoints, size, t0, t1, vertices |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface math.geom2d.curve.Curve2D |
|---|
asAwtShape, clone, draw, firstPoint, getT0, getT1, intersections, isSingular, lastPoint, point, position, project, singularPoints, t0, t1, vertices |
| Methods inherited from interface math.geom2d.Shape2D |
|---|
boundingBox, contains, contains, distance, distance, isBounded, isEmpty |
| Methods inherited from interface math.geom2d.GeometricObject2D |
|---|
almostEquals |
| Constructor Detail |
|---|
public ContourArray2D()
public ContourArray2D(int size)
public ContourArray2D(T... curves)
public ContourArray2D(java.util.Collection<? extends T> curves)
public ContourArray2D(T curve)
| Method Detail |
|---|
public static <T extends Contour2D> ContourArray2D<T> create(java.util.Collection<T> curves)
public static <T extends Contour2D> ContourArray2D<T> create(T... curves)
public java.util.Collection<? extends T> continuousCurves()
Curve2D
continuousCurves in interface Curve2DcontinuousCurves in interface Boundary2DcontinuousCurves in class CurveArray2D<T extends Contour2D>public Domain2D domain()
Boundary2D
domain in interface Boundary2Dpublic void fill(java.awt.Graphics2D g2)
Boundary2D
fill in interface Boundary2Dg2 - the Graphics to fill onpublic double windingAngle(Point2D point)
OrientedCurve2D
windingAngle in interface OrientedCurve2Dpoint - a point of the plane
public double signedDistance(Point2D p)
OrientedCurve2D
signedDistance in interface OrientedCurve2Dp - a point of the plane
public double signedDistance(double x,
double y)
OrientedCurve2D
signedDistance in interface OrientedCurve2Dx - x-coord of a pointy - y-coord of a point
public boolean isInside(Point2D point)
Boundary2D
isInside in interface Boundary2DisInside in interface OrientedCurve2Dpoint - a point in the plane
public ContourArray2D<? extends Contour2D> reverse()
Curve2D
reverse in interface Curve2Dreverse in interface Boundary2Dreverse in interface OrientedCurve2Dreverse in class CurveArray2D<T extends Contour2D>
public CurveSet2D<? extends ContinuousOrientedCurve2D> subCurve(double t0,
double t1)
CurveArray2D
subCurve in interface Curve2DsubCurve in class CurveArray2D<T extends Contour2D>t0 - position of the start of the sub-curvet1 - position of the end of the sub-curve
public CurveSet2D<? extends ContinuousOrientedCurve2D> clip(Box2D box)
clip in interface Curve2Dclip in interface OrientedCurve2Dclip in interface Shape2Dclip in class CurveArray2D<T extends Contour2D>box - the clipping box
public ContourArray2D<? extends Contour2D> transform(AffineTransform2D trans)
CurveArray2D
transform in interface Curve2Dtransform in interface CurveSet2D<T extends Contour2D>transform in interface Boundary2Dtransform in interface OrientedCurve2Dtransform in interface Shape2Dtransform in class CurveArray2D<T extends Contour2D>trans - an affine transform
public boolean equals(java.lang.Object obj)
CurveArray2D
equals in class CurveArray2D<T extends Contour2D>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||