Package com.luciad.shape.constraints
Class TLcdCurveConnectorUtil
java.lang.Object
com.luciad.shape.constraints.TLcdCurveConnectorUtil
Utility class for
ILcdCurveConnector
related tasks.- Since:
- 9.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
connectCompositeCurve
(ILcdCompositeCurve aCurve, int aStartCurve, ILcdCurveConnectorProvider aCurveConnectorProvider, ILcdModelReference aModelReference) Fully connects the given composite curve, starting from the given index.static void
connectCompositeRing
(ILcdCompositeCurve aRing, int aStartCurve, ILcdCurveConnectorProvider aCurveConnectorProvider, ILcdModelReference aModelReference) Fully connects the given composite ring, starting from the given index.
-
Method Details
-
connectCompositeCurve
public static void connectCompositeCurve(ILcdCompositeCurve aCurve, int aStartCurve, ILcdCurveConnectorProvider aCurveConnectorProvider, ILcdModelReference aModelReference) Fully connects the given composite curve, starting from the given index. More specifically, all curves to the left and right of the curve with the given index are connected to each other, starting from the given curve and going towards both ends of the curve. This method is typically used when the curve at the given index has changed.- Parameters:
aCurve
- the curve to ensure connectivity foraStartCurve
- the index of the curve to connect the other curves to.aCurveConnectorProvider
- the connector provider for the individual sub curvesaModelReference
- the model reference of the curve
-
connectCompositeRing
public static void connectCompositeRing(ILcdCompositeCurve aRing, int aStartCurve, ILcdCurveConnectorProvider aCurveConnectorProvider, ILcdModelReference aModelReference) Fully connects the given composite ring, starting from the given index. More specifically, all curves to the left and right of the curve with the given index are connected to each other, starting from the given curve until the ring has been closed. This method is typically used when the curve at the given index has changed.- Parameters:
aRing
- the ring to ensure connectivity foraStartCurve
- the index of the curve to start connecting the other curves toaCurveConnectorProvider
- the connector provider for the individual sub curvesaModelReference
- the model reference of the curve
-