vtHeightField Class Reference

Inheritance diagram for vtHeightField:

Inheritance graph
[legend]

List of all members.

Public Member Functions

void Initialize (const DRECT &extents, float fMinHeight, float fMaxHeight)
virtual bool FindAltitudeOnEarth (const DPoint2 &p, float &fAltitude, bool bTrue=false) const =0
bool ContainsEarthPoint (const DPoint2 &p, bool bInclusive=false) const
DRECTGetEarthExtents ()
const DRECTGetEarthExtents () const
virtual void SetEarthExtents (const DRECT &ext)
void GetHeightExtents (float &fMinHeight, float &fMaxHeight) const

Protected Attributes

float m_fMinHeight
float m_fMaxHeight
DRECT m_EarthExtents


Detailed Description

A heightfield is any collection of surfaces such that, given a horizontal X,Y position, there exists only a single elevation value.

Member Function Documentation

bool vtHeightField::ContainsEarthPoint ( const DPoint2 p,
bool  bInclusive = false 
) const [inline]

Test if a point is within the extents of the grid.

DRECT& vtHeightField::GetEarthExtents (  )  [inline]

Returns the geographic extents of the grid.

void vtHeightField::GetHeightExtents ( float &  fMinHeight,
float &  fMaxHeight 
) const

Gets the minimum and maximum height values. The values are placed in the arguments by reference. You must have first called ComputeHeightExtents.

void vtHeightField::SetEarthExtents ( const DRECT ext  )  [virtual]

Set the geographic extents of the grid.

Reimplemented in vtHeightField3d, and vtHeightFieldGrid3d.


Generated on Wed Dec 24 13:08:41 2008 for vtdata library by  doxygen 1.5.7.1