NASA World Wind

gov.nasa.worldwind.render
Class FramebufferTexture

java.lang.Object
  extended by gov.nasa.worldwind.render.FramebufferTexture
All Implemented Interfaces:
WWTexture
Direct Known Subclasses:
FBOTexture

public class FramebufferTexture
extends Object
implements WWTexture


Field Summary
protected  List<LatLon> corners
           
protected static int DEFAULT_TESSELLATION_DENSITY
           
protected  int height
           
protected  Sector sector
           
protected  WWTexture sourceTexture
           
protected  int tessellationDensity
           
protected  int width
           
 
Constructor Summary
FramebufferTexture(DrawContext dc, WWTexture imageSource, Sector sector, List<LatLon> corners)
           
 
Method Summary
 void applyInternalTransform(DrawContext dc)
           
 boolean bind(DrawContext dc)
           
protected  Matrix computeGeographicToCartesianTransform(Sector sector)
           
protected  void drawQuad(DrawContext dc, BilinearInterpolator interp, int slices, int stacks)
           
protected  void drawQuad(DrawContext dc, Matrix geoToCartesian, int slices, int stacks)
           
protected  void generateTexture(DrawContext dc, int width, int height)
           
 List<LatLon> getCorners()
           
 int getHeight()
           
 Object getImageSource()
           
 Sector getSector()
           
protected  int getTessellationDensity()
           
 int getWidth()
           
protected  void initialize(DrawContext dc)
           
protected  Texture initializeTexture(DrawContext dc)
           
 boolean isTextureCurrent(DrawContext dc)
           
protected  Vec4 transformToQuadCoordinates(Matrix geoToCartesian, LatLon latLon)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

corners

protected List<LatLon> corners

DEFAULT_TESSELLATION_DENSITY

protected static final int DEFAULT_TESSELLATION_DENSITY
See Also:
Constant Field Values

height

protected int height

sector

protected Sector sector

sourceTexture

protected WWTexture sourceTexture

tessellationDensity

protected int tessellationDensity

width

protected int width
Constructor Detail

FramebufferTexture

public FramebufferTexture(DrawContext dc,
                          WWTexture imageSource,
                          Sector sector,
                          List<LatLon> corners)
Method Detail

applyInternalTransform

public void applyInternalTransform(DrawContext dc)
Specified by:
applyInternalTransform in interface WWTexture

bind

public boolean bind(DrawContext dc)
Specified by:
bind in interface WWTexture

computeGeographicToCartesianTransform

protected Matrix computeGeographicToCartesianTransform(Sector sector)

drawQuad

protected void drawQuad(DrawContext dc,
                        BilinearInterpolator interp,
                        int slices,
                        int stacks)

drawQuad

protected void drawQuad(DrawContext dc,
                        Matrix geoToCartesian,
                        int slices,
                        int stacks)

generateTexture

protected void generateTexture(DrawContext dc,
                               int width,
                               int height)

getCorners

public List<LatLon> getCorners()

getHeight

public int getHeight()
Specified by:
getHeight in interface WWTexture

getImageSource

public Object getImageSource()
Specified by:
getImageSource in interface WWTexture

getSector

public Sector getSector()

getTessellationDensity

protected int getTessellationDensity()

getWidth

public int getWidth()
Specified by:
getWidth in interface WWTexture

initialize

protected void initialize(DrawContext dc)

initializeTexture

protected Texture initializeTexture(DrawContext dc)

isTextureCurrent

public boolean isTextureCurrent(DrawContext dc)
Specified by:
isTextureCurrent in interface WWTexture

transformToQuadCoordinates

protected Vec4 transformToQuadCoordinates(Matrix geoToCartesian,
                                          LatLon latLon)

NASA World Wind