public class IlvTiledRasterDataSource extends IlvMapDataSource
IlvTiledRasterDataSource is used to manage any raster
reader data. This class gives the option to split the images into
tiles and load the images in a background thread. The default tile size is
256x256.renderer, usingGeodeticComputation| Constructor and Description |
|---|
IlvTiledRasterDataSource()
Creates a raster tiled data source that can be split and multithreaded.
|
IlvTiledRasterDataSource(boolean split,
boolean threaded,
IlvRasterAbstractReader reader)
Creates a raster tiled data source that can be split and multithreaded.
|
IlvTiledRasterDataSource(IlvInputStream stream)
Reads the data source from a serialized stream.
|
| Modifier and Type | Method and Description |
|---|---|
protected IlvMapLayer |
createInsertionLayer()
Creates the map layer using a tiled manager layer.
|
void |
execute()
Creates all necessary
IlvFreeTile objects. |
IlvMapReusableFeatureIterator |
getFeatureIterator()
Retrieves the feature iterator used by this data source.
|
IlvThreadMonitoringData |
getMonitorInfo()
Returns the thread monitoring information to use when updating progress.
|
IlvRasterAbstractReader |
getReader()
Returns the raster reader attached to this data source.
|
IlvTiledLayer |
getTiledLayer()
Returns the manager layer referenced by the insertion layer as a tiled
layer.
|
protected void |
initInsertionLayer(IlvMapLayer layer)
Creates a new
IlvTiledLayer instance to store images and tiles. |
boolean |
isSplit()
Returns if images are split by this data source.
|
boolean |
isThreaded()
Returns the thread status of this data source.
|
void |
reset()
Resets the data source and prepares it for reloading.
|
void |
setMonitorInfo(IlvThreadMonitoringData info)
Sets the thread monitoring information to use when updating progress.
|
void |
setReader(IlvRasterAbstractReader r)
Sets the raster reader attached to this data source.
|
protected void |
setSplit(boolean split)
Sets the splitting for this data source.
|
void |
setThreaded(boolean threaded)
Sets the thread status of this data source.
|
void |
start()
Starts data source reading and rendering.
|
void |
write(IlvOutputStream stream)
Writes an
IlvMapDataSource to an
IlvOutputStream. |
addDataSourceListener, callListeners, getBackupDataSources, getCoordinateSystem, getDescription, getFeatureRenderer, getInsertionLayer, getManager, getMapLayer, getName, getNode, getValidExtentions, hasInsertionLayer, initBackupDataSource, isAttachingAttributes, isGrapherMode, isSaveBackupDataSources, isSourceDataAvailable, isUsingBackupDataSource, isUsingGeodeticComputation, mapIntersects, removeDataSourceListener, setAttachingAttributes, setCoordinateSystem, setDescription, setFeatureRenderer, setForceUsingBackupDataSource, setGrapherMode, setInsertionLayer, setManager, setName, setSaveBackupDataSources, setValidExtentions, toStringpublic IlvTiledRasterDataSource()
public IlvTiledRasterDataSource(boolean split,
boolean threaded,
IlvRasterAbstractReader reader)
split - Indicates if images created by this data source are split
into tiles.threaded - Indicates if image loading is done in a background thread.reader - The reader used to provide the raster data.public IlvTiledRasterDataSource(IlvInputStream stream) throws IlvReadFileException
stream - The stream to read from.IlvReadFileException - if there is a problem reading from
stream.public IlvThreadMonitoringData getMonitorInfo()
public IlvMapReusableFeatureIterator getFeatureIterator()
getFeatureIterator in class IlvMapDataSourceIlvMapDataSource.getFeatureIterator()public void write(IlvOutputStream stream) throws IOException
IlvMapDataSource to an
IlvOutputStream.write in interface IlvPersistentObjectwrite in class IlvMapDataSourcestream - The stream to write to.IOException - thrown when an exception occurs during
the write operation for this object.IlvMapDataSource.write(ilog.views.io.IlvOutputStream)protected IlvMapLayer createInsertionLayer()
createInsertionLayer in class IlvMapDataSourceinitInsertionLayer(IlvMapLayer),
IlvMapDataSource.createInsertionLayer()protected void initInsertionLayer(IlvMapLayer layer)
IlvTiledLayer instance to store images and tiles.initInsertionLayer in class IlvMapDataSourcelayer - The IlvMapLayer to initialize.IlvMapDataSource.initInsertionLayer(ilog.views.maps.beans.IlvMapLayer)public IlvTiledLayer getTiledLayer()
IlvMapDataSource.getInsertionLayer()public void setMonitorInfo(IlvThreadMonitoringData info)
info - The thread monitoring information.public void reset()
reset in class IlvMapDataSourceIlvMapDataSource.reset()public void start()
execute().start in class IlvMapDataSourceIlvMapDataSource.start()public void execute()
IlvFreeTile objects.public IlvRasterAbstractReader getReader()
public void setReader(IlvRasterAbstractReader r)
r - The raster reader attached to this data source.public boolean isSplit()
true is
returned.protected void setSplit(boolean split)
split - Indicates if images are split by this data source.
Splitting means divided into tiles.public boolean isThreaded()
true
is returned.public void setThreaded(boolean threaded)
threaded - Indicates if this data source uses threads to load tiles.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.