public class TLcdLonLatPolypoint extends ALcd2DEditablePolypoint implements ILcd2DEditablePolypoint, ILcdCache
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).
fBounds, fFocusPoint
Constructor and Description |
---|
TLcdLonLatPolypoint()
Creates a new, empty poly-point.
|
TLcdLonLatPolypoint(ILcd2DEditablePointList a2DEditablePointList)
Creates a new poly-point backed by the given pointlist.
|
TLcdLonLatPolypoint(TLcdLonLatPolypoint aPolypoint,
boolean aDeepCopy)
Creates a poly-point based on another poly-point.
|
Modifier and Type | Method and Description |
---|---|
protected void |
calculateBounds()
Computes the bounds of the polypoint.
|
protected void |
calculateFocusPoint()
Computes the focus point as the center of the bounding box.
|
Object |
clone()
Creates and returns a copy of this object.
|
clearCache, contains2D, equals, get2DEditablePointList, getBounds, getCachedObject, getFocusPoint, getPoint, getPointCount, getPointSFCT, getX, getY, getZ, hashCode, insert2DPoint, insertIntoCache, invalidateBounds, invalidateObject, move2D, move2DPoint, removeCachedObject, removePointAt, set2DEditablePointList, setFocusPoint, toString, translate2D, translate2DPoint
contains3D, move2D
contains2D, contains3D, fromDomainObject
finalize, getClass, notify, notifyAll, wait, wait, wait
move2D, move2D, translate2D
contains2D, contains2D, contains3D, contains3D, getFocusPoint
getBounds
append2DPoint, insert2DPoint, move2DPoint, removePointAt, translate2D, translate2DPoint
getPoint, getPointCount, getPointSFCT, getX, getY, getZ
clearCache, getCachedObject, insertIntoCache, removeCachedObject
public TLcdLonLatPolypoint()
public TLcdLonLatPolypoint(ILcd2DEditablePointList a2DEditablePointList)
TLcdLonLatPoint
sa2DEditablePointList
- the initial pointspublic TLcdLonLatPolypoint(TLcdLonLatPolypoint aPolypoint, boolean aDeepCopy)
aDeepCopy
is true, and the given polypoint has a cloneable pointlist
(see ILcdCloneable
, for example TLcd2DEditablePointList
), the underlying
points will be cloned.
aPolypoint
- The object to copyaDeepCopy
- whether to make a copy of the points, if possibleprotected void calculateBounds()
ALcd2DEditablePolypoint
fBounds
.calculateBounds
in class ALcd2DEditablePolypoint
protected void calculateFocusPoint()
ALcd2DEditablePolypoint
fFocusPoint
.calculateFocusPoint
in class ALcd2DEditablePolypoint
public Object clone()
clone
in interface ILcdCloneable
clone
in class ALcd2DEditablePolypoint
Object.clone()