|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Terrain
Provides operations on the best available terrain. Operations such as line/terrain intersection and surface point computation use the highest resolution terrain data available from the globe's elevation model. Because the best available data may not be available when the operations are performed, the operations block while they retrieve the required data from either the local disk cache or a remote server. A timeout may be specified to limit the amount of time allowed for retrieving data. Operations fail if the timeout is exceeded.
| Method Summary | |
|---|---|
Double |
getElevation(LatLon location)
Computes the elevation at a specified location. |
Globe |
getGlobe()
Returns the object's globe. |
Vec4 |
getSurfacePoint(Angle latitude,
Angle longitude,
double metersOffset)
Computes the Cartesian, model-coordinate point of a location on the terrain. |
Vec4 |
getSurfacePoint(Position position)
Computes the Cartesian, model-coordinate point of a position on the terrain. |
double |
getVerticalExaggeration()
|
Intersection[] |
intersect(Position pA,
Position pB)
Computes the intersections of a line with the terrain. |
Intersection[] |
intersect(Position pA,
Position pB,
int altitudeMode)
Computes the intersections of a line with the terrain. |
| Method Detail |
|---|
Double getElevation(LatLon location)
WWTimeoutException if a timeout has been
specified and it is exceeded during the operation.
location - the location at which to compute the elevation.
IllegalArgumentException - if the specified location in null.
WWTimeoutException - if the current timeout is exceeded while retrieving terrain data.
WWRuntimeException - if the operation is interrupted.Globe getGlobe()
Vec4 getSurfacePoint(Angle latitude,
Angle longitude,
double metersOffset)
WWTimeoutException if a timeout has been
specified and it is exceeded during the operation.
latitude - the location's latitude.longitude - the location's longitude.metersOffset - the location's distance above the terrain.
IllegalArgumentException - if the latitude or longitude are null.
WWTimeoutException - if the current timeout is exceeded while retrieving terrain data.
WWRuntimeException - if the operation is interrupted.Vec4 getSurfacePoint(Position position)
WWTimeoutException if a timeout has been
specified and it is exceeded during the operation.
position - the position.
IllegalArgumentException - if the position is null.
WWTimeoutException - if the current timeout is exceeded while retrieving terrain data.
WWRuntimeException - if the operation is interrupted.double getVerticalExaggeration()
Intersection[] intersect(Position pA,
Position pB)
WWTimeoutException if a timeout has been
specified and it is exceeded during the operation.
pA - the line's first position.pB - the line's second position.
IllegalArgumentException - if either position is null.
WWTimeoutException
WWRuntimeException - if the operation is interrupted. if the current timeout is exceeded while
retrieving terrain data.
Intersection[] intersect(Position pA,
Position pB,
int altitudeMode)
WWTimeoutException if a timeout has been
specified and it is exceeded during the operation.
pA - the line's first position.pB - the line's second position.altitudeMode - the altitude mode indicating the reference for the altitudes in the specified positions.
IllegalArgumentException - if either position is null.
WWTimeoutException
WWRuntimeException - if the operation is interrupted. if the current timeout is exceeded while
retrieving terrain data.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||