Package com.luciad.shape.constraints
Class TLcdCompositeCurveConnector
java.lang.Object
com.luciad.shape.constraints.TLcdCompositeCurveConnector
- All Implemented Interfaces:
ILcdCurveConnector
Curve connector for
ILcdCompositeCurve
.
The current implementation connects the first or last sub curve of the composite curve, making use of a
ILcdCurveConnectorProvider
.
Note that this behavior may change in the future.- Since:
- 9.0
-
Constructor Summary
ConstructorDescriptionTLcdCompositeCurveConnector
(ILcdCurveConnectorProvider aCurveConnectorProvider) Creates a new curve connector for composite curves, using the given connector provider to connect the subcurves. -
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.Returns the curve connector provider that is used to connect the sub curves of the composite curves.
-
Constructor Details
-
TLcdCompositeCurveConnector
Creates a new curve connector for composite curves, using the given connector provider to connect the subcurves.- Parameters:
aCurveConnectorProvider
- the connector provider to use
-
-
Method Details
-
getCurveConnectorProvider
Returns the curve connector provider that is used to connect the sub curves of the composite curves.- Returns:
- the curve connector provider that is used to connect the sub curves of the composite curves
-
connect
public 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.This implementation connects the first and last sub curve of the composite curve to
aPreviousCurve
andaNextCurve
, respectively. This behavior may change in the future.- Specified by:
connect
in interfaceILcdCurveConnector
- Parameters:
aPreviousCurve
- the previous curve. Will not be changed. Can benull
.aCurveSFCT
- the composite curve whose start point and end point should be connectedaNextCurve
- the next curve. Will not be changed. Can benull
.aModelReference
- the model reference of the given curves- See Also:
-