Package com.luciad.ais.model.airspace
Class TLcdSubPointlistAirspaceSegment
java.lang.Object
com.luciad.ais.shape.TLcdAISPoint
com.luciad.ais.model.airspace.TLcdSubPointlistAirspaceSegment
- All Implemented Interfaces:
ILcdAirspaceSegment,ILcdEditableAirspaceSegment,ILcdGeoPathLeg,ILcdBounded,ILcdPoint,ILcdShape,ILcd2DEditablePoint,ILcd2DEditableShape,ILcd3DEditablePoint,ILcd3DEditableShape,ILcdCloneable,Serializable,Cloneable
public class TLcdSubPointlistAirspaceSegment
extends TLcdAISPoint
implements ILcdEditableAirspaceSegment
An implementation of an airspace segment that uses a
ILcdGeoPathLeg.SUB_POINT_LIST
as geopath leg type together with a shared subpointlist as dataset. When the memory is important,
this implementation is preferred over the normal TLcdAirspaceSegment that copies the data.
A subpointlist can be set using the setSubPointlist() method;
this method expects a ILcdPointList instance as argument.
Note that this class extends TLcdAISPoint, and so it is
required to set a delegate point implementation using the
setLocation() method before using the airspace segment object.
- See Also:
-
Field Summary
Fields inherited from interface com.luciad.ais.shape.ILcdGeoPathLeg
ARC, ARC_BY_EDGE, CIRCLE_POINT, CIRCLE_RADIUS, GEODESIC_LINE, POINT, RHUMB_LINE, SUB_POINT_LIST -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newTLcdSubPointlistAirspaceSegmentobject. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates and returns a copy of this object.intReturns the number of parameters in the leg's data array.voidgetDataSFCT(double[] aDataSFCT) Copies the GeoPath leg's parameter list into theaDataSFCTarray.intReturns the segment number of theILcdAirspaceSegmentobject.Returns theILcdPointListthat is currently associated with this airspace segment.intgetType()Returns the type of this GeoPath leg.voidsetSegmentNumber(int aSegmentNumber) Specifies the segment number of theILcdEditableAirspaceSegmentobject.voidsetSubPointlist(ILcdPointList aPointlist) Sets the givenILcdPointListinstance as the subpointlist that is associated with this airspace segment.Methods inherited from class com.luciad.ais.shape.TLcdAISPoint
cloneAs2DEditablePoint, cloneAs3DEditablePoint, contains2D, contains2D, contains3D, contains3D, equals, getBounds, getCosX, getCosY, getFocusPoint, getSinX, getSinY, getTanX, getTanY, getX, getY, getZ, hashCode, move2D, move2D, move3D, move3D, setLocation, translate2D, translate3DMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods inherited from interface com.luciad.shape.ILcdPoint
cloneAs2DEditablePoint, cloneAs3DEditablePoint, equals, getCosX, getCosY, getSinX, getSinY, getTanX, getTanY, getX, getY, getZMethods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Constructor Details
-
TLcdSubPointlistAirspaceSegment
public TLcdSubPointlistAirspaceSegment()Creates a newTLcdSubPointlistAirspaceSegmentobject.The geopath leg type is set to
ILcdGeoPathLeg.SUB_POINT_LIST.
-
-
Method Details
-
setSubPointlist
Sets the givenILcdPointListinstance as the subpointlist that is associated with this airspace segment.- Parameters:
aPointlist- The subpointlist that must be associated with this airspace segment.- Throws:
IllegalArgumentException- if the supplied argument is null.
-
getSubPointlist
Returns theILcdPointListthat is currently associated with this airspace segment.- Returns:
- the
ILcdPointListthat is currently associated with this airspace segment.
-
setSegmentNumber
public void setSegmentNumber(int aSegmentNumber) Description copied from interface:ILcdEditableAirspaceSegmentSpecifies the segment number of theILcdEditableAirspaceSegmentobject. The segment number is application-defined and does not necessarily have to correspond with the index of the segment within containing airspace.- Specified by:
setSegmentNumberin interfaceILcdEditableAirspaceSegment- Parameters:
aSegmentNumber- a segment number for theILcdEditableAirspaceSegmentobject
-
getSegmentNumber
public int getSegmentNumber()Description copied from interface:ILcdAirspaceSegmentReturns the segment number of theILcdAirspaceSegmentobject.- Specified by:
getSegmentNumberin interfaceILcdAirspaceSegment- Returns:
- the segment number of the
ILcdAirspaceSegmentobject
-
getType
public int getType()Description copied from interface:ILcdGeoPathLegReturns the type of this GeoPath leg.- Specified by:
getTypein interfaceILcdGeoPathLeg- Returns:
- one of the constants defined above
-
getDataLength
public int getDataLength()Description copied from interface:ILcdGeoPathLegReturns the number of parameters in the leg's data array. UsegetDataSFCT()to obtain the contents of the parameter list.- Specified by:
getDataLengthin interfaceILcdGeoPathLeg- Returns:
- the length of the leg's parameter list
-
getDataSFCT
public void getDataSFCT(double[] aDataSFCT) Description copied from interface:ILcdGeoPathLegCopies the GeoPath leg's parameter list into theaDataSFCTarray. The array must be sufficiently large! UsegetDataLength()to determine the required size of the array.- Specified by:
getDataSFCTin interfaceILcdGeoPathLeg- Parameters:
aDataSFCT- will receive the parameter list of this GeoPath leg.
-
clone
Creates and returns a copy of this object. The subpointlist is copied without being cloned.- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classTLcdAISPoint- See Also:
-