Package gov.nasa.worldwind.layer
Class BackgroundLayer
- java.lang.Object
-
- gov.nasa.worldwind.layer.AbstractLayer
-
- gov.nasa.worldwind.layer.RenderableLayer
-
- gov.nasa.worldwind.layer.BackgroundLayer
-
- All Implemented Interfaces:
Layer
,java.lang.Iterable<Renderable>
public class BackgroundLayer extends RenderableLayer
Displays a single image spanning the globe. By default, BackgroundLayer is configured to display NASA's Blue Marble next generation image at 40km resolution from the built-in WorldWind library resource res/drawable/gov_nasa_worldwind_worldtopobathy2004053.
-
-
Constructor Summary
Constructors Constructor Description BackgroundLayer()
Constructs a Blue Marble background layer with the built-in WorldWind library resource res/drawable/gov_nasa_worldwind_worldtopobathy2004053.BackgroundLayer(ImageSource imageSource, ImageOptions imageOptions)
Constructs a background image layer with an image source.
-
Method Summary
-
Methods inherited from class gov.nasa.worldwind.layer.RenderableLayer
addAllRenderables, addAllRenderables, addRenderable, addRenderable, clearRenderables, count, getRenderable, indexOfRenderable, indexOfRenderableNamed, indexOfRenderableWithProperty, iterator, removeAllRenderables, removeRenderable, removeRenderable, setRenderable
-
Methods inherited from class gov.nasa.worldwind.layer.AbstractLayer
getDisplayName, getMaxActiveAltitude, getMinActiveAltitude, getOpacity, getUserProperty, hasUserProperty, isEnabled, isPickEnabled, isWithinActiveAltitudes, putUserProperty, removeUserProperty, render, setDisplayName, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setOpacity, setPickEnabled
-
-
-
-
Constructor Detail
-
BackgroundLayer
public BackgroundLayer()
Constructs a Blue Marble background layer with the built-in WorldWind library resource res/drawable/gov_nasa_worldwind_worldtopobathy2004053. The resource must be accessible from the Android Context associated with the WorldWindow.
-
BackgroundLayer
public BackgroundLayer(ImageSource imageSource, ImageOptions imageOptions)
Constructs a background image layer with an image source. The image's dimensions must be no greater than 2048 x 2048.- Parameters:
imageSource
- the image sourceimageOptions
- the image options, or null to use the default options- Throws:
java.lang.IllegalArgumentException
- If the image source is null
-
-