NASA World Wind

gov.nasa.worldwind.render
Class AbstractSurfaceRenderable

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.render.AbstractSurfaceObject
          extended by gov.nasa.worldwind.render.AbstractSurfaceRenderable
All Implemented Interfaces:
AVList, PreRenderable, Renderable, SurfaceObject
Direct Known Subclasses:
SurfaceIcon

public abstract class AbstractSurfaceRenderable
extends AbstractSurfaceObject
implements PreRenderable, Renderable

Surface renderable.


Field Summary
protected  PickSupport pickSupport
           
protected  TiledSurfaceObjectRenderer renderer
           
protected  OGLOrtho2DSupport renderToTextureSupport
           
protected  OGLStateSupport stateSupport
           
 
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
lastModifiedTime, visible
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Constructor Summary
AbstractSurfaceRenderable()
           
 
Method Summary
protected  void applyNonPremultipliedAlphaColor(javax.media.opengl.GL gl, Color color, double opacity)
           
protected  void applyPremultipliedAlphaColor(javax.media.opengl.GL gl, Color color, double opacity)
           
protected  double computeDrawPixelSize(DrawContext dc, Sector sector, int width, int height)
           
protected  Vec4 computeDrawPoint(LatLon location, Sector sector, int x, int y, int width, int height)
           
protected  double computePixelSizeAtLocation(DrawContext dc, LatLon location)
           
protected  Sector computeRotatedSectorBounds(Sector sector, LatLon location, Angle heading)
           
abstract  void doRenderToRegion(DrawContext dc, Sector sector, int x, int y, int width, int height)
           
 double getOpacity()
           
protected  TiledSurfaceObjectRenderer getRenderer()
           
abstract  Iterable<? extends Sector> getSectors(DrawContext dc, double texelSizeRadians)
           
protected  Angle getViewHeading(DrawContext dc)
           
 void preRender(DrawContext dc)
           
 void render(DrawContext dc)
          Causes this Renderable to render itself using the DrawContext provided.
 void setOpacity(double opacity)
           
 
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
getLastModifiedTime, isVisible, renderToRegion, setVisible, updateModifiedTime
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 

Field Detail

pickSupport

protected final PickSupport pickSupport

renderer

protected TiledSurfaceObjectRenderer renderer

renderToTextureSupport

protected final OGLOrtho2DSupport renderToTextureSupport

stateSupport

protected final OGLStateSupport stateSupport
Constructor Detail

AbstractSurfaceRenderable

public AbstractSurfaceRenderable()
Method Detail

applyNonPremultipliedAlphaColor

protected void applyNonPremultipliedAlphaColor(javax.media.opengl.GL gl,
                                               Color color,
                                               double opacity)

applyPremultipliedAlphaColor

protected void applyPremultipliedAlphaColor(javax.media.opengl.GL gl,
                                            Color color,
                                            double opacity)

computeDrawPixelSize

protected double computeDrawPixelSize(DrawContext dc,
                                      Sector sector,
                                      int width,
                                      int height)

computeDrawPoint

protected Vec4 computeDrawPoint(LatLon location,
                                Sector sector,
                                int x,
                                int y,
                                int width,
                                int height)

computePixelSizeAtLocation

protected double computePixelSizeAtLocation(DrawContext dc,
                                            LatLon location)

computeRotatedSectorBounds

protected Sector computeRotatedSectorBounds(Sector sector,
                                            LatLon location,
                                            Angle heading)

doRenderToRegion

public abstract void doRenderToRegion(DrawContext dc,
                                      Sector sector,
                                      int x,
                                      int y,
                                      int width,
                                      int height)
Specified by:
doRenderToRegion in class AbstractSurfaceObject

getOpacity

public double getOpacity()

getRenderer

protected TiledSurfaceObjectRenderer getRenderer()

getSectors

public abstract Iterable<? extends Sector> getSectors(DrawContext dc,
                                                      double texelSizeRadians)
Specified by:
getSectors in interface SurfaceObject

getViewHeading

protected Angle getViewHeading(DrawContext dc)

preRender

public void preRender(DrawContext dc)
Specified by:
preRender in interface PreRenderable

render

public void render(DrawContext dc)
Description copied from interface: Renderable
Causes this Renderable to render itself using the DrawContext provided. The DrawContext provides the elevation model, openGl instance, globe and other information required for drawing. It is recommended that the DrawContext is non-null as most implementations do not support null DrawContexts.

Specified by:
render in interface Renderable
Parameters:
dc - the DrawContext to be used
See Also:
DrawContext

setOpacity

public void setOpacity(double opacity)

NASA World Wind

Hosted by docs.bugaco.com