Class TLcdLonLatPolypoint

All Implemented Interfaces:
ILcdBounded, ILcdPointList, ILcdPointList2, ILcdPolypoint, ILcdShape, ILcd2DEditablePointList, ILcd2DEditablePolypoint, ILcd2DEditableShape, ILcdCache, ILcdCloneable, ILcdInvalidateable, Serializable, Cloneable
Direct Known Subclasses:
TLcdLonLatMPolypoint, TLcdLonLatPolygon, TLcdLonLatPolyline, TLcdLonLatRhumbPolygon, TLcdLonLatRhumbPolyline

public class TLcdLonLatPolypoint extends ALcd2DEditablePolypoint implements ILcd2DEditablePolypoint, ILcdCache
This class provides an implementation of ILcd2DEditablePolypoint in the geodetic space.

All longitude/latitude coordinates are expressed in degrees.

This class is thread-safe for concurrent read-only access of its contents. For read-write access, external locking must be used. Such locking is typically done at the model level.

Note that the ILcd2DEditablePointList representing the actual geometry should provide geodetic points (TLcdLonLatPoint), not cartesian (TLcdXYPoint).

See Also:
  • Constructor Details

    • TLcdLonLatPolypoint

      public TLcdLonLatPolypoint()
      Creates a new, empty poly-point.
    • TLcdLonLatPolypoint

      public TLcdLonLatPolypoint(ILcd2DEditablePointList a2DEditablePointList)
      Creates a new poly-point backed by the given pointlist.
      • The point list and the points therein are not copied, and can be modified by this object
      • The point list should contain TLcdLonLatPoints
      Parameters:
      a2DEditablePointList - the initial points
    • TLcdLonLatPolypoint

      public TLcdLonLatPolypoint(TLcdLonLatPolypoint aPolypoint, boolean aDeepCopy)
      Creates a poly-point based on another poly-point.
      • When aDeepCopy is true, and the given polypoint has a cloneable pointlist (see ILcdCloneable, for example TLcd2DEditablePointList), the underlying points will be cloned.
      • Otherwise, the underlying polypoint is re-used by the new object, and updates affect both objects.
      Parameters:
      aPolypoint - The object to copy
      aDeepCopy - whether to make a copy of the points, if possible
  • Method Details