|
vtdata library
|

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 |
| DRECT & | GetEarthExtents () |
| const DRECT & | GetEarthExtents () 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 |
A heightfield is any collection of surfaces such that, given a horizontal X,Y position, there exists only a single elevation value.
| 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.
1.7.4