Package org.oscim.renderer.bucket
Class LineBucket
java.lang.Object
org.oscim.utils.pool.Inlist<RenderBucket>
org.oscim.renderer.bucket.RenderBucket
org.oscim.renderer.bucket.LineBucket
- Direct Known Subclasses:
LineTexBucket
Note:
Coordinates must be in range +/- (Short.MAX_VALUE / COORD_SCALE) if using GL.SHORT.
The maximum resolution for coordinates is 0.25 as points will be converted
to fixed point values.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.oscim.utils.pool.Inlist
Inlist.List<T extends Inlist<?>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatscale factor mapping extrusion vector to short valuesfloatstatic final floatmaximal resolutionbooleanfloatFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLine(float[] points, int numPoints, boolean closed) voidaddLine(GeometryBuffer geom) voidaddOutline(LineBucket link) voidsetBevelDistance(float minBevel) Default is MIN_DIST * 4 = 1/8 * 4.voidsetDropDistance(float minDist) For point reduction by minimal distance.voidsetExtents(int min, int max) Methods inherited from class org.oscim.renderer.bucket.RenderBucket
clear, compile, compileIndicesItems, compileVertexItems, getIndiceOffset, getVertexOffset, prepare, setLevel, setVertexOffsetMethods inherited from class org.oscim.utils.pool.Inlist
appendItem, appendList, get, last, next, prependRelative, push, remove, size
-
Field Details
-
DIR_SCALE
public static final float DIR_SCALEscale factor mapping extrusion vector to short values- See Also:
-
MIN_DIST
public static final float MIN_DISTmaximal resolution- See Also:
-
outlines
-
line
-
scale
public float scale -
roundCap
public boolean roundCap -
heightOffset
public float heightOffset
-
-
Constructor Details
-
LineBucket
public LineBucket(int layer)
-
-
Method Details
-
addOutline
-
setExtents
public void setExtents(int min, int max) -
setDropDistance
public void setDropDistance(float minDist) For point reduction by minimal distance. Default is 1/8. -
setBevelDistance
public void setBevelDistance(float minBevel) Default is MIN_DIST * 4 = 1/8 * 4. -
addLine
-
addLine
public void addLine(float[] points, int numPoints, boolean closed)
-