Package org.oscim.renderer.bucket
Class ExtrusionBucket
java.lang.Object
org.oscim.utils.pool.Inlist<RenderBucket>
org.oscim.renderer.bucket.RenderBucket
org.oscim.renderer.bucket.ExtrusionBucket
-
Nested Class Summary
Nested classes/interfaces inherited from class org.oscim.utils.pool.Inlist
Inlist.List<T extends Inlist<?>> -
Field Summary
FieldsFields inherited from class org.oscim.renderer.bucket.RenderBucket
BITMAP, CIRCLE, EXTRUSION, HAIRLINE, indiceItems, indiceOffset, LINE, MESH, numIndices, numVertices, POLYGON, SYMBOL, TEXLINE, type, vertexItems, vertexOffset -
Constructor Summary
ConstructorsConstructorDescriptionExtrusionBucket(int level, float groundResolution, float[] colors) ExtrusionLayer for polygon geometries.ExtrusionBucket(int level, float groundResolution, int color) ExtrusionLayer for triangle geometries / meshes. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMesh(GeometryBuffer element) Add MapElement which provides meshesvoidaddPoly(GeometryBuffer element, float height, float minHeight) Add MapElement which provides polygonsvoidclear()Clear all resources.voidcompile(ShortBuffer vboData, ShortBuffer iboData) intgetColor()float[]next()protected voidprepare()Final preparation of content before compilation for stuff that should not be done on render-thread.Methods inherited from class org.oscim.renderer.bucket.RenderBucket
compileIndicesItems, compileVertexItems, getIndiceOffset, getVertexOffset, setLevel, setVertexOffsetMethods inherited from class org.oscim.utils.pool.Inlist
appendItem, appendList, get, last, prependRelative, push, remove, size
-
Field Details
-
idx
public int[] idxindices for: 0. even sides, 1. odd sides, 2. roof, 3. roof outline, 4. mesh -
off
public int[] offindices offsets in bytes
-
-
Constructor Details
-
ExtrusionBucket
public ExtrusionBucket(int level, float groundResolution, float[] colors) ExtrusionLayer for polygon geometries. -
ExtrusionBucket
public ExtrusionBucket(int level, float groundResolution, int color) ExtrusionLayer for triangle geometries / meshes.
-
-
Method Details
-
addMesh
Add MapElement which provides meshes- Parameters:
element- the map element to add
-
addPoly
Add MapElement which provides polygons- Parameters:
element- the map element to addheight- the maximum height of elementminHeight- the minimum height of element
-
compile
- Overrides:
compilein classRenderBucket
-
clear
public void clear()Description copied from class:RenderBucketClear all resources.- Overrides:
clearin classRenderBucket
-
getColors
public float[] getColors()- Returns:
- the polygon colors (top, side, side, line)
-
getColor
public int getColor()- Returns:
- the mesh color
-
prepare
protected void prepare()Description copied from class:RenderBucketFinal preparation of content before compilation for stuff that should not be done on render-thread.- Overrides:
preparein classRenderBucket
-
next
- Overrides:
nextin classInlist<RenderBucket>
-