NASA World Wind

gov.nasa.worldwind.render
Class AnnotationTexture

java.lang.Object
  extended by gov.nasa.worldwind.render.AnnotationTexture
All Implemented Interfaces:
Cacheable

public class AnnotationTexture
extends Object
implements Cacheable

TODO: this may be a general use class. Simplify it as a subclass of BasicWWTexture, then look for a general use pattern.


Constructor Summary
AnnotationTexture(Object source)
           
 
Method Summary
 void applyTransform(DrawContext dc)
           
 boolean bind(DrawContext dc)
           
protected  int[] getImageDimensionsFromSource()
           
protected  BufferedImage getImageFromSource()
           
 long getSizeInBytes()
          Retrieves the approximate size of this object in bytes.
protected  long getSizeOfSource()
           
 Object getSource()
           
 int[] getSourceDimensions()
           
 com.sun.opengl.util.texture.Texture getTexture(DrawContext dc)
           
protected  com.sun.opengl.util.texture.Texture getTexture(TextureCache cache)
           
protected  com.sun.opengl.util.texture.Texture initializeTexture(DrawContext dc)
           
protected  void setTexture(TextureCache cache, com.sun.opengl.util.texture.Texture t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationTexture

public AnnotationTexture(Object source)
Method Detail

applyTransform

public void applyTransform(DrawContext dc)

bind

public boolean bind(DrawContext dc)

getImageDimensionsFromSource

protected int[] getImageDimensionsFromSource()

getImageFromSource

protected BufferedImage getImageFromSource()

getSizeInBytes

public 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
Returns:
this Cacheable object's size in bytes

getSizeOfSource

protected long getSizeOfSource()

getSource

public Object getSource()

getSourceDimensions

public int[] getSourceDimensions()

getTexture

public com.sun.opengl.util.texture.Texture getTexture(DrawContext dc)

getTexture

protected com.sun.opengl.util.texture.Texture getTexture(TextureCache cache)

initializeTexture

protected com.sun.opengl.util.texture.Texture initializeTexture(DrawContext dc)

setTexture

protected void setTexture(TextureCache cache,
                          com.sun.opengl.util.texture.Texture t)

NASA World Wind

Hosted by docs.bugaco.com