gov.nasa.worldwind.wms
Class WMSTiledImageLayer
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.layers.AbstractLayer
gov.nasa.worldwind.layers.TiledImageLayer
gov.nasa.worldwind.layers.BasicTiledImageLayer
gov.nasa.worldwind.wms.WMSTiledImageLayer
- All Implemented Interfaces:
- AVList, Disposable, Layer, NamedObject, Restorable, BulkRetrievable, WWObject, PropertyChangeListener, EventListener
- Direct Known Subclasses:
- BMNGWMSLayer, CountryBoundariesLayer, LandsatI3WMSLayer, NAIPCaliforniaWMS, OpenStreetMapLayer
public class WMSTiledImageLayer - extends BasicTiledImageLayer
|
Method Summary |
BufferedImage |
composeImageForSector(Sector sector,
int canvasWidth,
int canvasHeight,
double aspectRatio,
int levelNumber,
String mimeType,
boolean abortOnError,
BufferedImage image,
int timeout)
Create an image for the portion of this layer lying within a specified sector. |
protected Document |
createConfigurationDocument(AVList params)
Appends WMS tiled image layer configuration elements to the superclass configuration document. |
protected void |
doGetRestorableStateForAVPair(String key,
Object value,
RestorableSupport rs,
RestorableSupport.StateObject context)
|
protected static void |
legacyWmsRestoreStateToParams(RestorableSupport rs,
RestorableSupport.StateObject context,
AVList params)
|
protected static AVList |
wmsGetParamsFromCapsDoc(Capabilities caps,
AVList params)
|
protected static AVList |
wmsGetParamsFromDocument(Element domElement,
AVList params)
|
protected static AVList |
wmsRestorableStateToParams(String stateInXml)
|
protected static void |
wmsRestoreStateToParams(RestorableSupport rs,
RestorableSupport.StateObject context,
AVList params)
|
| Methods inherited from class gov.nasa.worldwind.layers.BasicTiledImageLayer |
checkResources, doRestoreState, doRestoreStateForObject, downloadTexture, downloadTexture, doWriteConfigurationParams, forceTextureLoad, getConfigurationParams, getEstimatedMissingDataSize, getParamsFromDocument, getRestorableState, initializeResources, initPropertiesFromCapabilities, initPropertiesFromService, makeLocal, needsConfigurationFile, requestTexture, restorableStateToParams, restoreState, restoreStateForParams, setFallbacks, writeConfigurationFile, writeConfigurationParams |
| Methods inherited from class gov.nasa.worldwind.layers.TiledImageLayer |
computeLevelForResolution, countImagesInSector, countImagesInSector, doRender, downloadImage, getAvailableImageFormats, getDefaultImageFormat, getLevels, getReferencePoint, getRequestQ, getTilesInSector, isAtMaxResolution, isDrawBoundingVolumes, isDrawTileBoundaries, isDrawTileIDs, isForceLevelZeroLoads, isImageFormatAvailable, isLayerInView, isMultiResolution, isRetainLevelZeroTiles, isShowImageTileOutlines, isUseMipMaps, isUseTransparentTextures, render, requestImage, setAvailableImageFormats, setBlendingFunction, setDrawBoundingVolumes, setDrawTileBoundaries, setDrawTileIDs, setExpiryTime, setForceLevelZeroLoads, setName, setRetainLevelZeroTiles, setShowImageTileOutlines, setSplitScale, setUseMipMaps, setUseTransparentTextures |
| Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer |
dispose, doPick, doPreRender, getExpiryTime, getMaxActiveAltitude, getMinActiveAltitude, getName, getOpacity, getScale, getScreenCredit, isEnabled, isLayerActive, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setNetworkRetrievalEnabled, setOpacity, setPickEnabled, setScreenCredit, toString |
| 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 interface gov.nasa.worldwind.avlist.AVList |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
WMSTiledImageLayer
public WMSTiledImageLayer(AVList params)
WMSTiledImageLayer
public WMSTiledImageLayer(Capabilities caps,
AVList params)
WMSTiledImageLayer
public WMSTiledImageLayer(Document dom,
AVList params)
WMSTiledImageLayer
public WMSTiledImageLayer(Element domElement,
AVList params)
WMSTiledImageLayer
public WMSTiledImageLayer(String stateInXml)
composeImageForSector
public BufferedImage composeImageForSector(Sector sector,
int canvasWidth,
int canvasHeight,
double aspectRatio,
int levelNumber,
String mimeType,
boolean abortOnError,
BufferedImage image,
int timeout)
throws Exception
- Description copied from class:
TiledImageLayer
- Create an image for the portion of this layer lying within a specified sector. The image is created at a
specified aspect ratio within a canvas of a specified size.
- Overrides:
composeImageForSector in class TiledImageLayer
- Parameters:
sector - the sector of interest.canvasWidth - the width of the canvas.canvasHeight - the height of the canvas.aspectRatio - the aspect ratio, width/height, of the window. If the aspect ratio is greater or equal to
one, the full width of the canvas is used for the image; the height used is proportional to
the inverse of the aspect ratio. If the aspect ratio is less than one, the full height of the
canvas is used, and the width used is proportional to the aspect ratio.levelNumber - the target level of the tiled image layer.mimeType - the type of image to create, e.g., "png" and "jpg".abortOnError - indicates whether to stop assembling the image if an error occurs. If false, processing
continues until all portions of the layer that intersect the specified sector have been added
to the image. Portions for which an error occurs will be blank.image - if non-null, a BufferedImage in which to place the image. If null, a new buffered
image is created. The image must be the width and height specified in the
canvasWidth and canvasHeight arguments.timeout - The amount of time to allow for reading the image from the server.
- Returns:
- image the assembelled image, of size indicated by the
canvasWidth and
canvasHeight. If the specified aspect ratio is one, all pixels contain values. If the aspect
ratio is greater than one, a full-width segment along the top of the canvas is blank. If the aspect ratio
is less than one, a full-height segment along the right side of the canvase is blank. If the
image argument was non-null, that buffered image is returned.
- Throws:
IllegalArgumentException - if sector is null.
Exception- See Also:
;
createConfigurationDocument
protected Document createConfigurationDocument(AVList params)
- Appends WMS tiled image layer configuration elements to the superclass configuration document.
- Overrides:
createConfigurationDocument in class BasicTiledImageLayer
- Parameters:
params - configuration parameters describing this WMS tiled image layer.
- Returns:
- a WMS tiled image layer configuration document.
doGetRestorableStateForAVPair
protected void doGetRestorableStateForAVPair(String key,
Object value,
RestorableSupport rs,
RestorableSupport.StateObject context)
- Overrides:
doGetRestorableStateForAVPair in class BasicTiledImageLayer
legacyWmsRestoreStateToParams
protected static void legacyWmsRestoreStateToParams(RestorableSupport rs,
RestorableSupport.StateObject context,
AVList params)
wmsGetParamsFromCapsDoc
protected static AVList wmsGetParamsFromCapsDoc(Capabilities caps,
AVList params)
wmsGetParamsFromDocument
protected static AVList wmsGetParamsFromDocument(Element domElement,
AVList params)
wmsRestorableStateToParams
protected static AVList wmsRestorableStateToParams(String stateInXml)
wmsRestoreStateToParams
protected static void wmsRestoreStateToParams(RestorableSupport rs,
RestorableSupport.StateObject context,
AVList params)
|
|