NASA World Wind

gov.nasa.worldwind.render
Class SurfaceIcons

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

public class SurfaceIcons
extends SurfaceIcon

Renders an icon image over the terrain surface in many locations.


Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.SurfaceIcon
SurfaceIcon.CacheEntry<T>
 
Field Summary
 
Fields inherited from class gov.nasa.worldwind.render.SurfaceIcon
DEFAULT_CACHE_CAPACITY, imageHeight, imageWidth, sectorCache, texture
 
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceRenderable
pickSupport, renderer, stateSupport
 
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
lastModifiedTime, visible
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Constructor Summary
SurfaceIcons(java.lang.Object imageSource, java.lang.Iterable<? extends LatLon> locations)
           
 
Method Summary
protected  java.lang.Iterable<? extends LatLon> computeDrawLocations(DrawContext dc, Sector sector, int width, int height)
           
protected  Angle computeIconRadius(DrawContext dc, double regionPixelSize, Sector drawSector)
           
protected  double computeLocationDistanceDegreesSquared(Sector drawSector, LatLon location)
           
protected  Angle computeSafeRadius(DrawContext dc, Sector drawSector, int width, int height)
           
protected  Sector computeSector(DrawContext dc, double texelSizeRadians)
           
protected  Angle computeSectorRadius(Sector sector)
           
protected  void drawIcon(DrawContext dc, Sector sector, int x, int y, int width, int height)
           
 java.lang.Iterable<? extends LatLon> getLocations()
           
 java.lang.Iterable<? extends Sector> getSectors(DrawContext dc, double texelSizeRadians)
           
 void setLocations(java.lang.Iterable<? extends LatLon> newLocations)
           
 
Methods inherited from class gov.nasa.worldwind.render.SurfaceIcon
applyDrawColor, applyDrawTransform, beginDraw, computeDrawDimension, computeDrawDimension, computeDrawHeading, computeDrawScale, computeSector, doRenderToRegion, endDraw, getColor, getHeading, getImageSource, getLastModifiedTime, getLocation, getLocationOffset, getMaxSize, getMinSize, getReferencePosition, getScale, getTexture, isMaintainAppearance, isMaintainSize, isUseMipMaps, move, moveTo, setColor, setHeading, setImageSource, setLocation, setLocationOffset, setMaintainSize, setMaxSize, setMinSize, setScale, setUseMipMaps
 
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceRenderable
applyNonPremultipliedAlphaColor, applyPremultipliedAlphaColor, computeDrawPixelSize, computeDrawPoint, computePixelSizeAtLocation, computeRotatedSectorBounds, getOpacity, getRenderer, getViewHeading, preRender, render, setOpacity
 
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
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
 

Constructor Detail

SurfaceIcons

public SurfaceIcons(java.lang.Object imageSource,
                    java.lang.Iterable<? extends LatLon> locations)
Method Detail

computeDrawLocations

protected java.lang.Iterable<? extends LatLon> computeDrawLocations(DrawContext dc,
                                                                    Sector sector,
                                                                    int width,
                                                                    int height)

computeIconRadius

protected Angle computeIconRadius(DrawContext dc,
                                  double regionPixelSize,
                                  Sector drawSector)

computeLocationDistanceDegreesSquared

protected double computeLocationDistanceDegreesSquared(Sector drawSector,
                                                       LatLon location)

computeSafeRadius

protected Angle computeSafeRadius(DrawContext dc,
                                  Sector drawSector,
                                  int width,
                                  int height)

computeSector

protected Sector computeSector(DrawContext dc,
                               double texelSizeRadians)

computeSectorRadius

protected Angle computeSectorRadius(Sector sector)

drawIcon

protected void drawIcon(DrawContext dc,
                        Sector sector,
                        int x,
                        int y,
                        int width,
                        int height)
Overrides:
drawIcon in class SurfaceIcon

getLocations

public java.lang.Iterable<? extends LatLon> getLocations()

getSectors

public java.lang.Iterable<? extends Sector> getSectors(DrawContext dc,
                                                       double texelSizeRadians)
Specified by:
getSectors in interface SurfaceObject
Overrides:
getSectors in class SurfaceIcon

setLocations

public void setLocations(java.lang.Iterable<? extends LatLon> newLocations)

NASA World Wind