|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.util.Tile
gov.nasa.worldwind.layers.TextureTile
public class TextureTile
This class manages the conversion and timing of image data to a JOGL Texture, and provides an interface for binding the texture and applying any texture transforms to align the texture and texture coordinates.
| Constructor Summary | |
|---|---|
TextureTile(Sector sector)
|
|
TextureTile(Sector sector,
Level level,
int row,
int col)
|
|
| Method Summary | |
|---|---|
void |
applyInternalTransform(DrawContext dc)
|
boolean |
bind(DrawContext dc)
|
TextureTile[] |
createSubTiles(Level nextLevel)
|
boolean |
equals(java.lang.Object o)
|
Vec4 |
getCentroidPoint(Globe globe)
|
java.util.List<? extends LatLon> |
getCorners()
|
Extent |
getExtent(DrawContext dc)
|
TextureTile |
getFallbackTile()
|
static MemoryCache |
getMemoryCache()
Returns the memory cache used to cache tiles for this class and its subclasses, initializing the cache if it doesn't yet exist. |
long |
getSizeInBytes()
Retrieves the approximate size of this object in bytes. |
com.sun.opengl.util.texture.Texture |
getTexture(TextureCache tc)
|
com.sun.opengl.util.texture.TextureData |
getTextureData()
Returns the texture data most recently specified for the tile. |
int |
hashCode()
|
protected com.sun.opengl.util.texture.Texture |
initializeTexture(DrawContext dc)
|
boolean |
isTextureExpired()
|
boolean |
isTextureExpired(long expiryTime)
|
boolean |
isTextureInMemory(TextureCache tc)
|
void |
setFallbackTile(TextureTile fallbackTile)
|
void |
setTexture(TextureCache tc,
com.sun.opengl.util.texture.Texture texture)
|
void |
setTextureData(com.sun.opengl.util.texture.TextureData textureData)
Specifies new texture data for the tile. |
protected void |
setTextureParameters(DrawContext dc,
com.sun.opengl.util.texture.Texture t)
|
java.lang.String |
toString()
|
| Methods inherited from class gov.nasa.worldwind.util.Tile |
|---|
compareTo, computeColumn, computeColumnLongitude, computeRow, computeRowLatitude, getCacheName, getColumn, getFormatSuffix, getHeight, getLabel, getLevel, getLevelName, getLevelNumber, getPath, getPathBase, getPriority, getResourceURL, getResourceURL, getRow, getSector, getTileKey, getWidth, setPriority |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gov.nasa.worldwind.render.SurfaceTile |
|---|
getSector |
| Constructor Detail |
|---|
public TextureTile(Sector sector)
public TextureTile(Sector sector,
Level level,
int row,
int col)
| Method Detail |
|---|
public void applyInternalTransform(DrawContext dc)
applyInternalTransform in interface SurfaceTilepublic boolean bind(DrawContext dc)
bind in interface SurfaceTilepublic TextureTile[] createSubTiles(Level nextLevel)
public boolean equals(java.lang.Object o)
equals in class Tilepublic Vec4 getCentroidPoint(Globe globe)
public java.util.List<? extends LatLon> getCorners()
getCorners in interface SurfaceTilepublic Extent getExtent(DrawContext dc)
getExtent in interface SurfaceTilepublic TextureTile getFallbackTile()
public static MemoryCache getMemoryCache()
public final long getSizeInBytes()
Cacheable
getSizeInBytes in interface CacheablegetSizeInBytes in class TileCacheable object's size in bytespublic com.sun.opengl.util.texture.Texture getTexture(TextureCache tc)
public com.sun.opengl.util.texture.TextureData getTextureData()
public int hashCode()
hashCode in class Tileprotected com.sun.opengl.util.texture.Texture initializeTexture(DrawContext dc)
public boolean isTextureExpired()
public boolean isTextureExpired(long expiryTime)
public boolean isTextureInMemory(TextureCache tc)
public void setFallbackTile(TextureTile fallbackTile)
public void setTexture(TextureCache tc,
com.sun.opengl.util.texture.Texture texture)
public void setTextureData(com.sun.opengl.util.texture.TextureData textureData)
textureData - the texture data, which may be null.
protected void setTextureParameters(DrawContext dc,
com.sun.opengl.util.texture.Texture t)
public java.lang.String toString()
toString in class Tile
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||