public interface ILcdEditableAirspace extends ILcdAirspace
ILcdAirspace
.
Attributes and relationships in AIS domain objects can be required or optional.
When unspecified, an attribute or relationship is optional. Note that most
optional attributes are modeled using features.
In future releases of AIS, optional attributes or relationship may be added to
this interface. When this would happen, existing implementations may just
provide an empty implementation modifying or setting these new attributes or
relationships. This will require a minimal effort to update
existing code to a new version of AIS.CLOCKWISE, COUNTERCLOCKWISE, INVALID_ORIENTATION
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
Modifier and Type | Method and Description |
---|---|
void |
addSegment(ILcdAirspaceSegment aSegment)
Adds a
ILcdAirspaceSegment object to the end of the
ILcdEditableAirspace . |
void |
insertSegmentAt(ILcdAirspaceSegment aSegment,
int anIndex)
Adds a
ILcdAirspaceSegment object to the ILcdEditableAirspace
on the specified index. |
void |
removeSegment(ILcdAirspaceSegment aSegment)
Removes a
ILcdAirspaceSegment object from the ILcdEditableAirspace . |
void |
removeSegmentAt(int anIndex)
Removes the
ILcdAirspaceSegment object on the specified index from the
from ILcdEditableAirspace . |
getSegment, getSegmentBySegmentNumber, getSegmentCount
getOrientation
getPoint, getPointCount, getPointSFCT, getX, getY, getZ
getLeg, getLegCount
getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
computePointSFCT, getEndPoint, getEndTangent2D, getInterpolation, getLength2D, getLineSegmentIntersectionCount, getStartPoint, getStartTangent2D, getTangent2D
contains2D, contains2D, contains3D, contains3D, getFocusPoint
getBounds
clone
void addSegment(ILcdAirspaceSegment aSegment)
ILcdAirspaceSegment
object to the end of the
ILcdEditableAirspace
. Note that there is no
explicit check for null
segments,
which leave the airspace in an invalid state.aSegment
- the ILcdAirspaceSegment
object to be addedvoid removeSegment(ILcdAirspaceSegment aSegment)
ILcdAirspaceSegment
object from the ILcdEditableAirspace
.
If this airspace does not contain the segment or if null
is supplied,
it is unchanged. If the segment is found and removed, subsequent segments are shifted to the left.aSegment
- the ILcdAirspaceSegment
object to be removedvoid insertSegmentAt(ILcdAirspaceSegment aSegment, int anIndex)
ILcdAirspaceSegment
object to the ILcdEditableAirspace
on the specified index. Subsequent segments are shifted to the right after the addition.
Note that there is no explicit check for null
segments,
which leave the airspace in an invalid state.aSegment
- the ILcdAirspaceSegment
object to be added to the
ILcdEditableAirspace
.anIndex
- the index in the ILcdEditableAirspace
where the
ILcdAirspaceSegment
object must be added.ArrayIndexOutOfBoundsException
- if the index is out of range (index
< 0 || index >= getSegmentCount()).void removeSegmentAt(int anIndex)
ILcdAirspaceSegment
object on the specified index from the
from ILcdEditableAirspace
. Subsequent segments are shifted to the left
after the removal.anIndex
- the index in the ILcdEditableAirspace
where the
ILcdAirspaceSegment
object must be removed.ArrayIndexOutOfBoundsException
- if the index is out of range (index
< 0 || index >= getSegmentCount()).