NASA World Wind

gov.nasa.worldwind.render
Class SurfaceIcons

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          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, MessageListener, Movable, OrderedRenderable, PreRenderable, Renderable, SurfaceObject, WWObject, PropertyChangeListener, EventListener

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.SectorInfo
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
AbstractSurfaceObject.CacheEntry, AbstractSurfaceObject.SurfaceObjectStateKey
 
Field Summary
 
Fields inherited from class gov.nasa.worldwind.render.SurfaceIcon
imageHeight, imageWidth, texture
 
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
delegateOwner, drawBoundingSectors, enableBatchPicking, extentCache, lastModifiedTime, nextUniqueId, pickLayer, pickSupport, pickTileBuilder, pickTiles, uniqueId, visible
 
Constructor Summary
SurfaceIcons(Object imageSource, Iterable<? extends LatLon> locations)
           
 
Method Summary
protected  Iterable<? extends LatLon> computeDrawLocations(DrawContext dc, SurfaceTileDrawContext sdc)
           
protected  Angle computeIconRadius(DrawContext dc, double regionPixelSize, Sector drawSector)
           
protected  double computeLocationDistanceDegreesSquared(Sector drawSector, LatLon location)
           
protected  Angle computeSafeRadius(DrawContext dc, SurfaceTileDrawContext sdc)
           
protected  Angle computeSectorRadius(Sector sector)
           
protected  List<Sector> computeSectors(DrawContext dc)
           
protected  void drawIcon(DrawContext dc, SurfaceTileDrawContext sdc)
           
 Iterable<? extends LatLon> getLocations()
           
 void setLocations(Iterable<? extends LatLon> newLocations)
           
 
Methods inherited from class gov.nasa.worldwind.render.SurfaceIcon
applyDrawColor, applyDrawTransform, beginDraw, clearCaches, computeDrawDimension, computeDrawDimension, computeDrawHeading, computeDrawScale, drawGeographic, endDraw, getColor, getExtent, getHeading, getImageSource, getLocation, getLocationOffset, getMaxSize, getMinSize, getReferencePosition, getScale, getSectors, getStateKey, getTexture, isMaintainAppearance, isMaintainSize, isUseMipMaps, move, moveTo, onPropertyChanged, setColor, setHeading, setImageSource, setLocation, setLocationOffset, setMaintainSize, setMaxSize, setMinSize, setScale, setUseMipMaps
 
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceRenderable
applyNonPremultipliedAlphaColor, applyPremultipliedAlphaColor, computeDrawPixelSize, computeDrawPoint, computeHemisphereOffset, computeNormalizedSectors, computePixelSizeAtLocation, computeRotatedSectorBounds, getOpacity, getViewHeading, setOpacity
 
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
buildPickRepresentation, computeExtent, computeExtent, createPickedObject, createPickTileBuilder, drawBoundingSectors, drawOrderedRenderable, drawPickRepresentation, getDelegateOwner, getDistanceFromEye, getUniqueId, intersectsFrustum, intersectsPickFrustum, intersectsVisibleSector, isDrawBoundingSectors, isEnableBatchPicking, isVisible, makeOrderedPreRenderable, makeOrderedRenderable, nextUniqueId, pick, pickBatched, pickOrderedRenderable, preRender, render, setDelegateOwner, setDrawBoundingSectors, setEnableBatchPicking, setVisible, updateModifiedTime
 
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, 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(Object imageSource,
                    Iterable<? extends LatLon> locations)
Method Detail

computeDrawLocations

protected Iterable<? extends LatLon> computeDrawLocations(DrawContext dc,
                                                          SurfaceTileDrawContext sdc)

computeIconRadius

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

computeLocationDistanceDegreesSquared

protected double computeLocationDistanceDegreesSquared(Sector drawSector,
                                                       LatLon location)

computeSafeRadius

protected Angle computeSafeRadius(DrawContext dc,
                                  SurfaceTileDrawContext sdc)

computeSectorRadius

protected Angle computeSectorRadius(Sector sector)

computeSectors

protected List<Sector> computeSectors(DrawContext dc)
Overrides:
computeSectors in class SurfaceIcon

drawIcon

protected void drawIcon(DrawContext dc,
                        SurfaceTileDrawContext sdc)
Overrides:
drawIcon in class SurfaceIcon

getLocations

public Iterable<? extends LatLon> getLocations()

setLocations

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

NASA World Wind