Class TLspRasterWorldTouchInfo

All Implemented Interfaces:
ILcdCloneable, Cloneable

public class TLspRasterWorldTouchInfo extends TLspWorldTouchInfo
This implementation of TLspWorldTouchInfo offers additional information about the raster value at the touched point.
Since:
2013.0
  • Constructor Details

    • TLspRasterWorldTouchInfo

      public TLspRasterWorldTouchInfo()
      Creates an empty touch info.
  • Method Details

    • setRasterPoint

      public void setRasterPoint(int aLevel, ILcdPoint aModelPoint)
      Sets the raster point that is touched.
      Parameters:
      aLevel - the raster level
      aModelPoint - the model coordinates
    • setElevationValue

      public void setElevationValue(double aElevationValue)
      Sets the elevation interpretation of the raster value.
      Parameters:
      aElevationValue - the elevation value or Double.NaN if it is unknown
    • setColorModel

      public void setColorModel(ColorModel aColorModel)
      Sets the color model using which the raster data can be interpreted.
      Parameters:
      aColorModel - the color model
      See Also:
    • setRasterData

      public void setRasterData(Raster aRasterData)
      Sets the raw raster data.
      Parameters:
      aRasterData - the raw raster data
      See Also:
    • setBandSemantics

      public void setBandSemantics(Collection<ALcdBandSemantics> aBandSemantics)
      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 an ILcdMultilevelRaster or an ILcdEarthTileSet) or 0 otherwise.
      Returns:
      the level-of-detail used at the touched point
    • getModelPoint

      public ILcdPoint 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 default ColorModel. If no color value can be returned, -1 is returned.
      Returns:
      the color value
      See Also:
    • getColorModel

      public ColorModel getColorModel()
      Returns the ColorModel using which the raster data should be interpreted.
      Returns:
      the ColorModel or null 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

      public Raster getRasterData()
      Returns the raw raster data as a Raster. This is a 1 x 1 raster that contains the value for the touched pixel.
      Returns:
      the raw raster data as a Raster
    • getBandSemantics

      public Collection<ALcdBandSemantics> getBandSemantics()
      Returns the band semantics that correspond with getRasterData(). Can be null if no raster data is available.
      Returns:
      the band semantics or null if no raster data is available
    • clone

      public TLspRasterWorldTouchInfo clone()
      Description copied from class: ALspTouchInfo
      Returns a clone of this object.

      The default implementation delegates to Object.clone().

      Specified by:
      clone in interface ILcdCloneable
      Overrides:
      clone in class TLspWorldTouchInfo
      Returns:
      a clone of this object.
      See Also: