Package gov.nasa.worldwind.render
Class SurfaceIcons
- java.lang.Object
-
- All Implemented Interfaces:
AVList
,Draggable
,MessageListener
,Movable
,OrderedRenderable
,PreRenderable
,Renderable
,SurfaceObject
,SurfaceRenderable
,WWObject
,java.beans.PropertyChangeListener
,java.util.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
dragEnabled, draggableSupport, imageHeight, imageWidth, texture
-
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
delegateOwner, drawBoundingSectors, enableBatchPicking, extentCache, lastModifiedTime, nextUniqueId, pickLayer, pickSupport, pickTileBuilder, uniqueId, visible
-
-
Constructor Summary
Constructors Constructor Description SurfaceIcons(java.lang.Object imageSource, java.lang.Iterable<? extends LatLon> locations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.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 java.util.List<Sector>
computeSectors(DrawContext dc)
protected void
drawIcon(DrawContext dc, SurfaceTileDrawContext sdc)
java.lang.Iterable<? extends LatLon>
getLocations()
void
setLocations(java.lang.Iterable<? extends LatLon> newLocations)
-
Methods inherited from class gov.nasa.worldwind.render.SurfaceIcon
applyDrawColor, applyDrawTransform, beginDraw, computeDrawDimension, computeDrawDimension, computeDrawHeading, computeDrawScale, doDrag, drag, drawGeographic, endDraw, getColor, getExtent, getHeading, getImageSource, getLocation, getLocationOffset, getMaxSize, getMinSize, getReferencePosition, getScale, getSectors, getStateKey, getTexture, isDragEnabled, isMaintainAppearance, isMaintainSize, isUseMipMaps, move, moveTo, setColor, setDragEnabled, 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, clearCaches, computeExtent, computeExtent, createPickedObject, createPickTileBuilder, drawBoundingSectors, drawOrderedRenderable, drawPickRepresentation, getDelegateOwner, getDistanceFromEye, getUniqueId, intersectsFrustum, intersectsPickFrustum, intersectsVisibleSector, isDrawBoundingSectors, isEnableBatchPicking, isVisible, makeOrderedPreRenderable, makeOrderedRenderable, nextUniqueId, onShapeChanged, 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, 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
-
getLocations
public java.lang.Iterable<? extends LatLon> getLocations()
-
setLocations
public void setLocations(java.lang.Iterable<? extends LatLon> newLocations)
-
computeSectors
protected java.util.List<Sector> computeSectors(DrawContext dc)
- Overrides:
computeSectors
in classSurfaceIcon
-
drawIcon
protected void drawIcon(DrawContext dc, SurfaceTileDrawContext sdc)
- Overrides:
drawIcon
in classSurfaceIcon
-
computeDrawLocations
protected java.lang.Iterable<? extends LatLon> computeDrawLocations(DrawContext dc, SurfaceTileDrawContext sdc)
-
computeSafeRadius
protected Angle computeSafeRadius(DrawContext dc, SurfaceTileDrawContext sdc)
-
computeIconRadius
protected Angle computeIconRadius(DrawContext dc, double regionPixelSize, Sector drawSector)
-
-