11 #include <boost/unordered_map.hpp>
12 #include <boost/unordered_set.hpp>
31 class DtOsgTerrainPatchObject;
32 class DtStreamedSpeedTreeForest;
45 void onDataLoaded(osgEarth::Map* map, osgEarth::ModelLayer* layer,
47 void onDataUnLoaded(osgEarth::Map* map, osgEarth::ModelLayer* layer,
50 void onLayerLoaded(osgEarth::MapNode* mapNode,
51 osgEarth::ModelLayer* layer);
52 void onLayerUnLoaded(osgEarth::MapNode* mapNode,
53 osgEarth::ModelLayer* layer);
57 bool hasForest(
const std::string& strName);
59 void destroyForest(
const std::string& strName);
60 size_t numForests(
void)
const;
61 void destroyAllForests(
void);
64 static std::string getForestName(osgEarth::Map* map,
65 osgEarth::ModelLayer* layer);
68 typedef boost::unordered_map<std::string, DtStreamedSpeedTreeForest*>