DtStreamedSpeedTreeForest manages the streaming management for the DtSpeedTreeForest that it contains.
| virtual makVrv::DtStreamedSpeedTreeForest::~DtStreamedSpeedTreeForest |
( |
| ) |
|
|
virtual |
| makVrv::DtStreamedSpeedTreeForest::DtStreamedSpeedTreeForest |
( |
| ) |
|
|
delete |
Default Constructor not implemented.
Copy Constructor not implemented – Copy Not Allowed.
| makVrv::DtStreamedSpeedTreeForest::DtStreamedSpeedTreeForest |
( |
DtDe & |
de, |
|
|
DtUniqueID |
id |
|
) |
| |
|
protected |
Assignment Operator Not implemented Assignment Not Allowed.
| virtual void makVrv::DtStreamedSpeedTreeForest::onDataLoaded |
( |
const DtOsgTerrainPatchObject & |
patch, |
|
|
const osgEarth::Layer * |
layer, |
|
|
const osg::Node * |
data |
|
) |
| |
|
virtual |
Called to process new data as it is loaded by osgEarth. This is run after the data has been added to the scene graph. Main thread only.
| virtual void makVrv::DtStreamedSpeedTreeForest::onDataUnLoaded |
( |
const osgEarth::Layer * |
layer, |
|
|
const osg::Node * |
data |
|
) |
| |
|
virtual |
Called to unload data as it is unloaded by osgEarth. Main thread only.
| virtual void makVrv::DtStreamedSpeedTreeForest::onLayerVisibilityChanged |
( |
const osgEarth::VisibleLayer * |
layer | ) |
|
|
virtual |
Called when the visibility of a layer changes. Main thread only.
| virtual bool makVrv::DtStreamedSpeedTreeForest::removeForestFromMapData |
( |
const osg::Node * |
dataNode | ) |
|
|
virtual |
Un-maps the node from the cellID it is mapped to, if any. Returns true if the node was unmapped, false if the node was not mapped. Main thread only.
| virtual void makVrv::DtStreamedSpeedTreeForest::addTreesAndMapToCell |
( |
const osg::Node * |
dataNode, |
|
|
DtVectorTreeRecords & |
treeRecords |
|
) |
| |
|
virtual |
Adds unique trees to a unique cell in the underlying forest and maps the data node to the resulting cell ID. Background thread and Main thread.
| virtual void makVrv::DtStreamedSpeedTreeForest::addTreesAndProcessUninitialized |
( |
const osg::Node * |
dataNode, |
|
|
std::unordered_map< std::string, std::vector< DtTreeRecord * >> & |
modelDefsToTrees |
|
) |
| |
|
virtual |
Adds trees from multiple model definitions to unique cells, maps the data node to each resulting cell ID, and processes any uninitialized trees if the forest is already initialized. Background thread only (called from DtStreamedSpeedTreeThread).
| virtual void makVrv::DtStreamedSpeedTreeForest::processNewFeatures |
( |
const DtOsgTerrainPatchObject & |
patch, |
|
|
const osg::Node * |
data |
|
) |
| |
|
protectedvirtual |
Called to process features from the given patch from osgEarth. Runs a visitor to find all the features in the patch, and adds them to the forest.
Process a new feature as it is loaded by osgEarth.
| virtual bool makVrv::DtStreamedSpeedTreeForest::observerExists |
( |
const osg::Node * |
data | ) |
const |
|
protectedvirtual |
Returns true if an observer for the given data node already exists, false otherwise.
| virtual void makVrv::DtStreamedSpeedTreeForest::createObserver |
( |
const osgEarth::Layer * |
layer, |
|
|
const osg::Node * |
data |
|
) |
| |
|
protectedvirtual |
Creates an observer for the given data node and adds it to the map of observers.
| virtual void makVrv::DtStreamedSpeedTreeForest::destroyObserver |
( |
const osg::Node * |
data | ) |
|
|
protectedvirtual |
Deletes the observer associated with the given node and erases the observer from the map of observers.
| virtual void makVrv::DtStreamedSpeedTreeForest::removeAndDestroyAllObservers |
( |
| ) |
|
|
protectedvirtual |
Destroys all observers (called from the class destructor).
| virtual void makVrv::DtStreamedSpeedTreeForest::mapDataToCell |
( |
const osg::Node * |
dataNode, |
|
|
DtUniqueID |
cellID |
|
) |
| |
|
protectedvirtual |
Maps the node to the given cellID. Background thread and Main thread.
| static bool makVrv::DtStreamedSpeedTreeForest::verifyExists |
( |
const osg::Observer * |
lhs, |
|
|
const osg::Node * |
data |
|
) |
| |
|
staticprotected |
Helper function to verify that the given observer is observing the given data node. Only used in assertions.
| static bool makVrv::DtStreamedSpeedTreeForest::getValidTreeModelDefinition |
( |
DtDe & |
de, |
|
|
std::string & |
strCleanModelName, |
|
|
const std::string & |
strModelName, |
|
|
MarkerToModelDefinition & |
cache |
|
) |
| |
|
staticprotected |
Helper function to get the clean model name and determine if it is a valid speed tree name. Caches results in the given cache. Returns true if the model name is valid, false otherwise.
| friend makVrv::DtStreamedSpeedTreeForest::DtStreamedSpeedTreeForestCreator |
|
private |
| DtDe& makVrv::DtStreamedSpeedTreeForest::myDe |
|
protected |
| tbb::mutex makVrv::DtStreamedSpeedTreeForest::myMapCellsToSubCellsMutex |
|
protected |
| std::thread::id makVrv::DtStreamedSpeedTreeForest::myOwningThreadId |
|
protected |
The documentation for this class was generated from the following file: