math.geom2d.domain
Interface Boundary2D

Package class diagram package Boundary2D
All Superinterfaces:
Cloneable, Curve2D, OrientedCurve2D, Serializable, Shape2D
All Known Subinterfaces:
CircleLine2D, CirculinearBoundary2D, CirculinearContour2D, CirculinearRing2D, Conic2D, ContinuousBoundary2D, SmoothBoundary2D
All Known Implementing Classes:
BoundaryPolyCirculinearCurve2D, BoundaryPolyCurve2D, BoundarySet2D, Circle2D, CirculinearBoundarySet2D, ClosedPolyline2D, Ellipse2D, GenericCirculinearRing2D, Hyperbola2D, HyperbolaBranch2D, LinearRing2D, Parabola2D, Ring2D, StraightLine2D

public interface Boundary2D
extends OrientedCurve2D

A Boundary2D is the curve which defines the contour of a domain in the plane. It is compound of one or several non-intersecting and oriented curves.

Author:
dlegland

Field Summary
 
Fields inherited from interface math.geom2d.Shape2D
ACCURACY
 
Method Summary
 void fill(Graphics2D g2)
           
 Collection<? extends ContinuousBoundary2D> getBoundaryCurves()
          Returns the different continuous curves composing the boundary
 Domain2D getDomain()
          Returns the domain delimited by this boundary.
 Curve2D getReverseCurve()
          Forces the subclasses to return an instance of Boundary2D.
 boolean isInside(Point2D pt)
          Returns true if the point is 'inside' the domain bounded by the curve.
 Curve2D transform(AffineTransform2D trans)
          Forces the subclasses to return an instance of Boundary2D.
 
Methods inherited from interface math.geom2d.domain.OrientedCurve2D
clip, getSignedDistance, getSignedDistance, getWindingAngle
 
Methods inherited from interface math.geom2d.curve.Curve2D
clone, draw, getAsAWTShape, getContinuousCurves, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getSubCurve, getT0, getT1, isSingular, project
 
Methods inherited from interface math.geom2d.Shape2D
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty
 

Method Detail

isInside

boolean isInside(Point2D pt)
Returns true if the point is 'inside' the domain bounded by the curve.

Specified by:
isInside in interface OrientedCurve2D
Parameters:
pt - a point in the plane
Returns:
true if the point is on the left side of the curve.

getBoundaryCurves

Collection<? extends ContinuousBoundary2D> getBoundaryCurves()
Returns the different continuous curves composing the boundary


getDomain

Domain2D getDomain()
Returns the domain delimited by this boundary.

Returns:
the domain delimited by this boundary

getReverseCurve

Curve2D getReverseCurve()
Forces the subclasses to return an instance of Boundary2D.

Specified by:
getReverseCurve in interface Curve2D
Specified by:
getReverseCurve in interface OrientedCurve2D

transform

Curve2D transform(AffineTransform2D trans)
Forces the subclasses to return an instance of Boundary2D.

Specified by:
transform in interface Curve2D
Specified by:
transform in interface OrientedCurve2D
Specified by:
transform in interface Shape2D
Parameters:
trans - an affine transform
Returns:
the transformed shape

fill

void fill(Graphics2D g2)


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.