11 #include <boost/unordered_map.hpp>
12 #include <boost/unordered_set.hpp>
32 class DtOsgTerrainPatchObject;
33 class DtStreamedSpeedTreeForest;
46 void onDataLoaded(
const osgEarth::Map* map,
const osgEarth::ModelLayer* layer,
47 const osg::Node* data);
48 void onDataUnLoaded(
const osgEarth::Map* map,
const osgEarth::ModelLayer* layer,
49 const osg::Node* data);
51 void onLayerLoaded(
const osgEarth::MapNode* mapNode,
52 const osgEarth::ModelLayer* layer);
53 void onLayerUnLoaded(
const osgEarth::MapNode* mapNode,
54 const osgEarth::ModelLayer* layer);
56 void addSpeedTreesToForest(
const std::string& forestName,
const osg::Node* group,
const DtVectorTreeRecords& treeRecords);
58 void removeTreesFromForest(
const std::string& forestName,
const osg::Node* dataNode);
62 bool hasForest(
const std::string& strName);
64 void destroyForest(
const std::string& strName);
65 size_t numForests(
void)
const;
66 void destroyAllForests(
void);
69 static std::string getForestName(
const osgEarth::Map* map,
70 const osgEarth::ModelLayer* layer);
73 typedef boost::unordered_map<std::string, DtStreamedSpeedTreeForest*>