Class TLcdHelipad

java.lang.Object
com.luciad.ais.model.aerodrome.TLcdHelipad
All Implemented Interfaces:
ILcdEditableHelipad, ILcdHelipad, ILcdEditableGeoPath, ILcdGeoPath, ILcdDataObject, ILcdBounded, ILcdCurve, ILcdPointList, ILcdPolygon, ILcdRing, ILcdShape, ILcdCloneable, Serializable, Cloneable
Direct Known Subclasses:
TLcdFeaturedHelipad

public class TLcdHelipad extends Object implements ILcdEditableHelipad
An implementation of ILcdHelipad.

This implementation performs a discretization of the helipad in geodetic coordinates.

See Also:
  • Field Details

    • HELIPAD_TYPE_PROPERTY

      public static final TLcdDataProperty HELIPAD_TYPE_PROPERTY
      The HelipadType property of the helipad type. Values of this property are of type TLcdHelipadType.
    • WIDTH_PROPERTY

      public static final TLcdDataProperty WIDTH_PROPERTY
      The Width property of the helipad type. Values of this property are of type Double.
    • LENGTH_PROPERTY

      public static final TLcdDataProperty LENGTH_PROPERTY
      The Length property of the helipad type. Values of this property are of type Double.
    • GEOMETRY_PROPERTY

      public static final TLcdDataProperty GEOMETRY_PROPERTY
      The geometry property of the helipad type. Values of this property are of type ILcdGeoPath.
  • Constructor Details

    • TLcdHelipad

      @Deprecated public TLcdHelipad()
      Deprecated.
      Constructs a new TLcdHelipad object.
    • TLcdHelipad

      public TLcdHelipad(TLcdHelipad aHelipad)
      Construct a new TLcdHelipad object based on an existing one.
      Parameters:
      aHelipad - The helipad to copy.
    • TLcdHelipad

      public TLcdHelipad(TLcdDataType aDataType)
      Creates a new instance for the given type.
      Parameters:
      aDataType - the data type of the returned instance
      Throws:
      IllegalArgumentException - if TLcdAISDataTypes.Helipad is not assignable from the given data type
      Since:
      10.1
      See Also:
  • Method Details

    • getHelipadType

      public TLcdHelipadType getHelipadType()
      Description copied from interface: ILcdHelipad
      Returns the type of this helipad.
      Specified by:
      getHelipadType in interface ILcdHelipad
      Returns:
      the type
    • getWidth

      public double getWidth()
      Description copied from interface: ILcdHelipad
      Returns the width of this helipad.
      Specified by:
      getWidth in interface ILcdHelipad
      Returns:
      the width
    • getLength

      public double getLength()
      Description copied from interface: ILcdHelipad
      Returns the length of this helipad.
      Specified by:
      getLength in interface ILcdHelipad
      Returns:
      the length
    • setHelipadType

      public void setHelipadType(TLcdHelipadType aHelipadType)
      Description copied from interface: ILcdEditableHelipad
      Specifies the type of this helipad.
      Specified by:
      setHelipadType in interface ILcdEditableHelipad
      Parameters:
      aHelipadType - a value for the type
    • setWidth

      public void setWidth(double aWidth)
      Description copied from interface: ILcdEditableHelipad
      Specifies the width of this helipad.
      Specified by:
      setWidth in interface ILcdEditableHelipad
      Parameters:
      aWidth - a value for the width
    • setLength

      public void setLength(double aLength)
      Description copied from interface: ILcdEditableHelipad
      Specifies the length of this helipad.
      Specified by:
      setLength in interface ILcdEditableHelipad
      Parameters:
      aLength - a value for the length
    • getLegCount

      public int getLegCount()
      Description copied from interface: ILcdGeoPath
      Returns the number of legs in this ILcdGeoPath.
      Specified by:
      getLegCount in interface ILcdGeoPath
      Returns:
      The number of legs in this ILcdGeoPath.
    • getLeg

      public ILcdGeoPathLeg getLeg(int aIndex)
      Description copied from interface: ILcdGeoPath
      Returns the ILcdGeoPathLeg at the given index.
      Specified by:
      getLeg in interface ILcdGeoPath
      Parameters:
      aIndex - an index.
      Returns:
      The ILcdGeoPathLeg at the given index.
    • addLeg

      public void addLeg(ILcdGeoPathLeg aLeg)
      Description copied from interface: ILcdEditableGeoPath
      Adds the specified leg to the end of this GeoPath.
      Specified by:
      addLeg in interface ILcdEditableGeoPath
      Parameters:
      aLeg - an ILcdGeoPathLeg
    • insertLegAt

      public void insertLegAt(ILcdGeoPathLeg aLeg, int anIndex)
      Description copied from interface: ILcdEditableGeoPath
      Adds a ILcdGeoPathLeg object to the ILcdEditableGeoPath on the specified index.
      Specified by:
      insertLegAt in interface ILcdEditableGeoPath
      Parameters:
      aLeg - the ILcdGeoPathLeg object to be added to the ILcdEditableGeoPath.
      anIndex - the index in the ILcdEditableAirspace where the ILcdAirspaceSegment object must be added.
    • removeLegAt

      public void removeLegAt(int anIndex)
      Description copied from interface: ILcdEditableGeoPath
      Removes the ILcdGeoPathLeg object on the specified index from the from ILcdEditableGeoPath.
      Specified by:
      removeLegAt in interface ILcdEditableGeoPath
      Parameters:
      anIndex - the index in the ILcdEditableGeoPath where the ILcdGeoPathLeg object must be removed.
    • getBounds

      public ILcdBounds getBounds()
      Description copied from interface: ILcdBounded
      Returns the 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.

      Specified by:
      getBounds in interface ILcdBounded
      Returns:
      the ILcdBounds by which the geometry of this ILcdBounded object is bounded.
    • getFocusPoint

      public ILcdPoint getFocusPoint()
      Description copied from interface: ILcdShape
      Returns the focus point of this ILcdShape.
      Specified by:
      getFocusPoint in interface ILcdShape
      Returns:
      the focus point of this ILcdShape.
    • contains2D

      public boolean contains2D(ILcdPoint aPoint)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given ILcdPoint in the 2D space. Only the first two dimensions of the ILcdShape and the ILcdPoint are considered.
      Specified by:
      contains2D in interface ILcdShape
      Parameters:
      aPoint - the ILcdPoint to test.
      Returns:
      the boolean result of the containment test.
      See Also:
    • contains2D

      public boolean contains2D(double v, double v1)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given point in the 2D space. Only the first two dimensions of the ILcdShape are considered.
      Specified by:
      contains2D in interface ILcdShape
      Parameters:
      v - the x coordinate of the point.
      v1 - the y coordinate of the point.
      Returns:
      the boolean result of the containment test.
    • contains3D

      public boolean contains3D(ILcdPoint aPoint)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given ILcdPoint in the 3D space.
      Specified by:
      contains3D in interface ILcdShape
      Parameters:
      aPoint - the ILcdPoint to test.
      Returns:
      the boolean result of the containment test.
      See Also:
    • contains3D

      public boolean contains3D(double v, double v1, double v2)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given point in the 3D space.
      Specified by:
      contains3D in interface ILcdShape
      Parameters:
      v - the x coordinate of the point.
      v1 - the y coordinate of the point.
      v2 - the z coordinate of the point.
      Returns:
      the boolean result of the containment test.
    • clone

      public Object clone()
      Returns a clone of this TLcdHelipad object. Note: the features of the new object are a shallow clone of the features of this object.
      Specified by:
      clone in interface ILcdCloneable
      Overrides:
      clone in class Object
      Returns:
      a clone of this TLcdHelipad object.
      See Also:
    • getOrientation

      public int getOrientation()
      Description copied from interface: ILcdPolygon
      Returns the orientation of this ILcdPolygon: ILcdPolygon.CLOCKWISE or ILcdPolygon.COUNTERCLOCKWISE.
      Specified by:
      getOrientation in interface ILcdPolygon
      Returns:
      the orientation of this 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.
    • getPointCount

      public int getPointCount()
      Description copied from interface: ILcdPointList
      Returns the number of ILcdPoint objects in the list.
      Specified by:
      getPointCount in interface ILcdPointList
      Returns:
      the number of ILcdPoint objects in the list.
    • getPoint

      public ILcdPoint getPoint(int aIndex) throws IndexOutOfBoundsException
      Description copied from interface: ILcdPointList
      Returns the ILcdPoint at a given index.
      Specified by:
      getPoint in interface ILcdPointList
      Parameters:
      aIndex - a valid index in the list of ILcdPoint objects.
      Returns:
      the ILcdPoint at the given index.
      Throws:
      IndexOutOfBoundsException - if the given index is out of bounds.
    • invalidate

      public void invalidate()
      Discards the geometry cached with this helipad and recalculates it. Whenever this is done, the ILcdModel containing this helipad should be notified by means of a call to elementChanged()!
    • getDataType

      public TLcdDataType getDataType()
      Description copied from interface: ILcdDataObject
      Returns the type of this data object. This can never be null.
      Specified by:
      getDataType in interface ILcdDataObject
      Returns:
      the type of this data object
    • getValue

      public Object getValue(TLcdDataProperty aProperty)
      Description copied from interface: 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.

      Specified by:
      getValue in interface ILcdDataObject
      Parameters:
      aProperty - the property for which the value is to be returned
      Returns:
      the value of the given property for this data object
    • getValue

      public Object getValue(String aPropertyName)
      Description copied from interface: 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).

      See ILcdDataObject.getValue(TLcdDataProperty) for more information.

      Specified by:
      getValue in interface ILcdDataObject
      Parameters:
      aPropertyName - the name of the property of which the value is to be returned
      Returns:
      the value of the property with the given name
      See Also:
    • setValue

      public void setValue(TLcdDataProperty aProperty, Object aValue)
      Description copied from interface: 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 the data 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.

      Specified by:
      setValue in interface ILcdDataObject
      Parameters:
      aProperty - the property for which the value is to be set
      aValue - the value to set
      See Also:
    • setValue

      public void setValue(String aPropertyName, Object aValue)
      Description copied from interface: 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).

      See ILcdDataObject.setValue(TLcdDataProperty, Object) for more information.

      Specified by:
      setValue in interface ILcdDataObject
      Parameters:
      aPropertyName - the name of the property of which the value is to be set
      aValue - the value to set
    • hasValue

      public boolean hasValue(TLcdDataProperty aProperty)
      Description copied from interface: ILcdDataObject
      Indicates whether this data object has a value for the given property.

      • 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 IllegalArgumentException
      • aProperty is null: not allowed, you will get NullPointerException

      A multivalued property is considered to have a value if it has at least one value.

      Specified by:
      hasValue in interface ILcdDataObject
      Parameters:
      aProperty - the property for which to return whether a value is present or not.
      Returns:
      true if this data object has a value for the given property, false otherwise.
    • hasValue

      public boolean hasValue(String aPropertyName)
      Description copied from interface: ILcdDataObject
      Indicates whether this data object has a value for the given property.
      See ILcdDataObject.hasValue(TLcdDataProperty) for more information.
      Specified by:
      hasValue in interface ILcdDataObject
      Parameters:
      aPropertyName - the name of the property for which to return whether a value is present or not.
      Returns:
      true if this data object has a value for the property with the given name, false otherwise.
    • getStartPoint

      public ILcdPoint getStartPoint()
      Description copied from interface: ILcdCurve
      Retrieves the start point of the curve.

      This is equivalent to computePointSFCT(0).

      Specified by:
      getStartPoint in interface ILcdCurve
      Returns:
      the start point of the curve
    • getEndPoint

      public ILcdPoint getEndPoint()
      Description copied from interface: ILcdCurve
      Retrieves the end point of the curve.

      This is equivalent to computePointSFCT(1).

      Specified by:
      getEndPoint in interface ILcdCurve
      Returns:
      the end point of the curve
    • getStartTangent2D

      public double getStartTangent2D()
      Description copied from interface: ILcdCurve
      Returns the angle of the curve's tangent at the start point, in degrees counterclockwise from the direction at 3 o'clock.

      The tangent orientation is from the start point towards the rest of the shape.

      This is the same as getTangent2D(0).

      Specified by:
      getStartTangent2D in interface ILcdCurve
      Returns:
      the curve's angle in the start point
    • getEndTangent2D

      public double getEndTangent2D()
      Description copied from interface: ILcdCurve
      Returns the angle of the curve's tangent at the end point, in degrees counterclockwise from the direction at 3 o'clock.

      The tangent orientation is from the end point, away from the curve before it.

      This is the same as getTangent2D(1).

      Specified by:
      getEndTangent2D in interface ILcdCurve
      Returns:
      the curve's angle in the end point
    • getTangent2D

      public double getTangent2D(double aV)
      Description copied from interface: ILcdCurve
      Returns the angle of the curve's tangent in the point defined by the given parameter, in degrees counterclockwise from the direction at 3 o'clock.

      The tangent orientation is from the point at parameter aParam towards the rest of the shape.

      Specified by:
      getTangent2D in interface ILcdCurve
      Parameters:
      aV - a value of the closed interval [0,1]
      Returns:
      the curve's angle in the point defined by the given parameter
    • getLength2D

      public double getLength2D(double aV, double aV1)
      Description copied from interface: ILcdCurve
      Returns the length between two points of the curve, defined by the given parameters.
      • When aParam1 == aParam2, the length is 0.
      • When aParam1 == 0 and aParam2 == 1, the length is the whole length of the curve.
      • When aParam1 > aParam2, the length is (aParam1 to 1) + (0 to aParam2).
      Specified by:
      getLength2D in interface ILcdCurve
      Parameters:
      aV - a value of the closed interval [0,1]
      aV1 - a value of the closed interval [0,1]
      Returns:
      the length of the curve.
    • computePointSFCT

      public void computePointSFCT(double aV, ILcd3DEditablePoint aILcd3DEditablePoint)
      Description copied from interface: ILcdCurve
      Computes a point of the curve, defined by the given parameter.
      Specified by:
      computePointSFCT in interface ILcdCurve
      Parameters:
      aV - a value of the closed interval [0,1]
      aILcd3DEditablePoint - the point to store the computed curve point in
    • getInterpolation

      public String getInterpolation()
      Description copied from interface: ILcdCurve
      Returns the interpolation method used by this curve.

      A set of predefined constants are defined in this interface, which are used by the default ILcdCurve implementations provided by LuciadLightspeed.

      Custom implementations can define their own constants, and use them to interpret the interpolation of the curve.

      Specified by:
      getInterpolation in interface ILcdCurve
      Returns:
      the interpolation method used by this curve.
    • getLineSegmentIntersectionCount

      public int getLineSegmentIntersectionCount(ILcdPoint aILcdPoint, ILcdPoint aILcdPoint1)
      Description copied from interface: ILcdCurve
      Returns the number of intersections between this curve and a line segment defined by the two specified points.

      This information can be used to perform containment calculations, if this curve is closed or if this curve is part of a composite closed curve. By determining the number of intersections between this curve and a line segment starting from a given point in a fixed direction, one can determine whether a point is located within the closed curve by using the even-odd rule.

      Specified by:
      getLineSegmentIntersectionCount in interface ILcdCurve
      Parameters:
      aILcdPoint - the first point of the line segment
      aILcdPoint1 - the second point of the line segment
      Returns:
      the number of intersections between the curve and the line segment