public static class IlvGeodeticPathComputation.PointVector extends Object
null
values
for interruptions. It is is possible to transform this array into
a Shape
or PointArray
instance.Constructor and Description |
---|
PointVector()
Creates a new
PointVector instance. |
Modifier and Type | Method and Description |
---|---|
void |
addPoint(double x,
double y)
Adds a point to the vector
|
void |
addPoint(IlvPoint current)
Add a point or
null to the vector. |
void |
append(IlvGeodeticPathComputation.PointVector append)
Adds a complete vector.
|
IlvPoint |
getPoint(int idx)
Retrieves a point.
|
int |
getPointCount()
Returns the number of points and interruptions in the vector.
|
IlvPointArray[] |
makeArrays(boolean close)
Creates a point array for each uninterrupted point sequence.
|
GeneralPath |
makeShape()
Creates a general path composed of MOVETO and LINETO.
|
public void addPoint(IlvPoint current)
null
to the vector.current
- The point to add.public void addPoint(double x, double y)
x
- The manager x coordinate of point.y
- The manager y coordinate of point.public void append(IlvGeodeticPathComputation.PointVector append)
append
- The vector to append.public int getPointCount()
public IlvPoint getPoint(int idx)
idx
- The index of the point to retrieve.idx
or null
.public GeneralPath makeShape()
public IlvPointArray[] makeArrays(boolean close)
close
- Set to true
for a point to be added to
each point array to close the shape.IlvPointArray
instance.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.