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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a clone of this object.Returns the band semantics that correspond withgetRasterData().Returns theColorModelusing which the raster data should be interpreted.intReturns the interpretation of the raster value as a color.doubleReturns the interpretation of the raster value as an elevation value in model coordinates.intgetLevel()Returns the level-of-detail used at the touched point if the object is multi-leveled (for example anILcdMultilevelRasteror anILcdEarthTileSet) or0otherwise.Returns the model point in the raster that was touched.Returns the raw raster data as aRaster.voidsetBandSemantics(Collection<ALcdBandSemantics> aBandSemantics) Sets the band semantics.voidsetColorModel(ColorModel aColorModel) Sets the color model using which the raster data can be interpreted.voidsetElevationValue(double aElevationValue) Sets the elevation interpretation of the raster value.voidsetRasterData(Raster aRasterData) Sets the raw raster data.voidsetRasterPoint(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.NaNif 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 anILcdMultilevelRasteror anILcdEarthTileSet) or0otherwise.- 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,-1is returned.- Returns:
- the color value
- See Also:
-
getColorModel
Returns theColorModelusing which the raster data should be interpreted.- Returns:
- the
ColorModelornullif 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 benullif no raster data is available.- Returns:
- the band semantics or
nullif no raster data is available
-
clone
Description copied from class:ALspTouchInfoReturns a clone of this object. The default implementation delegates toObject.clone().- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classTLspWorldTouchInfo- Returns:
- a clone of this object.
- See Also:
-