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
ConstructorsConstructorDescriptionTLcdXYZPolypoint(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 interfaceILcdCloneableandaDeepCopyis true. -
Method Summary
Modifier and TypeMethodDescriptionprotected ILcd3DEditableBoundsComputes the bounds by including all the points.protected ILcd3DEditablePointReturns 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, translate3DPointMethods inherited from class com.luciad.shape.shape3D.ALcd3DEditableShape
move3D, move3DMethods inherited from class com.luciad.shape.shape2D.ALcd2DEditableShape
move2DMethods inherited from class com.luciad.shape.ALcdShape
contains2D, contains3D, fromDomainObjectMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.shape.shape2D.ILcd2DEditablePointList
append2DPoint, insert2DPoint, move2DPoint, translate2D, translate2DPointMethods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
move2D, move2D, translate2DMethods inherited from interface com.luciad.shape.shape3D.ILcd3DEditablePointList
insert3DPoint, move3DPoint, removePointAt, translate3D, translate3DPointMethods inherited from interface com.luciad.shape.shape3D.ILcd3DEditableShape
move3D, move3D, translate3DMethods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods inherited from interface com.luciad.util.ILcdCache
clearCache, getCachedObject, insertIntoCache, removeCachedObjectMethods inherited from interface com.luciad.shape.ILcdPointList
getPoint, getPointCount, getPointSFCT, getX, getY, getZMethods 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 interfaceILcdCloneableandaDeepCopyis true. #see com.luciad.util.ILcdCloneable -
TLcdXYZPolypoint
A copy constructor.- Parameters:
aXYZPolypoint- TheTLcdLonLatHeightPolypointto copy.
-
-
Method Details
-
calculateBounds
Computes the bounds by including all the points.- Specified by:
calculateBoundsin classALcd3DEditablePolypoint- Returns:
- a bounds that contains all points of the polypoint.
-
calculateFocusPoint
Returns the center point of the bounds.- Overrides:
calculateFocusPointin 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:
clonein interfaceILcdCloneable- Overrides:
clonein classALcd3DEditablePolypoint- See Also:
-