Package com.luciad.shape.shape2D
Class TLcdLonLatFloatPolypoint
java.lang.Object
com.luciad.shape.ALcdShape
com.luciad.shape.shape2D.ALcd2DEditableShape
com.luciad.shape.shape2D.ALcd2DEditableFloatPolypoint
com.luciad.shape.shape2D.TLcdLonLatFloatPolypoint
- All Implemented Interfaces:
ILcdBounded,ILcdPointList,ILcdPolypoint,ILcdShape,ILcd2DEditablePointList,ILcd2DEditablePolypoint,ILcd2DEditableShape,ILcdCloneable,Serializable,Cloneable
- Direct Known Subclasses:
TLcdLonLatFloatPolypointCache
public class TLcdLonLatFloatPolypoint
extends ALcd2DEditableFloatPolypoint
implements ILcd2DEditablePolypoint
This class provides an implementation of
ILcd2DEditablePolypoint in
the geodetic space.
It uses an array of floats instead of a TLcd2DEditablePointList
of ILcd2DEditablePoint objects. A single array of floats
stores the 2D coordinates. The points are stored as (x,y) pairs.
The boolean indicates whether the last 4 places in the array can be used
to store the bounds of the ILcd2DEditablePolypoint.
This class is thread-hostile, even for read-only access, since point instances are being reused from an internal pool.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdLonLatFloatPolypoint(float[] aPoints, boolean aHasBounds, boolean aBoundsInitialized, boolean aClone) TLcdLonLatFloatPolypoint(TLcdLonLatFloatPolypoint aLonLatFloatPolypoint) -
Method Summary
Modifier and TypeMethodDescriptionprotected ILcd2DEditableBoundsCreates an uninitializedILcd2DEditableBoundsobject of a type compatible with the concrete implementation of this class.protected ILcd2DEditablePointCreates an uninitializedILcd2DEditablePointpoint of a type compatible with the concrete implementation of this class (geodesic/cartesian).Methods inherited from class com.luciad.shape.shape2D.ALcd2DEditableFloatPolypoint
calculateBounds, calculateFocusPoint, clone, contains2D, equals, getBounds, getFocusPoint, getPoint, getPointCount, hashCode, insert2DPoint, invalidate, move2D, move2DPoint, removePointAt, translate2D, translate2DPointMethods inherited from class com.luciad.shape.shape2D.ALcd2DEditableShape
contains3D, move2DMethods inherited from class com.luciad.shape.ALcdShape
contains2D, contains3D, fromDomainObjectMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.shape.shape2D.ILcd2DEditablePointList
append2DPoint, insert2DPoint, move2DPoint, removePointAt, translate2D, translate2DPointMethods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
move2D, move2D, translate2DMethods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods inherited from interface com.luciad.util.ILcdCloneable
cloneMethods 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
-
TLcdLonLatFloatPolypoint
public TLcdLonLatFloatPolypoint() -
TLcdLonLatFloatPolypoint
public TLcdLonLatFloatPolypoint(float[] aPoints, boolean aHasBounds, boolean aBoundsInitialized, boolean aClone) -
TLcdLonLatFloatPolypoint
-
-
Method Details
-
createPoint
Description copied from class:ALcd2DEditableFloatPolypointCreates an uninitializedILcd2DEditablePointpoint of a type compatible with the concrete implementation of this class (geodesic/cartesian). The created point will be updated and returned by theALcd2DEditableFloatPolypoint.getPoint(int)andALcd2DEditableFloatPolypoint.getFocusPoint()methods.- Specified by:
createPointin classALcd2DEditableFloatPolypoint
-
createBounds
Description copied from class:ALcd2DEditableFloatPolypointCreates an uninitializedILcd2DEditableBoundsobject of a type compatible with the concrete implementation of this class. This bounds object will be updated and returned by theALcd2DEditableFloatPolypoint.getBounds()method.- Specified by:
createBoundsin classALcd2DEditableFloatPolypoint
-