NASA World Wind

gov.nasa.worldwind.layers
Class TextureTile

java.lang.Object
  extended by gov.nasa.worldwind.util.Tile
      extended by gov.nasa.worldwind.layers.TextureTile
All Implemented Interfaces:
Cacheable, SurfaceTile, java.lang.Comparable<Tile>

public class TextureTile
extends Tile
implements SurfaceTile


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)
           
 Extent getExtent(DrawContext dc)
           
 TextureTile getFallbackTile()
           
 double getMinDistanceToEye()
           
 long getSizeInBytes()
          Retrieves the approximate size of this object in bytes.
 Texture getTexture(TextureCache tc)
           
 TextureData getTextureData()
           
 int hashCode()
           
 boolean isTextureInMemory(TextureCache tc)
           
 void setFallbackTile(TextureTile fallbackTile)
           
 void setMinDistanceToEye(double minDistanceToEye)
           
 void setTexture(TextureCache tc, Texture texture)
           
 void setTextureData(TextureData textureData)
           
 java.lang.String toString()
           
 
Methods inherited from class gov.nasa.worldwind.util.Tile
compareTo, computeColumn, computeColumnLongitude, computeRow, computeRowLatitude, getCacheName, getColumn, getFormatSuffix, getLabel, getLevel, getLevelName, getLevelNumber, getPath, getPathBase, getPriority, getResourceURL, getResourceURL, getRow, getSector, getTileKey, 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

TextureTile

public TextureTile(Sector sector)

TextureTile

public TextureTile(Sector sector,
                   Level level,
                   int row,
                   int col)
Method Detail

applyInternalTransform

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

bind

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

createSubTiles

public TextureTile[] createSubTiles(Level nextLevel)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Tile

getCentroidPoint

public Vec4 getCentroidPoint(Globe globe)

getExtent

public Extent getExtent(DrawContext dc)
Specified by:
getExtent in interface SurfaceTile

getFallbackTile

public TextureTile getFallbackTile()

getMinDistanceToEye

public double getMinDistanceToEye()

getSizeInBytes

public final long getSizeInBytes()
Description copied from interface: Cacheable
Retrieves the approximate size of this object in bytes. Implementors are encouraged to calculate the exact size for smaller objects, but use approximate values for objects that include such large components that the approximation would produce an error so small that the extra computation would be wasteful.

Specified by:
getSizeInBytes in interface Cacheable
Overrides:
getSizeInBytes in class Tile
Returns:
this Cacheable object's size in bytes

getTexture

public Texture getTexture(TextureCache tc)

getTextureData

public TextureData getTextureData()

hashCode

public int hashCode()
Overrides:
hashCode in class Tile

isTextureInMemory

public boolean isTextureInMemory(TextureCache tc)

setFallbackTile

public void setFallbackTile(TextureTile fallbackTile)

setMinDistanceToEye

public void setMinDistanceToEye(double minDistanceToEye)

setTexture

public void setTexture(TextureCache tc,
                       Texture texture)

setTextureData

public void setTextureData(TextureData textureData)

toString

public java.lang.String toString()
Overrides:
toString in class Tile

NASA World Wind