Class TLspRasterWorldTouchInfo
java.lang.Object
com.luciad.view.lightspeed.layer.ALspTouchInfo
com.luciad.view.lightspeed.layer.ALspWorldTouchInfo
com.luciad.view.lightspeed.layer.TLspWorldTouchInfo
com.luciad.view.lightspeed.layer.raster.TLspRasterWorldTouchInfo
- All Implemented Interfaces:
ILcdCloneable
,Cloneable
This implementation of
TLspWorldTouchInfo
offers additional information about the raster value at the
touched point.- Since:
- 2013.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns a clone of this object.Returns the band semantics that correspond withgetRasterData()
.Returns theColorModel
using which the raster data should be interpreted.int
Returns the interpretation of the raster value as a color.double
Returns the interpretation of the raster value as an elevation value in model coordinates.int
getLevel()
Returns the level-of-detail used at the touched point if the object is multi-leveled (for example anILcdMultilevelRaster
or anILcdEarthTileSet
) or0
otherwise.Returns the model point in the raster that was touched.Returns the raw raster data as aRaster
.void
setBandSemantics
(Collection<ALcdBandSemantics> aBandSemantics) Sets the band semantics.void
setColorModel
(ColorModel aColorModel) Sets the color model using which the raster data can be interpreted.void
setElevationValue
(double aElevationValue) Sets the elevation interpretation of the raster value.void
setRasterData
(Raster aRasterData) Sets the raw raster data.void
setRasterPoint
(int aLevel, ILcdPoint aModelPoint) Sets the raster point that is touched.Methods inherited from class com.luciad.view.lightspeed.layer.TLspWorldTouchInfo
getDomainObject, getElevationMode, getTouchedWorldPoint, set, toString
-
Constructor Details
-
TLspRasterWorldTouchInfo
public TLspRasterWorldTouchInfo()Creates an empty touch info.
-
-
Method Details
-
setRasterPoint
Sets the raster point that is touched.- Parameters:
aLevel
- the raster levelaModelPoint
- the model coordinates
-
setElevationValue
public void setElevationValue(double aElevationValue) Sets the elevation interpretation of the raster value.- Parameters:
aElevationValue
- the elevation value orDouble.NaN
if it is unknown
-
setColorModel
Sets the color model using which the raster data can be interpreted.- Parameters:
aColorModel
- the color model- See Also:
-
setRasterData
Sets the raw raster data.- Parameters:
aRasterData
- the raw raster data- See Also:
-
setBandSemantics
Sets the band semantics.- Parameters:
aBandSemantics
- the band semantics- See Also:
-
getLevel
public int getLevel()Returns the level-of-detail used at the touched point if the object is multi-leveled (for example anILcdMultilevelRaster
or anILcdEarthTileSet
) or0
otherwise.- Returns:
- the level-of-detail used at the touched point
-
getModelPoint
Returns the model point in the raster that was touched.- Returns:
- the touched model point
-
getColorValue
public int getColorValue()Returns the interpretation of the raster value as a color. The interpretation depends on the defaultColorModel
. If no color value can be returned,-1
is returned.- Returns:
- the color value
- See Also:
-
getColorModel
Returns theColorModel
using which the raster data should be interpreted.- Returns:
- the
ColorModel
ornull
if the color interpretation is unknown - See Also:
-
getElevationValue
public double getElevationValue()Returns the interpretation of the raster value as an elevation value in model coordinates.- Returns:
- the elevation value or
Double.NaN
-
getRasterData
Returns the raw raster data as aRaster
. This is a 1 x 1 raster that contains the value for the touched pixel.- Returns:
- the raw raster data as a
Raster
-
getBandSemantics
Returns the band semantics that correspond withgetRasterData()
. Can benull
if no raster data is available.- Returns:
- the band semantics or
null
if no raster data is available
-
clone
Description copied from class:ALspTouchInfo
Returns a clone of this object. The default implementation delegates toObject.clone()
.- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classTLspWorldTouchInfo
- Returns:
- a clone of this object.
- See Also:
-