public class TLcdCompositeHeightProvider extends Object implements ILcdHeightProvider
Constructor and Description |
---|
TLcdCompositeHeightProvider(ILcdHeightProvider[] aHeightProviders)
Creates a
TLcdCompositeHeightProvider using an array of
ILcdHeightProvider s. |
TLcdCompositeHeightProvider(List<? extends ILcdHeightProvider> aHeightProviders)
Creates a
TLcdCompositeHeightProvider using a list of
ILcdHeightProvider s. |
Modifier and Type | Method and Description |
---|---|
static ILcdHeightProvider |
createCompositeHeightProvider(ILcdHeightProvider[] aHeightProviders)
Creates a composite
ILcdHeightProvider from an array of height providers. |
static ILcdHeightProvider |
createCompositeHeightProvider(List<? extends ILcdHeightProvider> aHeightProviderList)
Creates a composite
ILcdHeightProvider from a list of height providers. |
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
List<ILcdHeightProvider> |
getHeightProviders()
Returns a list of
ILcdHeightProvider s used in this composite height
provider. |
double |
retrieveHeightAt(ILcdPoint aPoint)
Returns the height at the given point.
|
public TLcdCompositeHeightProvider(ILcdHeightProvider[] aHeightProviders)
TLcdCompositeHeightProvider
using an array of
ILcdHeightProvider
s.
Note that the static factory method
createCompositeHeightProvider(ILcdHeightProvider[])
may create a
more efficient height provider, because it avoids creating a composite
height provider with only a single element.
aHeightProviders
- an array of ILcdHeightProvider
s.public TLcdCompositeHeightProvider(List<? extends ILcdHeightProvider> aHeightProviders)
TLcdCompositeHeightProvider
using a list of
ILcdHeightProvider
s.
Note that the static factory method
createCompositeHeightProvider(List)
may create a more efficient
height provider, because it avoids creating a composite height provider
with only a single element.
aHeightProviders
- a list of ILcdHeightProvider
s.public List<ILcdHeightProvider> getHeightProviders()
ILcdHeightProvider
s used in this composite height
provider. Modifying this list doesn't affect the composite height provider.ILcdHeightProvider
s.public static ILcdHeightProvider createCompositeHeightProvider(List<? extends ILcdHeightProvider> aHeightProviderList)
ILcdHeightProvider
from a list of height providers.aHeightProviderList
- a list of height providers.ILcdHeightProvider
when the list contains more than 1 height
provider. When the list contains only 1 ILcdHeightProvider
, this
height provider is returned. When the list is empty, null is returned.public static ILcdHeightProvider createCompositeHeightProvider(ILcdHeightProvider[] aHeightProviders)
ILcdHeightProvider
from an array of height providers.aHeightProviders
- an array of height providers.ILcdHeightProvider
when the array contains more than 1 height
provider. When the array contains only 1 ILcdHeightProvider
, this
height provider is returned. When the array has length 0, null is returned.public double retrieveHeightAt(ILcdPoint aPoint)
ILcdHeightProvider
retrieveHeightAt
in interface ILcdHeightProvider
aPoint
- a 2D point, in the horizontal reference that is determined by
the implementation.Double.NaN
, if the elevation is not known.public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.
If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points)
the return value is unspecified.
It is highly recommended to return an undefined
bounds.
You can create undefined bounds using the default constructors
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.