Package com.luciad.shape.shape3D
Class TLcdXYZPolypoint
java.lang.Object
com.luciad.shape.ALcdShape
com.luciad.shape.shape2D.ALcd2DEditableShape
com.luciad.shape.shape3D.ALcd3DEditableShape
com.luciad.shape.shape3D.ALcd3DEditablePolypoint
com.luciad.shape.shape3D.TLcdXYZPolypoint
- All Implemented Interfaces:
ILcdBounded
,ILcdPointList
,ILcdPointList2
,ILcdPolypoint
,ILcdShape
,ILcd2DEditablePointList
,ILcd2DEditablePolypoint
,ILcd2DEditableShape
,ILcd3DEditablePointList
,ILcd3DEditablePolypoint
,ILcd3DEditableShape
,ILcdCache
,ILcdCloneable
,Serializable
,Cloneable
- Direct Known Subclasses:
TLcdMeasureXYZPolypoint
,TLcdXYZMPolypoint
,TLcdXYZPolygon
,TLcdXYZPolyline
public class TLcdXYZPolypoint
extends ALcd3DEditablePolypoint
implements ILcd3DEditablePolypoint, ILcdCache, Cloneable
This class provides an implementation of
ILcd3DEditablePolypoint
in the cartesian 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.
- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdXYZPolypoint
(ILcd3DEditablePointList a3DEditablePointList) TLcdXYZPolypoint
(TLcdXYZPolypoint aXYZPolypoint) A copy constructor.TLcdXYZPolypoint
(TLcdXYZPolypoint aPolypoint, boolean aDeepCopy) Makes a clone of the point list that represents the polypoint if it implements the interfaceILcdCloneable
andaDeepCopy
is true. -
Method Summary
Modifier and TypeMethodDescriptionprotected ILcd3DEditableBounds
Computes the bounds by including all the points.protected ILcd3DEditablePoint
Returns the center point of the bounds.clone()
Creates and returns a copy of this object.Methods inherited from class com.luciad.shape.shape3D.ALcd3DEditablePolypoint
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
Methods inherited from class com.luciad.shape.shape3D.ALcd3DEditableShape
move3D, move3D
Methods inherited from class com.luciad.shape.shape2D.ALcd2DEditableShape
move2D
Methods inherited from class com.luciad.shape.ALcdShape
contains2D, contains3D, fromDomainObject
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditablePointList
append2DPoint, insert2DPoint, move2DPoint, translate2D, translate2DPoint
Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
move2D, move2D, translate2D
Methods inherited from interface com.luciad.shape.shape3D.ILcd3DEditablePointList
insert3DPoint, move3DPoint, removePointAt, translate3D, translate3DPoint
Methods inherited from interface com.luciad.shape.shape3D.ILcd3DEditableShape
move3D, move3D, translate3D
Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
Methods inherited from interface com.luciad.util.ILcdCache
clearCache, getCachedObject, insertIntoCache, removeCachedObject
Methods inherited from interface com.luciad.shape.ILcdPointList
getPoint, getPointCount, getPointSFCT, getX, getY, getZ
Methods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Constructor Details
-
TLcdXYZPolypoint
public TLcdXYZPolypoint() -
TLcdXYZPolypoint
-
TLcdXYZPolypoint
Makes a clone of the point list that represents the polypoint if it implements the interfaceILcdCloneable
andaDeepCopy
is true. #see com.luciad.util.ILcdCloneable -
TLcdXYZPolypoint
A copy constructor.- Parameters:
aXYZPolypoint
- TheTLcdLonLatHeightPolypoint
to copy.
-
-
Method Details
-
calculateBounds
Computes the bounds by including all the points.- Specified by:
calculateBounds
in classALcd3DEditablePolypoint
- Returns:
- a bounds that contains all points of the polypoint.
-
calculateFocusPoint
Returns the center point of the bounds.- Overrides:
calculateFocusPoint
in classALcd3DEditablePolypoint
- Returns:
- the center point of the bounds.
-
clone
Creates and returns a copy of this object. The contained editable points list is cloned. The cache, the bounds and the focus point are not copied or cloned at all, but recalculated when needed.- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classALcd3DEditablePolypoint
- See Also:
-