22 #include <unordered_map>
24 #include <tbb/mutex.h>
42 class CustomFeatureNode;
48 class DtSpeedTreeForest;
49 class DtOsgTerrainPatchObject;
50 class CellNodeObserver;
94 const osgEarth::Layer* layer,
const osg::Node* data);
98 virtual void onDataUnLoaded(
const osgEarth::Layer* layer,
const osg::Node* data);
102 virtual void onLayerVisibilityChanged(
const osgEarth::VisibleLayer* layer);
107 virtual bool removeForestFromMapData(
const osg::Node* dataNode);
112 virtual void addTreesAndMapToCell(
const osg::Node* dataNode,
DtVectorTreeRecords& treeRecords);
118 virtual void addTreesAndProcessUninitialized(
const osg::Node* dataNode,
119 std::unordered_map<std::string, std::vector<DtTreeRecord*>>& modelDefsToTrees);
132 virtual bool observerExists(
const osg::Node* data)
const;
135 virtual void createObserver(
const osgEarth::Layer* layer,
const osg::Node* data);
139 virtual void destroyObserver(
const osg::Node* data);
142 virtual void removeAndDestroyAllObservers();
146 virtual void mapDataToCell(
const osg::Node* dataNode,
DtUniqueID cellID);
152 static bool verifyExists(
const osg::Observer* lhs,
const osg::Node* data);
159 static bool getValidTreeModelDefinition(
DtDe& de, std::string& strCleanModelName,
DtSpeedTreeForest * myForest
Definition: DtStreamedSpeedTreeForest.h:166
std::map< std::string, std::pair< std::string, bool > > MarkerToModelDefinition
Definition: DtStreamedSpeedTreeForest.h:154
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
DtDe & myDe
Definition: DtStreamedSpeedTreeForest.h:164
DtStreamedSpeedTreeForest manages the streaming management for the DtSpeedTreeForest that it contains...
Definition: DtStreamedSpeedTreeForest.h:65
#define DT_DLL_VRVST
Definition: vrvSt.h:20
const char * creatorTypeName< DtStreamedSpeedTreeForest >()
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtStreamedSpeedTreeForest.h:60
Contains DLL export macros.
std::vector< DtTreeRecord * > DtVectorTreeRecords
Definition: DtTreeRecord.h:139
tbb::mutex myMapCellsToSubCellsMutex
Definition: DtStreamedSpeedTreeForest.h:174
DtVirtualBaseClassCreator< DtStreamedSpeedTreeForest, DtUniqueID > DtStreamedSpeedTreeForestCreator
creator
Definition: DtStreamedSpeedTreeForest.h:53
std::unordered_map< const osg::Node *, CellNodeObserver * > MapCellsToObservers
Definition: DtStreamedSpeedTreeForest.h:168
MapCellsToSubCells myMapCellsToSubCells
Definition: DtStreamedSpeedTreeForest.h:173
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:23
Contains makVrv::DtVirtualBaseClass class.
DtSpeedTreeForest is the SpeedTree implementation of a distributed DtForestObject.
Definition: DtSpeedTreeForest.h:50
Custom Feature Node.
Definition: CustomFeatureNode.h:43
std::thread::id myOwningThreadId
Definition: DtStreamedSpeedTreeForest.h:176
A DtOsgTerrainPatchObject contains the methods for loading a file as a terrain. When loading a file a...
Definition: DtOsgTerrainPatchObject.h:54
std::set< DtUniqueID > IdSet
Definition: DtStreamedSpeedTreeForest.h:171
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
MapCellsToObservers myMapCellsToObservers
Definition: DtStreamedSpeedTreeForest.h:169
friend DtStreamedSpeedTreeForestCreator
Definition: DtStreamedSpeedTreeForest.h:67
Contains makVrv::DtUniqueID type.
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:76
Contains makVrv::DtTreeRecord class.
std::unordered_map< const osg::Node *, IdSet > MapCellsToSubCells
Definition: DtStreamedSpeedTreeForest.h:172