Interface ILcdRasterValueConverter

All Known Implementing Classes:
TLcdLinearRasterValueConverter

public interface ILcdRasterValueConverter
This interface makes it possible to convert between raster and data values. Rasters of data typically encode their values so that they can be efficiently stored and visualized (e.g. using a raster painter or layer). This interface allows converting to and from the actual data values.

Important notice: the package com.luciad.imaging presents a new API for the modeling of raster data. For new projects, it is recommended to use this API instead of ILcdRaster et al. You can set the TLcdColorMap directly on the painter or styler or use TLcdIndexLookupOp to manually map values to colors.

Since:
2013.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    dataToRaster(double aDataValue)
    Converts data values to raster values.
    Returns the unit of the data values.
    double
    rasterToData(int aRasterValue)
    Converts raster values to data values.
  • Method Details

    • dataToRaster

      int dataToRaster(double aDataValue)
      Converts data values to raster values.
      Parameters:
      aDataValue - the data value.
      Returns:
      the raster value.
    • rasterToData

      double rasterToData(int aRasterValue)
      Converts raster values to data values.
      Parameters:
      aRasterValue - the raster value.
      Returns:
      the data value.
    • getUnit

      Returns the unit of the data values.
      Returns:
      the unit of the data values. Can be null.