public class TLcdParachuteJumpArea extends java.lang.Object implements ILcdEditableParachuteJumpArea
ILcdParachuteJumpArea
.
This implementation performs a discretization of the parachute jump area in geodetic coordinates.
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
SEGMENTS
The Segments property of the airspace.
|
CLOCKWISE, COUNTERCLOCKWISE, INVALID_ORIENTATION
Constructor and Description |
---|
TLcdParachuteJumpArea()
Deprecated.
|
TLcdParachuteJumpArea(TLcdDataType aDataType)
Creates a new instance for the given type.
|
TLcdParachuteJumpArea(TLcdParachuteJumpArea aParachuteJumpArea)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addSegment(ILcdParachuteJumpAreaSegment aSegment)
Adds a segment to this parachute jump area.
|
java.lang.Object |
clone()
Returns a clone of this
TLcdParachuteJumpArea object. |
boolean |
contains2D(double aLon,
double aLat)
Checks whether this
ILcdShape contains the given point in
the 2D space. |
boolean |
contains2D(ILcdPoint aPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 2D space. |
boolean |
contains3D(double aLon,
double aLat,
double aHeight)
Checks whether this
ILcdShape contains the given point in
the 3D space. |
boolean |
contains3D(ILcdPoint aPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 3D space. |
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
TLcdDataType |
getDataType()
Returns the type of this data object.
|
ILcdPoint |
getFocusPoint()
Returns the focus point of this
ILcdShape . |
ILcdGeoPathLeg |
getLeg(int i)
Returns the
ILcdGeoPathLeg at the given index. |
int |
getLegCount()
Returns the number of legs in this
ILcdGeoPath . |
int |
getOrientation()
Returns the orientation of this
ILcdPolygon :
ILcdPolygon.CLOCKWISE or ILcdPolygon.COUNTERCLOCKWISE . |
ILcdPoint |
getPoint(int i)
Returns the
ILcdPoint at a given index. |
int |
getPointCount()
Returns the number of
ILcdPoint objects in the list. |
ILcdParachuteJumpAreaSegment |
getSegment(int aSegmentNumber)
Returns the
ILcdParachuteJumpAreaSegment with the given segment number. |
java.lang.Object |
getValue(java.lang.String aPropertyName)
Convenience method that returns the value of the property with the given name.
|
java.lang.Object |
getValue(TLcdDataProperty aProperty)
Returns the value of the given property.
|
boolean |
hasValue(java.lang.String aPropertyName)
Indicates whether this data object has a value for the given property.
|
boolean |
hasValue(TLcdDataProperty aProperty)
Indicates whether this data object has a value for the given property.
|
void |
invalidate()
Discards the geometry cached with this parachute jump area and recalculates it.
|
void |
removeSegment(ILcdParachuteJumpAreaSegment aSegment) |
void |
setValue(java.lang.String aPropertyName,
java.lang.Object aValue)
Convenience method that sets the value of the property with the given name.
|
void |
setValue(TLcdDataProperty aProperty,
java.lang.Object aValue)
Sets the value of the given property for this data object.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPointSFCT, getX, getY, getZ
public static final TLcdDataProperty SEGMENTS
ILcdParachuteJumpAreaSegment
.@Deprecated public TLcdParachuteJumpArea()
TLcdParachuteJumpArea
object.public TLcdParachuteJumpArea(TLcdParachuteJumpArea aParachuteJumpArea)
aParachuteJumpArea
- the parachute jump area to be copied into a new objectpublic TLcdParachuteJumpArea(TLcdDataType aDataType)
aDataType
- the data type of the returned instancejava.lang.IllegalArgumentException
- if TLcdAISDataTypes.ParachuteJumpArea
is not
assignable from the given data typeTLcdAISDataTypes.ParachuteJumpArea
public TLcdDataType getDataType()
ILcdDataObject
null
.getDataType
in interface ILcdDataObject
public java.lang.Object getValue(TLcdDataProperty aProperty)
ILcdDataObject
Returns the value of the given property.
If the property is a collection, the returned value will never be null. If the property has not been set, an empty collection of the appropriate type will be returned (Set, List or Map).
The property must not be null, and must be declared in the data object's type
or in one of its super types.
Otherwise an IllegalArgumentException
is thrown.
getValue
in interface ILcdDataObject
aProperty
- the property for which the value is to be returnedpublic java.lang.Object getValue(java.lang.String aPropertyName)
ILcdDataObject
Convenience method that returns the value of the property with the given name.
If more than one property exists with the given name, the most specific property should be used (this is the property defined by the most specialized type in this object's data type hierarchy). SeeILcdDataObject.getValue(TLcdDataProperty)
for more information.getValue
in interface ILcdDataObject
aPropertyName
- the name of the property of which the value is to be returnedTLcdDataType.getProperty(String)
public void setValue(TLcdDataProperty aProperty, java.lang.Object aValue)
ILcdDataObject
Sets the value of the given property for this data object. The implementation is allowed to throw an exception if the given value can't be set.
The given property must be declared in thedata object's type
or in one of its super types. In
other words, getDataType().getProperties().contains( aProperty ) should always be true.
Otherwise, the implementation should throw an IllegalArgumentException
.setValue
in interface ILcdDataObject
aProperty
- the property for which the value is to be setaValue
- the value to setTLcdDataType.getProperty(String)
public void setValue(java.lang.String aPropertyName, java.lang.Object aValue)
ILcdDataObject
Convenience method that sets the value of the property with the given name.
If more than one property exists with the given name, the most specific property should be used (this is the property defined by the most specialized type in this object's data type hierarchy). SeeILcdDataObject.setValue(TLcdDataProperty, Object)
for more information.setValue
in interface ILcdDataObject
aPropertyName
- the name of the property of which the value is to be setaValue
- the value to setpublic boolean hasValue(TLcdDataProperty aProperty)
ILcdDataObject
aProperty
is from the right data type
, and this instance has a value for it: returns true
aProperty
is from the right data type
, and this instance has no value for it: returns false
aProperty
is not from the right data type
: not allowed, you will get IllegalArgumentExceptionaProperty
is null
: not allowed, you will get NullPointerExceptionhasValue
in interface ILcdDataObject
aProperty
- the property for which to return whether a value is present or not.true
if this data object has a value for the given property, false
otherwise.public boolean hasValue(java.lang.String aPropertyName)
ILcdDataObject
ILcdDataObject.hasValue(TLcdDataProperty)
for more information.hasValue
in interface ILcdDataObject
aPropertyName
- the name of the property for which to return whether a value is present
or not.true
if this data object has a value for the property with the given name,
false
otherwise.public ILcdParachuteJumpAreaSegment getSegment(int aSegmentNumber)
ILcdParachuteJumpArea
ILcdParachuteJumpAreaSegment
with the given segment number.getSegment
in interface ILcdParachuteJumpArea
public void addSegment(ILcdParachuteJumpAreaSegment aSegment)
ILcdEditableParachuteJumpArea
addSegment
in interface ILcdEditableParachuteJumpArea
aSegment
- the segment to be added.public void removeSegment(ILcdParachuteJumpAreaSegment aSegment)
public boolean contains2D(ILcdPoint aPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 2D space.
Only the first two dimensions of the ILcdShape
and the ILcdPoint
are considered.contains2D
in interface ILcdShape
aPoint
- the ILcdPoint
to test.ILcdShape.contains2D(double, double)
public boolean contains2D(double aLon, double aLat)
ILcdShape
ILcdShape
contains the given point in
the 2D space. Only the first two dimensions of the ILcdShape
are considered.contains2D
in interface ILcdShape
aLon
- the x coordinate of the point.aLat
- the y coordinate of the point.public boolean contains3D(ILcdPoint aPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 3D space.contains3D
in interface ILcdShape
aPoint
- the ILcdPoint
to test.ILcdShape.contains3D(double, double, double)
public boolean contains3D(double aLon, double aLat, double aHeight)
ILcdShape
ILcdShape
contains the given point in
the 3D space.contains3D
in interface ILcdShape
aLon
- the x coordinate of the point.aLat
- the y coordinate of the point.aHeight
- the z coordinate of the point.public java.lang.Object clone()
TLcdParachuteJumpArea
object.
Note: the features of the new object are a shallow clone of the features of
this object.clone
in interface ILcdCloneable
clone
in class java.lang.Object
TLcdParachuteJumpArea
object.Object.clone()
public ILcdPoint getFocusPoint()
ILcdShape
ILcdShape
.getFocusPoint
in interface ILcdShape
ILcdShape
.public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.
If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points)
the return value is unspecified.
It is highly recommended to return an undefined
bounds.
You can create undefined bounds using the default constructors
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public ILcdGeoPathLeg getLeg(int i)
ILcdGeoPath
ILcdGeoPathLeg
at the given index.getLeg
in interface ILcdGeoPath
i
- an index.ILcdGeoPathLeg
at the given index.public int getLegCount()
ILcdGeoPath
ILcdGeoPath
.getLegCount
in interface ILcdGeoPath
ILcdGeoPath
.public int getOrientation()
ILcdPolygon
ILcdPolygon
:
ILcdPolygon.CLOCKWISE
or ILcdPolygon.COUNTERCLOCKWISE
.getOrientation
in interface ILcdPolygon
ILcdPolygon
:
ILcdPolygon.CLOCKWISE
or ILcdPolygon.COUNTERCLOCKWISE
.
This method should not return INVALID_ORIENTATION
, which is only to be used for resetting the orientation
so that it can be recalculated.public int getPointCount()
ILcdPointList
ILcdPoint
objects in the list.getPointCount
in interface ILcdPointList
ILcdPoint
objects in the list.public ILcdPoint getPoint(int i) throws java.lang.IndexOutOfBoundsException
ILcdPointList
ILcdPoint
at a given index.getPoint
in interface ILcdPointList
i
- a valid index in the list of ILcdPoint
objects.ILcdPoint
at the given index.java.lang.IndexOutOfBoundsException
- if the given index is out of bounds.public void invalidate()