Package com.luciad.util.height
Class TLcdFixedHeightProvider
java.lang.Object
com.luciad.util.height.TLcdFixedHeightProvider
- All Implemented Interfaces:
ILcdBounded
,ILcdHeightProvider
Default implementation of the
ILcdHeightProvider
interface that
returns a constant given height for any given point. The bounds are not taken
into account.- Since:
- 9.1
-
Constructor Summary
ConstructorDescriptionTLcdFixedHeightProvider
(double aHeight, ILcdBounds aBounds) Creates a height provider that always returns the given height and the bounds. -
Method Summary
Modifier and TypeMethodDescriptionReturns the bounds.double
retrieveHeightAt
(ILcdPoint aPoint) Returns the same height for every point.
-
Constructor Details
-
TLcdFixedHeightProvider
Creates a height provider that always returns the given height and the bounds. Note that the bounds are not taken into account when returning the height.- Parameters:
aHeight
- the height to return.aBounds
- the bounds.
-
-
Method Details
-
retrieveHeightAt
Returns the same height for every point.- Specified by:
retrieveHeightAt
in interfaceILcdHeightProvider
- Parameters:
aPoint
- a 2D point.- Returns:
- the height.
-
getBounds
Returns the bounds.- Specified by:
getBounds
in interfaceILcdBounded
- Returns:
- the bounds.
-