Package com.luciad.shape.shape2D
Class TLcdXYFloatPolypoint
java.lang.Object
com.luciad.shape.ALcdShape
com.luciad.shape.shape2D.ALcd2DEditableShape
com.luciad.shape.shape2D.ALcd2DEditableFloatPolypoint
com.luciad.shape.shape2D.TLcdXYFloatPolypoint
- All Implemented Interfaces:
ILcdBounded
,ILcdPointList
,ILcdPolypoint
,ILcdShape
,ILcd2DEditablePointList
,ILcd2DEditablePolypoint
,ILcd2DEditableShape
,ILcdCloneable
,Serializable
,Cloneable
- Direct Known Subclasses:
TLcdXYFloatPolypointCache
public class TLcdXYFloatPolypoint
extends ALcd2DEditableFloatPolypoint
implements ILcd2DEditablePolypoint
This class provides an implementation of
ILcd2DEditablePolypoint
in
the cartesian 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-safe for read-only access.
- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdXYFloatPolypoint
(float[] aPoints, boolean aHasBounds, boolean aBoundsInitialized, boolean aClone) TLcdXYFloatPolypoint
(TLcdXYFloatPolypoint aXYFloatPolypoint) -
Method Summary
Modifier and TypeMethodDescriptionprotected ILcd2DEditableBounds
Creates an uninitializedILcd2DEditableBounds
object of a type compatible with the concrete implementation of this class.protected ILcd2DEditablePoint
Creates an uninitializedILcd2DEditablePoint
point 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, translate2DPoint
Methods inherited from class com.luciad.shape.shape2D.ALcd2DEditableShape
contains3D, move2D
Methods inherited from class com.luciad.shape.ALcdShape
contains2D, contains3D, fromDomainObject
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditablePointList
append2DPoint, insert2DPoint, move2DPoint, removePointAt, translate2D, translate2DPoint
Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
move2D, move2D, translate2D
Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
Methods inherited from interface com.luciad.util.ILcdCloneable
clone
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
-
TLcdXYFloatPolypoint
public TLcdXYFloatPolypoint() -
TLcdXYFloatPolypoint
public TLcdXYFloatPolypoint(float[] aPoints, boolean aHasBounds, boolean aBoundsInitialized, boolean aClone) -
TLcdXYFloatPolypoint
-
-
Method Details
-
createPoint
Description copied from class:ALcd2DEditableFloatPolypoint
Creates an uninitializedILcd2DEditablePoint
point 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:
createPoint
in classALcd2DEditableFloatPolypoint
-
createBounds
Description copied from class:ALcd2DEditableFloatPolypoint
Creates an uninitializedILcd2DEditableBounds
object 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:
createBounds
in classALcd2DEditableFloatPolypoint
-