Package com.luciad.shape.constraints
Interface ILcdCurveConnector
- All Known Implementing Classes:
TLcd2DPointListConnector
,TLcdCircularArcBy3PointsConnector
,TLcdCircularArcByBulgeConnector
,TLcdCircularArcByCenterPointConnector
,TLcdCompositeCurveConnector
public interface ILcdCurveConnector
Ensures connectivity of curves, for example in a composite curve.
Implementations should ensure at least 0th order continuity, which means that for two consecutive curves,
the end point of the first will coincide with the start point of the second.
The slopes of the curves may differ at the connections.
- Since:
- 9.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connect
(ILcdCurve aPreviousCurve, ILcdCurve aCurveSFCT, ILcdCurve aNextCurve, ILcdModelReference aModelReference) (Re)connects a curve to the given previous and next curve.
-
Method Details
-
connect
void connect(ILcdCurve aPreviousCurve, ILcdCurve aCurveSFCT, ILcdCurve aNextCurve, ILcdModelReference aModelReference) (Re)connects a curve to the given previous and next curve. In other words,aCurveSFCT
will be modified so that its start point will coincide with the end point ofaPreviousCurve
, and its end point will coincide with the start point ofaNextCurve
. Either ofaPreviousCurve
oraNextCurve
can benull
, but not both.- Parameters:
aPreviousCurve
- the previous curve. Will not be changed. Can benull
.aCurveSFCT
- the curve whose start and end point should coincide withaPreviousCurve
's end point andaNextCurve
's start point, respectivelyaNextCurve
- the next curve. Will not be changed. Can benull
.aModelReference
- the model reference of the given curves- Throws:
IllegalArgumentException
- if the connector cannot connect the given curves
-