Package com.luciad.tea.hypsometry
Class TLcdHypsometricTileFactory
java.lang.Object
com.luciad.tea.hypsometry.TLcdHypsometricTileFactory
- All Implemented Interfaces:
ILcdHypsometricTileFactory
This ILcdHypsometricTileFactory creates hypsometric tiles based on the given
hypsometric value provider.
-
Constructor Summary
ConstructorDescriptionTLcdHypsometricTileFactory
(ILcdHypsometricValueProvider aHypsometricValueProvider, int aMinimumValue, int aMaximumValue, int aUnknownValue, ColorModel aHypsometricColorModel, ILcdBuffer aBuffer) Creates a new TLcdHypsometricTileFactory. -
Method Summary
Modifier and TypeMethodDescriptioncreateHypsometricTile
(ILcdRaster aRaster, int aTileRow, int aTileColumn, double aElevationScale) Creates a hypsometric version of the specified tile.Returns the color model that is attached to hypsometric tiles.Returns the hypsometric value provider.int
Returns the tile value that corresponds to the maximum hypsometric value of the value provider.int
Returns the tile value that corresponds to the minimum hypsometric value of the value provider.int
Returns the tile value that corresponds to the unknown hypsometric value (NaN) of the value provider.
-
Constructor Details
-
TLcdHypsometricTileFactory
public TLcdHypsometricTileFactory(ILcdHypsometricValueProvider aHypsometricValueProvider, int aMinimumValue, int aMaximumValue, int aUnknownValue, ColorModel aHypsometricColorModel, ILcdBuffer aBuffer) Creates a new TLcdHypsometricTileFactory.- Parameters:
aHypsometricValueProvider
- the value provider that will compute hypsometric values based on elevations.aMinimumValue
- the tile value that will correspond to the minimum hypsometric value of the value provider.aMaximumValue
- the tile value that will correspond to the maximum hypsometric value of the value provider.aUnknownValue
- the tile value that will correspond to the unknown hypsometric value (NaN) of the value provider.aHypsometricColorModel
- the color model to be attached to the hypsometric tiles.aBuffer
- the buffer in which hypsometric tiles can be cached.
-
-
Method Details
-
getHypsometricValueProvider
Returns the hypsometric value provider.- Returns:
- the hypsometric value provider.
-
getMinimumValue
public int getMinimumValue()Returns the tile value that corresponds to the minimum hypsometric value of the value provider.- Returns:
- the minimum hypsometric value.
-
getMaximumValue
public int getMaximumValue()Returns the tile value that corresponds to the maximum hypsometric value of the value provider.- Returns:
- the maximum hypsometric value.
-
getUnknownValue
public int getUnknownValue()Returns the tile value that corresponds to the unknown hypsometric value (NaN) of the value provider.- Returns:
- the unknown hypsometric value.
-
getHypsometricColorModel
Returns the color model that is attached to hypsometric tiles. -
createHypsometricTile
public ILcdTile createHypsometricTile(ILcdRaster aRaster, int aTileRow, int aTileColumn, double aElevationScale) Description copied from interface:ILcdHypsometricTileFactory
Creates a hypsometric version of the specified tile.- Specified by:
createHypsometricTile
in interfaceILcdHypsometricTileFactory
- Parameters:
aRaster
- the elevation raster.aTileRow
- the tile row in the elevation raster.aTileColumn
- the tile row in the elevation raster.aElevationScale
- the scale factor to go from the tile's elevation values to ordinates in a uniform cartesian space.- Returns:
- the hypsometric tile.
-