public interface ILcdPointList extends Serializable
ILcdPoint
objects.
The list can only be read, not modified.
Next to the getPoint(int)
method, this interface offers additional methods that allow implementing low-memory
implementations of point lists (coordinates stored as primitive arrays instead of point instances), while still
maintaining high-performance access to the coordinate data.
Modifier and Type | Method and Description |
---|---|
ILcdPoint |
getPoint(int aIndex)
Returns the
ILcdPoint at a given index. |
int |
getPointCount()
Returns the number of
ILcdPoint objects in the list. |
default void |
getPointSFCT(int aIndex,
ILcd3DEditablePoint aPointSFCT)
Stores the coordinates of the point at
aIndex in the given point. |
default double |
getX(int aIndex)
Returns the X coordinate of the point at
aIndex . |
default double |
getY(int aIndex)
Returns the Y coordinate of the point at
aIndex . |
default double |
getZ(int aIndex)
Returns the Z coordinate of the point at
aIndex . |
int getPointCount()
ILcdPoint
objects in the list.ILcdPoint
objects in the list.ILcdPoint getPoint(int aIndex) throws IndexOutOfBoundsException
ILcdPoint
at a given index.aIndex
- a valid index in the list of ILcdPoint
objects.ILcdPoint
at the given index.IndexOutOfBoundsException
- if the given index is out of bounds.default double getX(int aIndex)
aIndex
.aIndex
- the index of the point for which to return the X coordinate.aIndex
.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getPointCount()
default double getY(int aIndex)
aIndex
.aIndex
- the index of the point for which to return the Y coordinate.aIndex
.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getPointCount()
default double getZ(int aIndex)
aIndex
.aIndex
- the index of the point for which to return the Z coordinate.aIndex
.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getPointCount()
default void getPointSFCT(int aIndex, ILcd3DEditablePoint aPointSFCT)
aIndex
in the given point.aIndex
- the index of the point for which to retrieve the coordinates.aPointSFCT
- the side-effect parameter in which to store the coordinates of the requested
point.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getPointCount()