public abstract class MercatorTiledImageLayer extends AbstractLayer
Constructor and Description |
---|
MercatorTiledImageLayer(LevelSet levelSet) |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
composeImageForSector(Sector sector,
int imageWidth,
int imageHeight,
int levelNumber,
String mimeType,
boolean abortOnError,
BufferedImage image) |
int |
computeLevelForResolution(Sector sector,
Globe globe,
double resolution) |
int |
countImagesInSector(Sector sector,
int levelNumber) |
protected void |
doRender(DrawContext dc) |
protected abstract void |
forceTextureLoad(MercatorTextureTile tile) |
List<String> |
getAvailableImageFormats() |
String |
getDefaultImageFormat() |
protected LevelSet |
getLevels() |
protected Vec4 |
getReferencePoint() |
protected PriorityBlockingQueue<Runnable> |
getRequestQ() |
boolean |
isAtMaxResolution()
Indicates whether the most recent rendering of the layer rendered the highest resolution imagery or other data
available.
|
boolean |
isDrawBoundingVolumes() |
boolean |
isDrawTileBoundaries() |
boolean |
isDrawTileIDs() |
boolean |
isForceLevelZeroLoads() |
boolean |
isImageFormatAvailable(String imageFormat) |
boolean |
isLayerInView(DrawContext dc)
Indicates whether the layer is in the view.
|
boolean |
isMultiResolution()
Indicates whether the layer provides multiple resolutions of imagery or other data.
|
boolean |
isRetainLevelZeroTiles() |
boolean |
isShowImageTileOutlines() |
boolean |
isUseMipMaps() |
boolean |
isUseTransparentTextures() |
void |
render(DrawContext dc)
Cause the layer to draw its representation.
|
protected abstract void |
requestTexture(DrawContext dc,
MercatorTextureTile tile) |
protected void |
setAvailableImageFormats(String[] formats) |
void |
setDrawBoundingVolumes(boolean drawBoundingVolumes) |
void |
setDrawTileBoundaries(boolean drawTileBoundaries) |
void |
setDrawTileIDs(boolean drawTileIDs) |
void |
setForceLevelZeroLoads(boolean forceLevelZeroLoads) |
void |
setName(String name)
Set the layer's name.
|
void |
setRetainLevelZeroTiles(boolean retainLevelZeroTiles) |
void |
setShowImageTileOutlines(boolean showImageTileOutlines) |
void |
setUseMipMaps(boolean useMipMaps) |
void |
setUseTransparentTextures(boolean useTransparentTextures) |
createLayerConfigElements, dispose, doPick, doPreRender, getDataFileStore, getExpiryTime, getLayerConfigParams, getMaxActiveAltitude, getMaxEffectiveAltitude, getMinActiveAltitude, getMinEffectiveAltitude, getName, getOpacity, getRestorableState, getScale, getScreenCredit, isEnabled, isLayerActive, isLayerConfigDocument, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, restoreState, setDataFileStore, setEnabled, setExpiryTime, setMaxActiveAltitude, setMinActiveAltitude, setNetworkRetrievalEnabled, setOpacity, setPickEnabled, setScreenCredit, toString
onMessage, propertyChange
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
propertyChange
onMessage
public MercatorTiledImageLayer(LevelSet levelSet)
public BufferedImage composeImageForSector(Sector sector, int imageWidth, int imageHeight, int levelNumber, String mimeType, boolean abortOnError, BufferedImage image)
public int computeLevelForResolution(Sector sector, Globe globe, double resolution)
public int countImagesInSector(Sector sector, int levelNumber)
protected final void doRender(DrawContext dc)
doRender
in class AbstractLayer
protected abstract void forceTextureLoad(MercatorTextureTile tile)
public String getDefaultImageFormat()
protected LevelSet getLevels()
protected Vec4 getReferencePoint()
protected PriorityBlockingQueue<Runnable> getRequestQ()
public boolean isAtMaxResolution()
Layer
true
.
Typically such layers also return false
from Layer.isMultiResolution()
.isAtMaxResolution
in interface Layer
isAtMaxResolution
in class AbstractLayer
true
if the layer is at maximum resolution, otherwise false
.public boolean isDrawBoundingVolumes()
public boolean isDrawTileBoundaries()
public boolean isDrawTileIDs()
public boolean isForceLevelZeroLoads()
public boolean isImageFormatAvailable(String imageFormat)
public boolean isLayerInView(DrawContext dc)
Layer
isLayerInView
in interface Layer
isLayerInView
in class AbstractLayer
dc
- the current draw contexttrue
if the layer is in the view, false
otherwise.public boolean isMultiResolution()
Layer
isMultiResolution
in interface Layer
isMultiResolution
in class AbstractLayer
true
if the layer provides multiple resolutions, else false
.public boolean isRetainLevelZeroTiles()
public boolean isShowImageTileOutlines()
public boolean isUseMipMaps()
public boolean isUseTransparentTextures()
public void render(DrawContext dc)
Layer
render
in interface Layer
render
in class AbstractLayer
dc
- the current draw contextprotected abstract void requestTexture(DrawContext dc, MercatorTextureTile tile)
protected void setAvailableImageFormats(String[] formats)
public void setDrawBoundingVolumes(boolean drawBoundingVolumes)
public void setDrawTileBoundaries(boolean drawTileBoundaries)
public void setDrawTileIDs(boolean drawTileIDs)
public void setForceLevelZeroLoads(boolean forceLevelZeroLoads)
public void setName(String name)
Layer
setName
in interface Layer
setName
in class AbstractLayer
name
- the name to assign to the layer.public void setRetainLevelZeroTiles(boolean retainLevelZeroTiles)
public void setShowImageTileOutlines(boolean showImageTileOutlines)
public void setUseMipMaps(boolean useMipMaps)
public void setUseTransparentTextures(boolean useTransparentTextures)