edu.d.umn.geometry
Interface ElevationModelInterface

All Known Implementing Classes:
ElevationModel

public interface ElevationModelInterface

Defines an generic inteface between the ElevationModel and other objects that require its characteristics for display purposes.


Method Summary
 float getElevationAt(float x, float z)
          Fetches the elevation at a particular location on the terrain map given the x,z coordinates.
 float getMaxElevation()
          retrieve the model maximum elevation, adjusted by the elevation exageration
 float getMinElevation()
          retrieve the model minimum elevation, adjusted by the elevation exageration
 float getModelLength()
          retrieve the model length, distance in meters from west to east
 float getModelWidth()
          retrieve the model width, distance in meters from south to north
 

Method Detail

getElevationAt

float getElevationAt(float x,
                     float z)
Fetches the elevation at a particular location on the terrain map given the x,z coordinates. X,Z coordinates represent the distance in meters from the center of the terrain image.

Parameters:
x - x coordinate
z - z coordinate
Returns:
the elevation (y coordinate) in meters (adjusted for exageration)

getModelLength

float getModelLength()
retrieve the model length, distance in meters from west to east

Returns:
the length in meters

getModelWidth

float getModelWidth()
retrieve the model width, distance in meters from south to north

Returns:
the width in meters

getMaxElevation

float getMaxElevation()
retrieve the model maximum elevation, adjusted by the elevation exageration

Returns:
the adjusted maximum elevation in meters

getMinElevation

float getMinElevation()
retrieve the model minimum elevation, adjusted by the elevation exageration

Returns:
the adjusted minimum elevation in meters