|
bool | Initialize (const char *external_data) |
|
osg::Node * | CreateGeometry () |
|
vtProjection & | GetProjection () |
|
const vtProjection & | GetProjection () const |
|
bool | FindAltitudeOnEarth (const DPoint2 &p, float &fAltitude, bool bTrue=false) const |
|
bool | FindAltitudeAtPoint (const FPoint3 &p3, float &fAltitude, bool bTrue=false, int iCultureFlags=0, FPoint3 *vNormal=NULL) const |
|
bool | CastRayToSurface (const FPoint3 &point, const FPoint3 &dir, FPoint3 &result) const |
| Find the intersection point of a ray with the heightfield.
|
|
void | Initialize (const LinearUnits units, const DRECT &earthextents, float fMinHeight, float fMaxHeight) |
|
virtual void | SetEarthExtents (const DRECT &ext) |
|
int | PointIsAboveTerrain (const FPoint3 &p) const |
|
bool | ConvertEarthToSurfacePoint (const DPoint2 &epos, FPoint3 &p3, int iCultureFlags=0, bool bTrue=false) |
|
bool | ContainsWorldPoint (float x, float z) |
|
void | GetCenter (FPoint3 ¢er) |
|
void | SetCulture (CultureExtension *ext) |
|
void | Initialize (const DRECT &extents, float fMinHeight, float fMaxHeight) |
|
bool | ContainsEarthPoint (const DPoint2 &p, bool bInclusive=false) const |
|
DRECT & | GetEarthExtents () |
|
const DRECT & | GetEarthExtents () const |
|
void | GetHeightExtents (float &fMinHeight, float &fMaxHeight) const |
|
bool vtExternalHeightField3d::FindAltitudeAtPoint |
( |
const FPoint3 & |
p3, |
|
|
float & |
fAltitude, |
|
|
bool |
bTrue = false , |
|
|
int |
iCultureFlags = 0 , |
|
|
FPoint3 * |
vNormal = NULL |
|
) |
| const |
|
virtual |
Given a point in world coordinates, determine the elevation at that point.
- Parameters
-
p3 | The point to test. Only the X and Z values are used. |
fAltitude | The resulting elevation at that point, by reference. |
bTrue | True to test true elevation. False to test the displayed elevation (possibly exaggerated.) |
iCultureFlags | Pass 0 to test only the heightfield itself, non-zero to test any culture objects which may be sitting on the heightfield. Values include:
- CE_STRUCTURES Test structures on the ground.
- CE_ROADS Test roads on the ground.
- CE_ALL Test everything on the ground.
|
vNormal | If you supply a pointer to a vector, it will be set to the upward-pointing surface normal at the ground point. |
- Returns
- true if successful, false if there was nothing found at that point.
Implements vtHeightField3d.
The documentation for this class was generated from the following files:
- D:/job/3kb/gelistirme/umasoft/vtp-src/VTP/TerrainSDK/vtlib/vtosg/ExternalHeightField3d.h
- D:/job/3kb/gelistirme/umasoft/vtp-src/VTP/TerrainSDK/vtlib/vtosg/ExternalHeightField3d.cpp