public class TLcdMultivaluedRaster extends Object implements ILcdMultivaluedRaster
ILcdMultivaluedRaster
combines the values from a list of simple
rasters into vectors.Constructor and Description |
---|
TLcdMultivaluedRaster(ILcdRaster[] aRasters)
Creates a new
TLcdMultivaluedRaster . |
TLcdMultivaluedRaster(ILcdRaster[] aRasters,
ILcdBounds aBounds)
Creates a new
TLcdMultivaluedRaster . |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears the cache.
|
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
Object |
getCachedObject(Object aKey)
Looks up and returns the cached Object corresponding to the given key.
|
ILcdRaster |
getRaster(int aLevel) |
int |
getRasterCount() |
void |
insertIntoCache(Object aKey,
Object aObject)
Inserts a cache Object corresponding to the given key Object.
|
Object |
removeCachedObject(Object aKey)
Looks up and removes the cached Object corresponding to the given key.
|
int |
retrieveValue(double aX,
double aY,
int aIndex)
Retrieves a single value from the values at the given point.
|
void |
retrieveValuesSFCT(double aX,
double aY,
int[] aValuesSFCT)
Retrieves the values at the given point.
|
public TLcdMultivaluedRaster(ILcdRaster[] aRasters)
TLcdMultivaluedRaster
.aRasters
- the ILcdRaster
objects corresponding to the
value dimensions.public TLcdMultivaluedRaster(ILcdRaster[] aRasters, ILcdBounds aBounds)
TLcdMultivaluedRaster
.aRasters
- the ILcdRaster
objects corresponding to the
value dimensions.aBounds
- the global bounds of all contained rasters.public int getRasterCount()
public ILcdRaster getRaster(int aLevel)
public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.
If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points)
the return value is unspecified.
It is highly recommended to return an undefined
bounds.
You can create undefined bounds using the default constructors
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public int retrieveValue(double aX, double aY, int aIndex)
ILcdMultivaluedRaster
retrieveValue
in interface ILcdMultivaluedRaster
aX
- the abscissa of the required value.aY
- the ordinate of the required value.aIndex
- the index of the raster.public void retrieveValuesSFCT(double aX, double aY, int[] aValuesSFCT)
ILcdMultivaluedRaster
retrieveValuesSFCT
in interface ILcdMultivaluedRaster
aX
- the abscissa of the required value.aY
- the ordinate of the required value.aValuesSFCT
- an array of the proper size in which the values
will be written.public void insertIntoCache(Object aKey, Object aObject)
ILcdCache
insertIntoCache
in interface ILcdCache
aKey
- the key Object that will be used to identify the Object.
The key must therefore be a unique identifier, typically the caller
itself: insertIntoCache(this, ...)
.aObject
- the Object to be cached.public Object getCachedObject(Object aKey)
ILcdCache
getCachedObject
in interface ILcdCache
aKey
- the key Object that was used for storing the cache Object.public Object removeCachedObject(Object aKey)
ILcdCache
removeCachedObject
in interface ILcdCache
aKey
- the key Object that was used for storing the cache Object.public void clearCache()
ILcdCache
clearCache
in interface ILcdCache