Class CoverageLayer
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.layers.AbstractLayer
gov.nasa.worldwind.layers.RenderableLayer
repast.simphony.visualization.gis3D.CoverageLayer
- All Implemented Interfaces:
gov.nasa.worldwind.avlist.AVList
,gov.nasa.worldwind.Disposable
,gov.nasa.worldwind.event.MessageListener
,gov.nasa.worldwind.layers.Layer
,gov.nasa.worldwind.Restorable
,gov.nasa.worldwind.WWObject
,PropertyChangeListener
,EventListener
public class CoverageLayer
extends gov.nasa.worldwind.layers.RenderableLayer
Layer class for displaying grid coverage (rasters) as WorldWind RenderableLayer.
Each layer instance can hold a single coverage object.
- Author:
- Eric Tatara
-
Field Summary
Modifier and TypeFieldDescriptionprotected Geography<?>
protected String
protected BufferedImage
protected boolean
protected CoverageStyle<?>
protected RepastSurfaceImage
Fields inherited from class gov.nasa.worldwind.layers.RenderableLayer
pickSupport, renderables, renderablesOverride
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Override dispose() to prevent losing renderables on frame resize/dock.gov.nasa.worldwind.geom.Sector
getProbedObject
(gov.nasa.worldwind.geom.Position position) Create a probe object that represents the value of the coverage at the probed location, which is provided via argument rather than referenced from a projection as is usually dont with the other probe object classes.getStyle()
Gets the style used by this display layer.gov.nasa.worldwind.render.SurfaceImage
void
setGeography
(Geography geography) Set the geography for this display.void
setStyle
(CoverageStyle style) Sets the style used by this display layer.void
update()
Update the coverage with raster data an stylingMethods inherited from class gov.nasa.worldwind.layers.RenderableLayer
addRenderable, addRenderable, addRenderables, clearRenderables, disposeRenderables, doPick, doPick, doPreRender, doPreRender, doRender, doRender, getActiveRenderables, getNumRenderables, getOpacity, getRenderables, onMessage, removeAllRenderables, removeRenderable, setOpacity, setRenderables, toString
Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer
createLayerConfigElements, getDataFileStore, getExpiryTime, getLayerConfigParams, getMaxActiveAltitude, getMaxEffectiveAltitude, getMinActiveAltitude, getMinEffectiveAltitude, getName, getRestorableState, getScale, getScreenCredit, isAtMaxResolution, isEnabled, isLayerActive, isLayerConfigDocument, isLayerInView, isMultiResolution, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, render, restoreState, setDataFileStore, setEnabled, setExpiryTime, setMaxActiveAltitude, setMinActiveAltitude, setName, setNetworkRetrievalEnabled, setPickEnabled, setScreenCredit
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
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, 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
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
-
Field Details
-
layerName
-
geography
-
style
-
surfaceImage
-
noImage
-
smoothing
protected boolean smoothing
-
-
Constructor Details
-
CoverageLayer
-
-
Method Details
-
getStyle
Gets the style used by this display layer.- Returns:
- the style used by this display layer.
-
setStyle
Sets the style used by this display layer.- Parameters:
style
- the new style
-
setGeography
Set the geography for this display.- Parameters:
geography
-
-
update
public void update()Update the coverage with raster data an styling -
dispose
public void dispose()Override dispose() to prevent losing renderables on frame resize/dock.- Specified by:
dispose
in interfacegov.nasa.worldwind.Disposable
- Overrides:
dispose
in classgov.nasa.worldwind.layers.RenderableLayer
-
getBoundingSector
public gov.nasa.worldwind.geom.Sector getBoundingSector() -
getSurfaceImage
public gov.nasa.worldwind.render.SurfaceImage getSurfaceImage() -
getProbedObject
Create a probe object that represents the value of the coverage at the probed location, which is provided via argument rather than referenced from a projection as is usually dont with the other probe object classes.- Parameters:
point
-- Returns:
-