Package org.oscim.layers.tile
Class TileRenderer
java.lang.Object
org.oscim.renderer.LayerRenderer
org.oscim.layers.tile.TileRenderer
- Direct Known Subclasses:
S3DBTileLayer.S3DBTileRenderer,VectorTileRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final floatfade-in timeprotected static final intprotected final TileSetprotected floatprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic longgetMinFade(MapTile tile, int proxyLevel) booleangetVisibleTiles(TileSet tileSet) Update tileSet with currently visible tiles to get a TileSet of currently visible tiles.getVisibleTiles(TileSet tileSet, boolean replace) Update tileSet with currently visible tiles to get a TileSet of currently visible tiles.voidreleaseTiles(TileSet tileSet) voidsetBitmapAlpha(float alpha) ThreadsafevoidsetOverdrawColor(int color) Threadsafeprotected voidsetTileManager(TileManager tileManager) voidupdate(GLViewport v) synced with clearTiles, setOverdrawColor and setBitmapAlphaMethods inherited from class org.oscim.renderer.LayerRenderer
isReady, render, setReady, setup
-
Field Details
-
FADE_TIME
protected static final float FADE_TIMEfade-in time- See Also:
-
MAX_TILE_LOAD
protected static final int MAX_TILE_LOAD- See Also:
-
mDrawTiles
-
mProxyTileCnt
protected int mProxyTileCnt -
mOverdrawColor
protected int mOverdrawColor -
mLayerAlpha
protected float mLayerAlpha
-
-
Constructor Details
-
TileRenderer
public TileRenderer()
-
-
Method Details
-
setTileManager
-
setOverdrawColor
public void setOverdrawColor(int color) Threadsafe -
setBitmapAlpha
public void setBitmapAlpha(float alpha) Threadsafe -
update
synced with clearTiles, setOverdrawColor and setBitmapAlpha- Specified by:
updatein classLayerRenderer
-
clearTiles
public void clearTiles() -
getVisibleTiles
Update tileSet with currently visible tiles to get a TileSet of currently visible tiles. -
getVisibleTiles
Update tileSet with currently visible tiles to get a TileSet of currently visible tiles. Replace tiles with ancestor (parent, etc.) if tiles are not loaded yet.- Returns:
- original zoom level, otherwise null (if nothing can be loaded)
-
releaseTiles
-
getMinFade
- Parameters:
proxyLevel- zoom-level of tile relative to current TileSet
-