
| Constructor and Description |
|---|
LinearRing(LineBuilder pLineBuilder)
Dedicated to lines
|
LinearRing(LineBuilder pLineBuilder,
boolean pClosePath)
Dedicated to lines
|
LinearRing(Path pPath)
Dedicated to `Path`
|
LinearRing(Path pPath,
boolean pClosed) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addGreatCircle(GeoPoint startPoint,
GeoPoint endPoint,
int numberOfPoints) |
void |
addPoint(GeoPoint p) |
(package private) void |
buildLinePortion(Projection pProjection,
boolean pStorePoints)
Dedicated to Polyline, as they can run much faster with drawLine than through a Path
|
(package private) PointL |
buildPathPortion(Projection pProjection,
PointL pOffset,
boolean pStorePoints)
Feed the path with the segments corresponding to the GeoPoint pairs
projected using pProjection and clipped into a "reasonable" clip area
In most cases (Polygon without holes, Polyline) the offset parameter will be null.
|
void |
clear() |
(package private) void |
clearPath() |
(package private) float[] |
computeDowngradePointList(int pSize)
Computes the list of points of a polyline that would be the projection of the GeoPoints
on a centered size*size square
|
void |
getBestOffset(Projection pProjection,
PointL pOffset,
PointL pPixel) |
BoundingBox |
getBoundingBox() |
GeoPoint |
getCenter(GeoPoint pReuse) |
static double |
getCloserValue(double pPrevious,
double pNext,
double pWorldSize) |
(package private) GeoPoint |
getCloseTo(GeoPoint pPoint,
double tolerance,
Projection pProjection,
boolean pClosePath) |
double |
getDistance() |
(package private) double[] |
getDistances() |
ArrayList<GeoPoint> |
getPoints() |
ListPointL |
getPointsForMilestones() |
(package private) boolean |
isCloseTo(GeoPoint pPoint,
double tolerance,
Projection pProjection,
boolean pClosePath)
Detection is done in screen coordinates.
|
boolean |
isGeodesic() |
void |
setClipArea(long pXMin,
long pYMin,
long pXMax,
long pYMax) |
void |
setClipArea(Projection pProjection) |
void |
setGeodesic(boolean geodesic) |
void |
setPoints(List<GeoPoint> points) |
public LinearRing(Path pPath)
public LinearRing(LineBuilder pLineBuilder, boolean pClosePath)
public LinearRing(LineBuilder pLineBuilder)
public LinearRing(Path pPath, boolean pClosed)
void clearPath()
protected void addGreatCircle(GeoPoint startPoint, GeoPoint endPoint, int numberOfPoints)
public void addPoint(GeoPoint p)
double[] getDistances()
public double getDistance()
public void setGeodesic(boolean geodesic)
public boolean isGeodesic()
PointL buildPathPortion(Projection pProjection, PointL pOffset, boolean pStorePoints)
void buildLinePortion(Projection pProjection, boolean pStorePoints)
public ListPointL getPointsForMilestones()
public void getBestOffset(Projection pProjection, PointL pOffset, PointL pPixel)
public static double getCloserValue(double pPrevious,
double pNext,
double pWorldSize)
boolean isCloseTo(GeoPoint pPoint, double tolerance, Projection pProjection, boolean pClosePath)
tolerance - in pixelsGeoPoint getCloseTo(GeoPoint pPoint, double tolerance, Projection pProjection, boolean pClosePath)
tolerance - in pixelspublic void setClipArea(long pXMin,
long pYMin,
long pXMax,
long pYMax)
public void setClipArea(Projection pProjection)
public BoundingBox getBoundingBox()
public void clear()
float[] computeDowngradePointList(int pSize)