|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.render.FramebufferTexture
public class FramebufferTexture
| Field Summary | |
|---|---|
protected java.util.List<LatLon> |
corners
|
protected static int |
DEFAULT_TESSELLATION_DENSITY
|
protected int |
height
|
protected Sector |
sector
|
protected WWTexture |
sourceTexture
|
protected int |
tessellationDensity
|
protected com.sun.opengl.util.texture.TextureCoords |
textureCoords
|
protected int |
width
|
| Constructor Summary | |
|---|---|
FramebufferTexture(DrawContext dc,
WWTexture imageSource,
Sector sector,
java.util.List<LatLon> corners)
|
|
| Method Summary | |
|---|---|
void |
applyInternalTransform(DrawContext dc)
Applies any necessary transformations to the texture prior to its being rendered. |
boolean |
bind(DrawContext dc)
Makes the texture the current texture for rendering. |
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)
|
java.util.List<LatLon> |
getCorners()
|
int |
getHeight(DrawContext dc)
Returns the texture's height |
java.lang.Object |
getImageSource()
Returns the texture's image source. |
Sector |
getSector()
|
protected int |
getTessellationDensity()
|
com.sun.opengl.util.texture.TextureCoords |
getTexCoords()
Returns the texture's texture coordinates, which may be other than [0,0],[1,1] if the texture size is not a power of two or the texture must be flipped when rendered. |
int |
getWidth(DrawContext dc)
Returns the texture's width. |
protected void |
initialize(DrawContext dc)
|
protected com.sun.opengl.util.texture.Texture |
initializeTexture(DrawContext dc)
|
boolean |
isTextureCurrent(DrawContext dc)
Indicates whether the texture is currently available for use without regenerating it from its image source. |
boolean |
isTextureInitializationFailed()
Indicates whether an attempt to initialize the texture failed, which occurs when the image source is a non-existent image file or for other reasons specific to the image source. |
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 |
|---|
protected java.util.List<LatLon> corners
protected static final int DEFAULT_TESSELLATION_DENSITY
protected int height
protected Sector sector
protected WWTexture sourceTexture
protected int tessellationDensity
protected com.sun.opengl.util.texture.TextureCoords textureCoords
protected int width
| Constructor Detail |
|---|
public FramebufferTexture(DrawContext dc,
WWTexture imageSource,
Sector sector,
java.util.List<LatLon> corners)
| Method Detail |
|---|
public void applyInternalTransform(DrawContext dc)
WWTexture
applyInternalTransform in interface WWTexturedc - the current draw context.public boolean bind(DrawContext dc)
WWTexture
bind in interface WWTexturedc - the current draw context.
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)
public java.util.List<LatLon> getCorners()
public int getHeight(DrawContext dc)
WWTexture
getHeight in interface WWTexturedc - the current draw context
public java.lang.Object getImageSource()
WWTexture
getImageSource in interface WWTexturepublic Sector getSector()
protected int getTessellationDensity()
public com.sun.opengl.util.texture.TextureCoords getTexCoords()
WWTexture
getTexCoords in interface WWTexturepublic int getWidth(DrawContext dc)
WWTexture
getWidth in interface WWTexturedc - the current draw context
protected void initialize(DrawContext dc)
protected com.sun.opengl.util.texture.Texture initializeTexture(DrawContext dc)
public boolean isTextureCurrent(DrawContext dc)
WWTexture
isTextureCurrent in interface WWTexturedc - the current draw context
public boolean isTextureInitializationFailed()
WWTexture
isTextureInitializationFailed in interface WWTexture
protected Vec4 transformToQuadCoordinates(Matrix geoToCartesian,
LatLon latLon)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||