public abstract class ScanBox
extends java.lang.Object
Viewport.getMapViewProjection(box)
ScanBox sb = new ScanBox(){
protected void setVisible(int y, int x1, int x2) {
}
};
sb.scan(pos.x, pos.y, pos.scale, * zoomLevel, coords);
where zoomLevel is the zoom-level for which tile coordinates should be
calculated.| Modifier and Type | Field and Description |
|---|---|
protected int |
mZoom |
| Constructor and Description |
|---|
ScanBox() |
| Modifier and Type | Method and Description |
|---|---|
void |
scan(double x,
double y,
double scale,
int zoom,
float[] box) |
protected abstract void |
setVisible(int y,
int x1,
int x2) |
protected abstract void setVisible(int y,
int x1,
int x2)
y - the y-number of tile to be set visible.x1 - the start x-number of tile to be set visible.x2 - the end x-number of tile to be set visible (excluded).public void scan(double x,
double y,
double scale,
int zoom,
float[] box)
x - Projected map position x in 0..1.y - Projected map position y in 0..1.scale - Absolute scale.zoom - Tile zoom level for current scale.box - Current visible cut-out (8 floats).