public class TLspRasterWorldTouchInfo extends TLspWorldTouchInfo
TLspWorldTouchInfo
offers additional information about the raster value at the
touched point.Constructor and Description |
---|
TLspRasterWorldTouchInfo()
Creates an empty touch info.
|
Modifier and Type | Method and Description |
---|---|
TLspRasterWorldTouchInfo |
clone()
Returns a clone of this object.
|
Collection<ALcdBandSemantics> |
getBandSemantics()
Returns the band semantics that correspond with
getRasterData() . |
ColorModel |
getColorModel()
Returns the
ColorModel using which the raster data should be interpreted. |
int |
getColorValue()
Returns the interpretation of the raster value as a color.
|
double |
getElevationValue()
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 an
ILcdMultilevelRaster or an ILcdEarthTileSet ) or 0 otherwise. |
ILcdPoint |
getModelPoint()
Returns the model point in the raster that was touched.
|
Raster |
getRasterData()
Returns the raw raster data as a
Raster . |
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.
|
getDomainObject, getElevationMode, getTouchedWorldPoint, set, toString
public TLspRasterWorldTouchInfo()
public void setRasterPoint(int aLevel, ILcdPoint aModelPoint)
aLevel
- the raster levelaModelPoint
- the model coordinatespublic void setElevationValue(double aElevationValue)
aElevationValue
- the elevation value or Double.NaN
if it is unknownpublic void setColorModel(ColorModel aColorModel)
aColorModel
- the color modelgetColorModel()
public void setRasterData(Raster aRasterData)
aRasterData
- the raw raster datagetRasterData()
public void setBandSemantics(Collection<ALcdBandSemantics> aBandSemantics)
aBandSemantics
- the band semanticsgetBandSemantics()
public int getLevel()
ILcdMultilevelRaster
or an ILcdEarthTileSet
) or 0
otherwise.public ILcdPoint getModelPoint()
public int getColorValue()
ColorModel
. If no color value can be
returned, -1
is returned.getColorModel()
public ColorModel getColorModel()
ColorModel
using which the raster data should be interpreted.ColorModel
or null
if the color interpretation is unknowngetColorValue()
public double getElevationValue()
Double.NaN
public Raster getRasterData()
Raster
. This is a 1 x 1 raster that contains the value for the
touched pixel.Raster
public Collection<ALcdBandSemantics> getBandSemantics()
getRasterData()
. Can be null
if no
raster data is available.null
if no raster data is availablepublic TLspRasterWorldTouchInfo clone()
ALspTouchInfo
Object.clone()
.clone
in interface ILcdCloneable
clone
in class TLspWorldTouchInfo
Object.clone()