Package org.oscim.layers.tile.vector
Class VectorTileLoader
java.lang.Object
java.lang.Thread
org.oscim.utils.PausableThread
org.oscim.layers.tile.TileLoader
org.oscim.layers.tile.vector.VectorTileLoader
- All Implemented Interfaces:
Runnable,RenderStyle.Callback,ITileDataSink
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final byteprotected RenderBucketsprotected intCurrent bucket for adding elementsprotected LineBucketcurrent line bucket (will be used for outline bucket)protected MapElementcurrently processed MapElementprotected floatLine-scale-factor depending on zoom and latitudeprotected ITileDataSourcecurrent TileDataSource used by this MapTileLoaderprotected IRenderThemeprotected static final doublestatic final bytestatic booleanFields inherited from class org.oscim.layers.tile.TileLoader
mTileFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()protected voidvoidcompleted(QueryResult result) Callback to be called by TileDataSource when finished loading or on failure.voiddispose()protected TagSetfilterTags(TagSet tagSet) Override this method to change tags that should be passed toRenderThemematching.protected static intgetValidLayer(int layer) booleanvoidprocess(MapElement element) Called by TileDataSourcevoidrenderArea(AreaStyle area, int level) Renders an area with the given parameters.voidrenderCircle(CircleStyle circle, int level) Renders a point of interest circle with the given parameters.voidrenderExtrusion(ExtrusionStyle extrusion, int level) Renders an extrusion with the given parameters.protected voidrenderNode(RenderStyle[] style) voidrenderSymbol(SymbolStyle symbol) Renders a point of interest symbol with the given bitmap.voidrenderText(TextStyle text) Renders a way with the given text along the way path.voidRenderThemeCallbackprotected voidrenderWay(RenderStyle[] style) voidsetDataSource(ITileDataSource dataSource) Methods inherited from class org.oscim.layers.tile.TileLoader
doWork, getThreadName, getThreadPriority, go, hasWork, setTileImageMethods inherited from class org.oscim.utils.PausableThread
afterPause, afterRun, awaitPausing, finish, isCanceled, isPausing, pause, proceed, runMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
STROKE_INCREASE
protected static final double STROKE_INCREASE- See Also:
-
LAYERS
protected static final byte LAYERS- See Also:
-
STROKE_MIN_ZOOM
public static final byte STROKE_MIN_ZOOM- See Also:
-
renderTheme
-
mTileDataSource
current TileDataSource used by this MapTileLoader -
mElement
currently processed MapElement -
mCurLineBucket
current line bucket (will be used for outline bucket) -
mCurBucket
protected int mCurBucketCurrent bucket for adding elements -
mLineScale
protected float mLineScaleLine-scale-factor depending on zoom and latitude -
mBuckets
-
USE_MESH_POLY
public static boolean USE_MESH_POLY
-
-
Constructor Details
-
VectorTileLoader
-
-
Method Details
-
dispose
public void dispose()- Specified by:
disposein classTileLoader
-
cancel
public void cancel()- Specified by:
cancelin classTileLoader
-
loadTile
- Specified by:
loadTilein classTileLoader
-
completed
Description copied from class:TileLoaderCallback to be called by TileDataSource when finished loading or on failure. MUST BE CALLED IN ANY CASE!- Specified by:
completedin interfaceITileDataSink- Overrides:
completedin classTileLoader
-
getValidLayer
protected static int getValidLayer(int layer) -
setDataSource
-
filterTags
Override this method to change tags that should be passed toRenderThemematching. E.g. to replace tags that should not be cached in Rendertheme -
process
Description copied from class:TileLoaderCalled by TileDataSource- Specified by:
processin interfaceITileDataSink- Overrides:
processin classTileLoader
-
renderWay
-
renderNode
-
clearState
protected void clearState() -
renderWay
RenderThemeCallback- Specified by:
renderWayin interfaceRenderStyle.Callback
-
renderArea
Description copied from interface:RenderStyle.CallbackRenders an area with the given parameters.- Specified by:
renderAreain interfaceRenderStyle.Callback
-
renderSymbol
Description copied from interface:RenderStyle.CallbackRenders a point of interest symbol with the given bitmap.- Specified by:
renderSymbolin interfaceRenderStyle.Callback- Parameters:
symbol- the symbol to be rendered.
-
renderExtrusion
Description copied from interface:RenderStyle.CallbackRenders an extrusion with the given parameters.- Specified by:
renderExtrusionin interfaceRenderStyle.Callback
-
renderCircle
Description copied from interface:RenderStyle.CallbackRenders a point of interest circle with the given parameters.- Specified by:
renderCirclein interfaceRenderStyle.Callback- Parameters:
circle- the circle.level- the drawing level on which the circle should be rendered.
-
renderText
Description copied from interface:RenderStyle.CallbackRenders a way with the given text along the way path.- Specified by:
renderTextin interfaceRenderStyle.Callback
-