14 #include <osg/ref_ptr>
17 #include <osgEarth/GeoData>
27 namespace makVrv {
namespace oe {
namespace CDB
46 void createCdbGeoCellIndex(
const DatasetInfo& datasetInfo, osgEarth::GeoExtent& CdbGeoExtent,
bool readMaxLod);
49 bool isCdbGeocellAvailable(
const std::string& latitude,
const std::string& longitude)
const;
52 bool isCdbGeocellAvailable(
const int latitude,
const int longitude)
const;
58 osg::Image* getImage(
const std::string& CdbTile);
61 void addImage(
const std::string& CdbTile, osg::ref_ptr< osg::Image > rbgImage);
64 float imageHitPercentage();
67 osg::HeightField* getHeightField(
const std::string& CdbTile);
70 void addHeightField(
const std::string& CdbTile, osg::ref_ptr< osg::HeightField > elevation);
73 float heightFieldHitPercentage();
76 void setCacheSize(
int cacheSize);
82 int maxElevationLod()
const;
85 int maxImageryLod()
const;
88 int maxRasterMaterialLod()
const;
103 std::map<std::string, DtLogitudeGeocellMap> myCdbGeoCellMap;
117 static bool doesElevationCacheExist(
const std::string& shpInstanceFile,
const std::string& cachePath);
119 static bool getElevationFromCache(
const std::string& shpInstanceFile,
const std::string& cachePath, std::vector<osg::Vec3d>& modelPoints);
121 static bool saveElevationToCache(
const std::string& shpInstanceFile,
const std::string& cachePath,
const std::vector<osg::Vec3d>& modelPoints);