11 #include <unordered_map>
12 #include <unordered_set>
33 class DtOsgTerrainPatchObject;
34 class DtStreamedSpeedTreeForest;
47 void onDataLoaded(
const osgEarth::Layer* layer,
48 const osg::Node* data);
49 void onDataUnLoaded(
const osgEarth::Layer* layer,
50 const osg::Node* data);
53 void onLayerVisibilityChanged(
const osgEarth::VisibleLayer* layer);
55 void onLayerLoaded(
const osgEarth::MapNode* mapNode,
56 osgEarth::Layer* layer);
57 void onLayerUnLoaded(
const osgEarth::MapNode* mapNode,
58 const osgEarth::Layer* layer);
60 void addSpeedTreesToForest(
const std::string& forestName,
const osg::Node* group,
const DtVectorTreeRecords& treeRecords);
62 void removeTreesFromForest(
const std::string& forestName,
const osg::Node* dataNode);
66 bool hasForest(
const std::string& strName);
68 void destroyForest(
const std::string& strName);
69 size_t numForests(
void)
const;
70 void destroyAllForests(
void);
73 static std::string getForestName(
const osgEarth::Layer* layer);
76 typedef std::unordered_map<std::string, DtStreamedSpeedTreeForest*>
DtStreamedSpeedTreeForest manages the streaming management for The DtSpeedTreeForest that is contains...
Definition: DtStreamedSpeedTreeForest.h:51
MapStreamedForests myStreamedForests
Definition: DtTerrainPatchObjectForestManager.h:78
#define DT_DLL_VRVST
Definition: vrvSt.h:20
DtOsgTerrainPatchObject & myPatch
Definition: DtTerrainPatchObjectForestManager.h:80
Contains DLL export macros.
std::vector< DtTreeRecord * > DtVectorTreeRecords
Definition: DtTreeRecord.h:137
A DtOsgTerrainPatchObject contains the methods for loading a file as a terrain. When loading a file a...
Definition: DtOsgTerrainPatchObject.h:51
DtTerrainPatchObjectForestManager manages a collection of DtStreamedSpeedTreeForest objects...
Definition: DtTerrainPatchObjectForestManager.h:40
std::unordered_map< std::string, DtStreamedSpeedTreeForest * > MapStreamedForests
Definition: DtTerrainPatchObjectForestManager.h:77
DtDe & myDe
Definition: DtTerrainPatchObjectForestManager.h:82
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
Contains makVrv::DtTreeRecord class.
Contains makVrv::DtTerrainPatchObject class.