Package gov.nasa.worldwind.render
Class SurfaceTileRenderer
- java.lang.Object
-
- gov.nasa.worldwind.render.SurfaceTileRenderer
-
- All Implemented Interfaces:
Disposable
- Direct Known Subclasses:
GeographicSurfaceTileRenderer
public abstract class SurfaceTileRenderer extends java.lang.Object implements Disposable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
SurfaceTileRenderer.Transform
-
Field Summary
Fields Modifier and Type Field Description protected com.jogamp.opengl.util.texture.Texture
alphaTexture
protected com.jogamp.opengl.util.texture.Texture
outlineTexture
protected boolean
showImageTileOutlines
protected boolean
useImageTilePickColors
-
Constructor Summary
Constructors Constructor Description SurfaceTileRenderer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
dispose
public void dispose()
Free internal resources held by this surface tile renderer. A GL context must be current when this method is called.- Specified by:
dispose
in interfaceDisposable
- Throws:
com.jogamp.opengl.GLException
- - If an OpenGL context is not current when this method is called.
-
isShowImageTileOutlines
public boolean isShowImageTileOutlines()
-
setShowImageTileOutlines
public void setShowImageTileOutlines(boolean showImageTileOutlines)
-
isUseImageTilePickColors
public boolean isUseImageTilePickColors()
Indicates how this SurfaceTileRenderer interprets image tile colors during picking. When true, image tile RGB colors are drawn during picking. When false, image tile RGB colors are replaced with the current RGB color. Initially false.- Returns:
- true if image tile RGB colors are drawn during picking, false if image tile RGB colors are replaced by the current RGB color.
-
setUseImageTilePickColors
public void setUseImageTilePickColors(boolean useImageTilePickColors)
Specifies how this SurfaceTileRenderer interprets image tile colors during picking. When true, image tile RGB colors are drawn during picking. When false, image tile RGB colors are replaced with the current RGB color.- Parameters:
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.
-
renderTile
public void renderTile(DrawContext dc, SurfaceTile tile)
-
preComputeTextureTransform
protected abstract void preComputeTextureTransform(DrawContext dc, SectorGeometry sg, SurfaceTileRenderer.Transform t)
-
computeTextureTransform
protected abstract void computeTextureTransform(DrawContext dc, SurfaceTile tile, SurfaceTileRenderer.Transform t)
-
getIntersectingTiles
protected abstract java.lang.Iterable<SurfaceTile> getIntersectingTiles(DrawContext dc, SectorGeometry sg, java.lang.Iterable<? extends SurfaceTile> tiles)
-
renderTiles
public void renderTiles(DrawContext dc, java.lang.Iterable<? extends SurfaceTile> tiles)
-
initAlphaTexture
protected void initAlphaTexture(DrawContext dc, int size)
-
initOutlineTexture
protected void initOutlineTexture(DrawContext dc, int size)
-
-