Class TLcdHypsometric2x2NormalProvider

java.lang.Object
com.luciad.tea.hypsometry.TLcdHypsometric2x2NormalProvider
All Implemented Interfaces:
ILcdHypsometricNormalProvider

public class TLcdHypsometric2x2NormalProvider extends Object implements ILcdHypsometricNormalProvider
This ILcdHypsometricNormalProvider estimates normals based on 2x2 neighboring elevation values.
  • Constructor Details

    • TLcdHypsometric2x2NormalProvider

      public TLcdHypsometric2x2NormalProvider()
  • Method Details

    • getFootPrint

      public Rectangle getFootPrint()
      Returns the rectangle (0, 0, 2, 2).
      Specified by:
      getFootPrint in interface ILcdHypsometricNormalProvider
      Returns:
      the foot print of this provider.
    • computeNormal

      public void computeNormal(ILcdMatrixView aMatrixView, int aX, int aY, double aElevationScale, double[] aNormalSFCT)
      Description copied from interface: ILcdHypsometricNormalProvider
      Computes the normal at the given point. For reasons of efficiency, the normals are not necessarily normalized yet. It is up to the user to normalize them if necessary. The components of the normal may be NaN if they can't be computed, for instance if not all required elevations are known.
      Specified by:
      computeNormal in interface ILcdHypsometricNormalProvider
      Parameters:
      aMatrixView - the matrix containing elevation values.
      aX - the x ordinate in the matrix.
      aY - the y ordinate in the matrix.
      aElevationScale - the scale of the elevation values in the tiles, expressed in matrix distance units per tile elevation unit.
      aNormalSFCT - an array of 3 doubles to store the computed normal.