NASA World Wind

gov.nasa.worldwind.render
Class SurfaceTileRenderer

java.lang.Object
  extended by gov.nasa.worldwind.render.SurfaceTileRenderer
All Implemented Interfaces:
Disposable
Direct Known Subclasses:
GeographicSurfaceTileRenderer

public abstract class SurfaceTileRenderer
extends Object
implements Disposable


Nested Class Summary
protected static class SurfaceTileRenderer.Transform
           
 
Field Summary
protected  Texture alphaTexture
           
protected  Texture outlineTexture
           
 
Constructor Summary
SurfaceTileRenderer()
           
 
Method Summary
protected abstract  void computeTextureTransform(DrawContext dc, SurfaceTile tile, SurfaceTileRenderer.Transform t)
           
 void dispose()
          Free internal resources held by this surface tile renderer.
protected abstract  Iterable<SurfaceTile> getIntersectingTiles(DrawContext dc, SectorGeometry sg, Iterable<? extends SurfaceTile> tiles)
           
protected  void initAlphaTexture(int size)
           
protected  void initOutlineTexture(int size)
           
 boolean isShowImageTileOutlines()
           
protected abstract  void preComputeTextureTransform(DrawContext dc, SectorGeometry sg, SurfaceTileRenderer.Transform t)
           
 void renderTile(DrawContext dc, SurfaceTile tile)
           
 void renderTiles(DrawContext dc, Iterable<? extends SurfaceTile> tiles)
           
 void setShowImageTileOutlines(boolean showImageTileOutlines)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alphaTexture

protected Texture alphaTexture

outlineTexture

protected Texture outlineTexture
Constructor Detail

SurfaceTileRenderer

public SurfaceTileRenderer()
Method Detail

computeTextureTransform

protected abstract void computeTextureTransform(DrawContext dc,
                                                SurfaceTile tile,
                                                SurfaceTileRenderer.Transform t)

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 interface Disposable
Throws:
GLException - - If an OpenGL context is not current when this method is called.

getIntersectingTiles

protected abstract Iterable<SurfaceTile> getIntersectingTiles(DrawContext dc,
                                                              SectorGeometry sg,
                                                              Iterable<? extends SurfaceTile> tiles)

initAlphaTexture

protected void initAlphaTexture(int size)

initOutlineTexture

protected void initOutlineTexture(int size)

isShowImageTileOutlines

public boolean isShowImageTileOutlines()

preComputeTextureTransform

protected abstract void preComputeTextureTransform(DrawContext dc,
                                                   SectorGeometry sg,
                                                   SurfaceTileRenderer.Transform t)

renderTile

public void renderTile(DrawContext dc,
                       SurfaceTile tile)

renderTiles

public void renderTiles(DrawContext dc,
                        Iterable<? extends SurfaceTile> tiles)

setShowImageTileOutlines

public void setShowImageTileOutlines(boolean showImageTileOutlines)

NASA World Wind