Package org.oscim.renderer.bucket
Class ExtrusionBuckets
java.lang.Object
org.oscim.utils.pool.Inlist<MapTile.TileData>
org.oscim.layers.tile.MapTile.TileData
org.oscim.renderer.bucket.ExtrusionBuckets
-
Nested Class Summary
Nested classes/interfaces inherited from class org.oscim.utils.pool.Inlist
Inlist.List<T extends Inlist<?>> -
Field Summary
FieldsModifier and TypeFieldDescriptionlongbooleanfinal doublefinal doublefinal int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMeshElement(GeometryBuffer element, float groundScale, int color) Add mesh element to corresponding ExtrusionBucketvoidaddPolyElement(GeometryBuffer element, float groundScale, float[] colors, int height, int minHeight) Add poly element to corresponding ExtrusionBucketbuckets()Get root bucketbooleancompile()protected voiddispose()voidprepare()voidSet new ExtrusionBuckets and clear previous.Methods inherited from class org.oscim.layers.tile.MapTile.TileData
nextMethods inherited from class org.oscim.utils.pool.Inlist
appendItem, appendList, get, last, prependRelative, push, remove, size
-
Field Details
-
buckets
-
compiled
public boolean compiled -
animTime
public long animTime -
zoomLevel
public final int zoomLevel -
x
public final double x -
y
public final double y -
ibo
-
vbo
-
-
Constructor Details
-
ExtrusionBuckets
-
-
Method Details
-
addMeshElement
Add mesh element to corresponding ExtrusionBucket- Parameters:
element- the MapElement as meshgroundScale- the scale of groundcolor- the color of element
-
addPolyElement
public void addPolyElement(GeometryBuffer element, float groundScale, float[] colors, int height, int minHeight) Add poly element to corresponding ExtrusionBucket- Parameters:
element- the MapElement as polygongroundScale- the scale of groundcolors- the colors (top, side, side, line) of elementheight- the height of extrusionminHeight- the minimum height of extrusion
-
resetBuckets
Set new ExtrusionBuckets and clear previous. -
buckets
Get root bucket -
dispose
protected void dispose()- Specified by:
disposein classMapTile.TileData
-
prepare
public void prepare() -
compile
public boolean compile()
-