public interface ILcd2DEditablePointList extends ILcdPointList
ILcd2DEditablePointList
is an ILcdPointList
in which points can be inserted, removed,
and moved in two dimensions.
Note that the points obtained through ILcdPointList.getPoint(int)
should not be cast to ILcd2DEditablePoint
, instead you should use move2DPoint(int, double, double)
or translate2DPoint(int, double, double)
.Modifier and Type | Method and Description |
---|---|
default void |
append2DPoint(double aX,
double aY)
Append a point at the end of this
ILcd2DEditablePointList . |
void |
insert2DPoint(int aIndex,
double aX,
double aY)
Inserts a point at the given index into this
ILcd2DEditablePointList . |
void |
move2DPoint(int aIndex,
double aX,
double aY)
Moves the specified point of this
ILcd2DEditablePointList to the given point in the 2D space. |
void |
removePointAt(int aIndex)
Removes the point at the given index from this
ILcd2DEditablePointList . |
void |
translate2D(double aDeltaX,
double aDeltaY)
Translates all the points of this
ILcd2DEditablePointList from their current positions
over the given translation vector in the 2D space. |
void |
translate2DPoint(int aIndex,
double aDeltaX,
double aDeltaY)
Translates the specified point of this
ILcd2DEditablePointList from its current position
over the given translation vector in the 2D space. |
getPoint, getPointCount, getPointSFCT, getX, getY, getZ
void translate2D(double aDeltaX, double aDeltaY)
ILcd2DEditablePointList
from their current positions
over the given translation vector in the 2D space. Only the first two
dimensions of the points are considered. The third dimension is left unchanged.aDeltaX
- the x coordinate of the translation vector.aDeltaY
- the y coordinate of the translation vector.void move2DPoint(int aIndex, double aX, double aY)
ILcd2DEditablePointList
to the given point in the 2D space. Only the first
two dimensions of the ILcdShape
are considered.
The third dimension is left unchanged.aIndex
- a valid index in the list of points.aX
- the x coordinate of the point.aY
- the y coordinate of the point.void translate2DPoint(int aIndex, double aDeltaX, double aDeltaY)
ILcd2DEditablePointList
from its current position
over the given translation vector in the 2D space. Only the first two
dimensions of the points are considered. The third dimension is left unchanged.aDeltaX
- the x coordinate of the translation vector.aDeltaY
- the y coordinate of the translation vector.void insert2DPoint(int aIndex, double aX, double aY)
ILcd2DEditablePointList
.aIndex
- a valid new index in the list of points.aX
- the x coordinate of the new point.aY
- the y coordinate of the new point.default void append2DPoint(double aX, double aY)
ILcd2DEditablePointList
.
The default implementation delegates to insert2DPoint
.aX
- the x coordinate of the new point.aY
- the y coordinate of the new point.void removePointAt(int aIndex)
ILcd2DEditablePointList
.aIndex
- a valid index in the list of ILcdPoint
objects.