public class MapTile extends Tile
| Modifier and Type | Class and Description |
|---|---|
static class |
MapTile.State |
static class |
MapTile.TileData |
static class |
MapTile.TileNode |
| Modifier and Type | Field and Description |
|---|---|
MapTile.TileData |
data
List of TileData for rendering.
|
float |
distance
current distance from map center
|
long |
fadeTime
Used for fade-effects
|
boolean |
isVisible
Tile is in view region.
|
MapTile.TileNode |
node
Pointer to access relatives in
TileIndex |
static int |
PROXY_CHILD00 |
static int |
PROXY_CHILD01 |
static int |
PROXY_CHILD10 |
static int |
PROXY_CHILD11 |
static int |
PROXY_GRAMPA |
static int |
PROXY_HOLDER |
static int |
PROXY_PARENT |
double |
x
absolute tile coordinates: tileX,Y / Math.pow(2, zoomLevel)
|
double |
y |
| Constructor and Description |
|---|
MapTile(int tileX,
int tileY,
int zoomLevel) |
MapTile(MapTile.TileNode node,
int tileX,
int tileY,
int zoomLevel) |
| Modifier and Type | Method and Description |
|---|---|
void |
addData(java.lang.Object id,
MapTile.TileData td) |
protected void |
clear()
CAUTION: This function may only be called
by
TileManager |
static int |
depthOffset(MapTile t) |
RenderBuckets |
getBuckets()
Get the default ElementLayers which are added
by
VectorTileLoader |
MapTile.TileData |
getData(java.lang.Object id) |
float |
getGroundScale() |
MapTile |
getParent() |
MapTile |
getProxy(int proxy,
byte state) |
MapTile |
getProxyChild(int id,
byte state) |
int |
getState() |
boolean |
hasProxy(int proxy)
Test whether it is save to access a proxy item
through this.node.*
|
boolean |
isActive() |
MapTile.TileData |
removeData(java.lang.Object id) |
void |
setState(byte newState) |
java.lang.String |
state() |
boolean |
state(int testState) |
calculateTileSize, equals, getBoundingBox, getBoundingBox, getMaxTileNumber, getOrigin, hashCode, toStringpublic static final int PROXY_CHILD00
public static final int PROXY_CHILD01
public static final int PROXY_CHILD10
public static final int PROXY_CHILD11
public static final int PROXY_PARENT
public static final int PROXY_GRAMPA
public static final int PROXY_HOLDER
public final double x
public final double y
public MapTile.TileData data
LabelTileLoaderHook.public final MapTile.TileNode node
TileIndexpublic float distance
public boolean isVisible
public long fadeTime
public MapTile(int tileX,
int tileY,
int zoomLevel)
public MapTile(MapTile.TileNode node, int tileX, int tileY, int zoomLevel)
public boolean state(int testState)
public int getState()
public boolean isActive()
public boolean hasProxy(int proxy)
protected void clear()
TileManagerpublic RenderBuckets getBuckets()
VectorTileLoaderpublic MapTile.TileData getData(java.lang.Object id)
public void addData(java.lang.Object id,
MapTile.TileData td)
public MapTile.TileData removeData(java.lang.Object id)
public static int depthOffset(MapTile t)
public float getGroundScale()
public MapTile getProxyChild(int id, byte state)
public MapTile getParent()
public MapTile getProxy(int proxy, byte state)
public java.lang.String state()
public void setState(byte newState)