public class TLcdLonLatHeightPolypoint extends ALcd3DEditablePolypoint implements ILcd3DEditablePolypoint, ILcdCache, Cloneable
ILcd3DEditablePolypoint
in the geodetic space.
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 ILcd3DEditablePointList representing the actual geometry should provide geodetic points (TLcdLonLatHeightPoint), not cartesian (TLcdXYZPoint).
Constructor and Description |
---|
TLcdLonLatHeightPolypoint()
Creates a new, empty poly-point.
|
TLcdLonLatHeightPolypoint(ILcd3DEditablePointList a3DEditablePointList)
Creates a new poly-point backed by the given pointlist.
|
TLcdLonLatHeightPolypoint(TLcdLonLatHeightPolypoint aLonLatHeightPolypoint)
Creates copy of another poly-point.
|
TLcdLonLatHeightPolypoint(TLcdLonLatHeightPolypoint aPolypoint,
boolean aDeepCopy)
Creates a poly-point based on another poly-point.
|
Modifier and Type | Method and Description |
---|---|
protected ILcd3DEditableBounds |
calculateBounds()
This method should compute the bounds of the polypoint.
|
protected ILcd3DEditablePoint |
calculateFocusPoint()
Computes the focus point as the center of the bounding box.
|
Object |
clone()
Creates and returns a copy of this object.
|
clearCache, contains2D, contains3D, equals, get3DEditablePointList, getBounds, getCachedObject, getFocusPoint, getPoint, getPointCount, getPointSFCT, getX, getY, getZ, hashCode, insert2DPoint, insert3DPoint, insertIntoCache, invalidateBounds, move2D, move2DPoint, move3DPoint, removeCachedObject, removePointAt, set3DEditablePointList, set3DEditablePointList, setFocusPoint, toString, translate2D, translate2DPoint, translate3D, translate3DPoint
move3D, move3D
move2D
contains2D, contains3D, fromDomainObject
finalize, getClass, notify, notifyAll, wait, wait, wait
move3D, move3D, translate3D
move2D, move2D, translate2D
contains2D, contains2D, contains3D, contains3D, getFocusPoint
getBounds
insert3DPoint, move3DPoint, removePointAt, translate3D, translate3DPoint
append2DPoint, insert2DPoint, move2DPoint, translate2D, translate2DPoint
getPoint, getPointCount, getPointSFCT, getX, getY, getZ
clearCache, getCachedObject, insertIntoCache, removeCachedObject
public TLcdLonLatHeightPolypoint()
public TLcdLonLatHeightPolypoint(ILcd3DEditablePointList a3DEditablePointList)
TLcdLonLatPoint
sa3DEditablePointList
- the initial pointspublic TLcdLonLatHeightPolypoint(TLcdLonLatHeightPolypoint 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 possiblepublic TLcdLonLatHeightPolypoint(TLcdLonLatHeightPolypoint aLonLatHeightPolypoint)
aLonLatHeightPolypoint
- The object to copyprotected ILcd3DEditableBounds calculateBounds()
ALcd3DEditablePolypoint
ILcd2DEditableBounds
should be stored in fBounds
.calculateBounds
in class ALcd3DEditablePolypoint
protected ILcd3DEditablePoint calculateFocusPoint()
ALcd3DEditablePolypoint
ILcd2DEditablePoint
is stored in fFocusPoint
.calculateFocusPoint
in class ALcd3DEditablePolypoint
public Object clone()
clone
in interface ILcdCloneable
clone
in class ALcd3DEditablePolypoint
Object.clone()