public abstract class SurfaceTileRenderer extends java.lang.Object implements Disposable
Modifier and Type | Class and Description |
---|---|
protected static class |
SurfaceTileRenderer.Transform |
Modifier and Type | Field and Description |
---|---|
protected com.jogamp.opengl.util.texture.Texture |
alphaTexture |
protected com.jogamp.opengl.util.texture.Texture |
outlineTexture |
protected boolean |
showImageTileOutlines |
protected boolean |
useImageTilePickColors |
Constructor and Description |
---|
SurfaceTileRenderer() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
computeTextureTransform(DrawContext dc,
SurfaceTile tile,
SurfaceTileRenderer.Transform t) |
void |
dispose()
Free internal resources held by this surface tile renderer.
|
protected abstract java.lang.Iterable<SurfaceTile> |
getIntersectingTiles(DrawContext dc,
SectorGeometry sg,
java.lang.Iterable<? extends SurfaceTile> tiles) |
protected void |
initAlphaTexture(DrawContext dc,
int size) |
protected void |
initOutlineTexture(DrawContext dc,
int size) |
boolean |
isShowImageTileOutlines() |
boolean |
isUseImageTilePickColors()
Indicates how this SurfaceTileRenderer interprets image tile colors during picking.
|
protected abstract void |
preComputeTextureTransform(DrawContext dc,
SectorGeometry sg,
SurfaceTileRenderer.Transform t) |
void |
renderTile(DrawContext dc,
SurfaceTile tile) |
void |
renderTiles(DrawContext dc,
java.lang.Iterable<? extends SurfaceTile> tiles) |
void |
setShowImageTileOutlines(boolean showImageTileOutlines) |
void |
setUseImageTilePickColors(boolean useImageTilePickColors)
Specifies how this SurfaceTileRenderer interprets image tile colors during picking.
|
protected com.jogamp.opengl.util.texture.Texture alphaTexture
protected com.jogamp.opengl.util.texture.Texture outlineTexture
protected boolean showImageTileOutlines
protected boolean useImageTilePickColors
protected abstract void computeTextureTransform(DrawContext dc, SurfaceTile tile, SurfaceTileRenderer.Transform t)
public void dispose()
dispose
in interface Disposable
com.jogamp.opengl.GLException
- - If an OpenGL context is not current when this method is called.protected abstract java.lang.Iterable<SurfaceTile> getIntersectingTiles(DrawContext dc, SectorGeometry sg, java.lang.Iterable<? extends SurfaceTile> tiles)
protected void initAlphaTexture(DrawContext dc, int size)
protected void initOutlineTexture(DrawContext dc, int size)
public boolean isShowImageTileOutlines()
public boolean isUseImageTilePickColors()
protected abstract void preComputeTextureTransform(DrawContext dc, SectorGeometry sg, SurfaceTileRenderer.Transform t)
public void renderTile(DrawContext dc, SurfaceTile tile)
public void renderTiles(DrawContext dc, java.lang.Iterable<? extends SurfaceTile> tiles)
public void setShowImageTileOutlines(boolean showImageTileOutlines)
public void setUseImageTilePickColors(boolean useImageTilePickColors)
useImageTilePickColors
- true if image tile RGB colors should be drawn during picking, false if image tile
RGB colors should be replaced by the current RGB color.