Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Phx::Terrain::HeightInterface Class Reference

An interface allowing repeated queries of height for a moving position. More...

#include <PhxTerrain.h>

List of all members.

Public Member Functions

virtual position (const EcefVector &position)=0
EcefVector position (void) const
double slewRate (void) const
virtual void slewRate (double rate)=0
virtual double heightAgl (void) const =0
 Returns the height of the query position above ground level.
virtual double heightMsl (void) const =0
 Returns the height of the query point above mean sea level.
virtual double resolution (void) const
virtual void resolution (double resolution)=0

Protected Member Functions

void setPosition (const EcefVector &position)
void setSlewRate (double rate)


Detailed Description

An interface allowing repeated queries of height for a moving position.

The interface provides a maximum slew rate attribute that prevents the height from popping by more than a specified amount for each unit of time (simulated second). If the terrain is simplified or refined, the height of the surface may change, causing difficulties for some parts of the simulation. This interface interpolates gradually from the old height to the new height, allowing the client to view the terrain as gradually rising up or descending beneath them, rather than suddenly popping to a new location.


Member Function Documentation

virtual double Phx::Terrain::HeightInterface::heightAgl void   )  const [pure virtual]
 

Returns the height of the query position above ground level.

Ground level is the surface of the terrain geometry directly "beneath" the query position.

virtual double Phx::Terrain::HeightInterface::heightMsl void   )  const [pure virtual]
 

Returns the height of the query point above mean sea level.

Presently, mean sea level is defined as the surface of the internal ellipsoid used by the terrain engine (i.e., the surface represented by terrain height of 0 everywhere).


The documentation for this class was generated from the following file:
Generated on Mon Jul 10 19:45:30 2006 for Phoenix OSFS by  doxygen 1.4.2