Package com.luciad.shape.shape2D
Class TLcdXYCompositeRing
java.lang.Object
com.luciad.shape.ALcdShape
com.luciad.shape.TLcdCompositeCurve
com.luciad.shape.shape2D.TLcdXYCompositeRing
- All Implemented Interfaces:
ILcdBounded
,ILcdCompositeCurve
,ILcdCurve
,ILcdEditableCompositeCurve
,ILcdRing
,ILcdShape
,ILcdCache
,ILcdCloneable
,Serializable
,Cloneable
- Direct Known Subclasses:
TLcdDWGCompositeRing
This class provides an implementation of an
ILcdCompositeCurve
that is also an ILcdRing
,
in the cartesian space.
This class is thread-safe for concurrent read-only access of its contents. For read-write access,
external locking must be used. Such locking is typically done at the model level.- Since:
- 9.0
- See Also:
-
Field Summary
Fields inherited from interface com.luciad.shape.ILcdCurve
INTERPOLATION_CIRCLE_BY_3POINTS, INTERPOLATION_CIRCLE_BY_CENTERPOINT, INTERPOLATION_CIRCULARARC_BY_3POINTS, INTERPOLATION_CIRCULARARC_BY_BULGE, INTERPOLATION_CIRCULARARC_BY_CENTERPOINT, INTERPOLATION_ELLIPTICAL, INTERPOLATION_GEODESIC, INTERPOLATION_LINEAR, INTERPOLATION_MIXED, INTERPOLATION_RHUMB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object, by delegating toObject.clone()
.boolean
contains2D
(double aX, double aY) Checks whether thisILcdShape
contains the given point in the 2D space.double
Returns the angle of the curve's tangent at the end point, in degrees counterclockwise from the direction at 3 o'clock.double
getLength2D
(double aParam1, double aParam2) Returns the length between two points of the curve, defined by the given parameters.Methods inherited from class com.luciad.shape.TLcdCompositeCurve
clearCache, computePointSFCT, contains3D, equals, getBounds, getCachedObject, getCurves, getEndPoint, getFocusPoint, getInterpolation, getLineSegmentIntersectionCount, getStartPoint, getStartTangent2D, getTangent2D, hashCode, insertIntoCache, removeCachedObject
Methods inherited from class com.luciad.shape.ALcdShape
contains2D, contains3D, fromDomainObject
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
Methods inherited from interface com.luciad.shape.ILcdCurve
computePointSFCT, getLineSegmentIntersectionCount, getStartTangent2D, getTangent2D
Methods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains3D, contains3D, getFocusPoint
-
Constructor Details
-
TLcdXYCompositeRing
public TLcdXYCompositeRing()
-
-
Method Details
-
getEndTangent2D
public double getEndTangent2D()Description copied from interface:ILcdCurve
Returns the angle of the curve's tangent at the end point, in degrees counterclockwise from the direction at 3 o'clock.The tangent orientation is from the end point, away from the curve before it.
This is the same as
getTangent2D(1)
.- Specified by:
getEndTangent2D
in interfaceILcdCurve
- Overrides:
getEndTangent2D
in classTLcdCompositeCurve
- Returns:
- the curve's angle in the end point
-
getLength2D
public double getLength2D(double aParam1, double aParam2) Description copied from interface:ILcdCurve
Returns the length between two points of the curve, defined by the given parameters.- When
aParam1 == aParam2
, the length is 0. - When
aParam1 == 0 and aParam2 == 1
, the length is the whole length of the curve. - When
aParam1 > aParam2
, the length is (aParam1 to 1
) + (0 to aParam2
).
- Specified by:
getLength2D
in interfaceILcdCurve
- Overrides:
getLength2D
in classTLcdCompositeCurve
- Parameters:
aParam1
- a value of the closed interval [0,1]aParam2
- a value of the closed interval [0,1]- Returns:
- the length of the curve.
- When
-
contains2D
public boolean contains2D(double aX, double aY) Description copied from interface:ILcdShape
Checks whether thisILcdShape
contains the given point in the 2D space. Only the first two dimensions of theILcdShape
are considered.- Specified by:
contains2D
in interfaceILcdShape
- Overrides:
contains2D
in classTLcdCompositeCurve
- Parameters:
aX
- the x coordinate of the point.aY
- the y coordinate of the point.- Returns:
- the boolean result of the containment test.
-
clone
Description copied from class:ALcdShape
Creates and returns a copy of this object, by delegating toObject.clone()
. Extensions should delegate to this implementation withsuper.clone()
, in order to create an object instance of the right type, with all fields copied. They then should explicitly clone any non-primitive fields for which a deeper clone is required.- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classTLcdCompositeCurve
- See Also:
-