Ignore:
Timestamp:
Jul 19, 2011, 9:47:13 PM (13 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/trunk/src/draw2D/visual_debug_hud.cpp

    r298 r305  
    1616
    1717#include <visual_debug_hud.h>
    18 #include <osgSim/HeightAboveTerrain>
     18#include <terrainQuery.h>
    1919
    2020using namespace osgVisual;
     
    142142
    143143        util::getWGS84ofCamera( sceneCamera, csn, lat, lon, alt );
    144         //util::queryHeightAboveTerrainInWGS84(hat, csn, lat, lon, alt);
    145         //util::queryHeightOfTerrain(hot, csn, lat, lon);
     144        util::queryHeightAboveTerrainInWGS84(hat, csn, lat, lon, alt);
     145        util::queryHeightOfTerrain(hot, csn, lat, lon);
    146146
    147         double x = 0;
     147        /*double x = 0;
    148148        double y = 0;
    149149        double z = 0;
    150150
    151151        util::getXYZofCamera( sceneCamera, x, y, z );
    152         hat = osgSim::HeightAboveTerrain::computeHeightAboveTerrain(csn, osg::Vec3d(x,y,z), false);
    153         hot = osgSim::HeightAboveTerrain::computeHeightOfTerrain(csn, osg::Vec3d(x,y,z), false);
     152        hat = terrainQuery::computeHeightAboveTerrain(csn, osg::Vec3d(x,y,z), terrainQuery::PAGE_HIGHEST_LOD);
     153        hot = terrainQuery::computeHeightOfTerrain(csn, osg::Vec3d(x,y,z), terrainQuery::PAGE_HIGHEST_LOD);*/
    154154
    155155
Note: See TracChangeset for help on using the changeset viewer.