gov.nasa.worldwind.render
Class SurfaceIcons
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.render.AbstractSurfaceObject
gov.nasa.worldwind.render.AbstractSurfaceRenderable
gov.nasa.worldwind.render.SurfaceIcon
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.
|
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.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 |
SurfaceIcons
public SurfaceIcons(java.lang.Object imageSource,
java.lang.Iterable<? extends LatLon> locations)
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)