Package com.luciad.shape
Class TLcdShapeUtil
java.lang.Object
com.luciad.shape.TLcdShapeUtil
This class provides convenience methods for
ILcdShape
operations.- Since:
- 2021.0.04
-
Method Summary
Modifier and TypeMethodDescriptionstatic TLcdRoundedPolygon
round
(ILcdModelReference aModelReference, ILcdPolygon aPolygon, double aRoundnessFactor) Use this method to create a rounded version of aILcdPolygon
.static TLcdRoundedPolyline
round
(ILcdModelReference aModelReference, ILcdPolyline aPolyline, double aRoundnessFactor) Use this method to create a rounded version of aILcdPolyline
.
-
Method Details
-
round
public static TLcdRoundedPolyline round(ILcdModelReference aModelReference, ILcdPolyline aPolyline, double aRoundnessFactor) Use this method to create a rounded version of a
ILcdPolyline
.This method creates a
TLcdRoundedPolyline
using the points contained in the givenILcdPolyline
as control points.- Parameters:
aModelReference
- The coordinate reference of thepoints
in the givenILcdPolyline
. ThisILcdModelReference
must not benull
. The rounding expects a geodetic polyline for geodetic references, and a linear polyline for other references.aPolyline
- TheILcdPolyline
whose points will be used as control points when creating the resultingTLcdRoundedPolyline
. Modifying theILcdPolyline
will modifyTLcdRoundedPolyline
after callingTLcdRoundedPolyline.invalidateObject()
. ThisILcdPolyline
must not benull
.aRoundnessFactor
- A number in the range [0.0, 1.0] indicating the roundness of the resulting curve.
A value of 0.0 indicates no roundness, in which case the resulting curve will use straight lines (i.e. it will look identical to the givenaPolyline
).
A value of 1.0 indicates maximum roundness.- Returns:
- A
TLcdRoundedPolyline
that is a rounded version of the givenILcdPolyline
. - See Also:
-
round
public static TLcdRoundedPolygon round(ILcdModelReference aModelReference, ILcdPolygon aPolygon, double aRoundnessFactor) Use this method to create a rounded version of a
ILcdPolygon
.This method creates a
TLcdRoundedPolygon
using the points contained in the givenILcdPolygon
as control points.- Parameters:
aModelReference
- The coordinate reference of thepoints
in the givenILcdPolygon
. ThisILcdModelReference
must not benull
. The rounding expects a geodetic polyline for geodetic references, and a linear polyline for other references.aPolygon
- TheILcdPolygon
whose points will be used as control points when creating the resultingTLcdRoundedPolygon
. Modifying theILcdPolygon
will modify theTLcdRoundedPolyline
after callingTLcdRoundedPolygon.invalidateObject()
. ThisILcdPolygon
must not benull
.aRoundnessFactor
- A number in the range [0.0, 1.0] indicating the roundness of the resulting curve.
A value of 0.0 indicates no roundness, in which case the resulting curve will use straight lines (i.e. it will look identical to the givenaPolygon
).
A value of 1.0 indicates maximum roundness.- Returns:
- A
TLcdRoundedPolygon
that is a rounded version of the givenILcdPolygon
. - See Also:
-