Package com.luciad.shape
Interface ILcdEllipse
- All Superinterfaces:
Cloneable
,ILcdBounded
,ILcdCloneable
,ILcdShape
,Serializable
- All Known Subinterfaces:
ILcd2DEditableEllipse
- All Known Implementing Classes:
TLcdCGMEllipse
,TLcdDGNEllipse2D
,TLcdLonLatEllipse
,TLcdNVG15Arc
,TLcdNVG15Ellipse
,TLcdNVG20EllipticRing
,TLcdXYEllipse
An
ILcdEllipse
is an ILcdShape
that represents a
general ellipse in the 2D space.
The ellipse has a center, a semi-major axis with a rotation angle, and a
semi-minor axis.
The parameters of the ellipse can only be read, not modified.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Specifies the end point of the major radius axis (at the rotation angle).static final int
Specifies the end point of the major radius axis at the rotation angle (at the rotation angle + 180 degrees).static final int
Specifies the corner point of the minor radius axis (at the rotation angle + 90 degrees).static final int
Specifies the corner point of the minor radius axis (at the rotation angle - 90 degrees). -
Method Summary
Modifier and TypeMethodDescriptionvoid
corner2DEditablePointSFCT
(int aCorner, ILcd2DEditablePoint a2DEditablePointSFCT) Computes the position of the specified corner of thisILcdEllipse
.double
getA()
Returns the length of the semi-major axis.double
getB()
Returns the length of the semi-minor axis.Returns the center of thisILcdEllipse
.double
Returns the rotation angle of the major axis (in degrees).Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
Methods inherited from interface com.luciad.util.ILcdCloneable
clone
Methods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Field Details
-
MAJOR_RADIUS_CORNER
static final int MAJOR_RADIUS_CORNERSpecifies the end point of the major radius axis (at the rotation angle).- See Also:
-
MINOR_RADIUS_CORNER
static final int MINOR_RADIUS_CORNERSpecifies the corner point of the minor radius axis (at the rotation angle + 90 degrees).- See Also:
-
MAJOR_RADIUS_OPPOSITE_CORNER
static final int MAJOR_RADIUS_OPPOSITE_CORNERSpecifies the end point of the major radius axis at the rotation angle (at the rotation angle + 180 degrees).- See Also:
-
MINOR_RADIUS_OPPOSITE_CORNER
static final int MINOR_RADIUS_OPPOSITE_CORNERSpecifies the corner point of the minor radius axis (at the rotation angle - 90 degrees).- See Also:
-
-
Method Details
-
getCenter
ILcdPoint getCenter()Returns the center of thisILcdEllipse
.- Returns:
- the center of this
ILcdEllipse
.
-
getA
double getA()Returns the length of the semi-major axis.- Returns:
- the length of the semi-major axis.
-
getB
double getB()Returns the length of the semi-minor axis.- Returns:
- the length of the semi-minor axis.
-
getRotAngle
double getRotAngle()Returns the rotation angle of the major axis (in degrees). The angle is measured from 3 o'clock position, positive counter-clockwise.- Returns:
- the rotation angle of the major axis (in degrees). The angle is measured from 3 o'clock position, positive counter-clockwise.
-
corner2DEditablePointSFCT
Computes the position of the specified corner of thisILcdEllipse
.- Parameters:
aCorner
- the corner:ILcdEllipse.MAJOR_RADIUS_CORNER
,ILcdEllipse.MINOR_RADIUS_CORNER
,ILcdEllipse.MAJOR_RADIUS_OPPOSITE_CORNER
,ILcdEllipse.MINOR_RADIUS_OPPOSITE_CORNER
.a2DEditablePointSFCT
- anILcd2DEditablePoint
into which the result is written as a side-effect.
-