Package com.luciad.shape
Interface ILcdArc
- All Superinterfaces:
Cloneable,ILcdBounded,ILcdCloneable,ILcdShape,Serializable
- All Known Subinterfaces:
ILcd2DEditableArc
- All Known Implementing Classes:
TLcdCGMArc,TLcdDGNArc2D,TLcdDWGArc,TLcdDWGEllipse,TLcdLonLatArc,TLcdNVG15Arc,TLcdNVG20Arc,TLcdXYArc
An
ILcdArc is an ILcdShape that represents a general
elliptical arc in the 2D space.
All of its points lie at on an ellipse with a center, a semi-major axis with
a rotation angle, and a semi-minor axis.
The arc starts at a start angle and extends over an arc angle.
The parameters of the arc can only be read, not modified.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSpecifies the corner point at the end angle.static final intSpecifies the corner point at the start angle.static final intSpecifies the end point of the major radius axis (at the rotation angle).static final intSpecifies the end point of the major radius axis at the rotation angle (at the rotation angle + 180 degrees).static final intSpecifies the corner point of the minor radius axis (at the rotation angle + 90 degrees).static final intSpecifies the corner point of the minor radius axis (at the rotation angle - 90 degrees). -
Method Summary
Modifier and TypeMethodDescriptionvoidcorner2DEditablePointSFCT(int aCorner, ILcd2DEditablePoint a2DEditablePointSFCT) Computes the position of the specified corner of thisILcdArc.doublegetA()Returns the length of the semi-major axis.doubleReturns the angle over which the arc extends (in degrees).doublegetB()Returns the length of the semi-minor axis.Returns the center of thisILcdArc.doubleReturns the rotation angle of the major axis (in degrees).doubleReturns the start angle of the arc (in degrees).Methods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods inherited from interface com.luciad.util.ILcdCloneable
cloneMethods 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:
-
ARC_START_CORNER
static final int ARC_START_CORNERSpecifies the corner point at the start angle.- See Also:
-
ARC_END_CORNER
static final int ARC_END_CORNERSpecifies the corner point at the end angle.- See Also:
-
-
Method Details
-
getCenter
ILcdPoint getCenter()Returns the center of thisILcdArc.- Returns:
- the center of this
ILcdArc.
-
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.
-
getStartAngle
double getStartAngle()Returns the start angle of the arc (in degrees). The angle is measured from 3 o'clock position, positive counter-clockwise.- Returns:
- the start angle of the arc (in degrees). The angle is measured from 3 o'clock position, positive counter-clockwise.
-
getArcAngle
double getArcAngle()Returns the angle over which the arc extends (in degrees). The angle is positive counter-clockwise.- Returns:
- the angle over which the arc extends (in degrees). The angle is positive counter-clockwise.
-
corner2DEditablePointSFCT
Computes the position of the specified corner of thisILcdArc.- Parameters:
aCorner- the corner:ILcdArc.MAJOR_RADIUS_CORNER,ILcdArc.MINOR_RADIUS_CORNER,ILcdArc.MAJOR_RADIUS_OPPOSITE_CORNER,ILcdArc.MINOR_RADIUS_OPPOSITE_CORNER,ILcdArc.ARC_START_CORNER, orILcdArc.ARC_END_CORNER.a2DEditablePointSFCT- anILcd2DEditablePointinto which the result is written as a side-effect.
-