20 #include <boost/thread/mutex.hpp>
21 #include <boost/thread/condition_variable.hpp>
23 #include <tbb/atomic.h>
28 #include <osgEarth/StateSetCache>
33 class SubstituteModelFilterNode;
34 class ExtrudeGeometryFilterNode;
45 class DtCellToGeoTypicalIndirectGeoMap;
46 class DtCellToGeoSpecificIndirectGeoMap;
47 class DtIndirectModelsContainer;
48 class DtModelSemanticsMapper;
49 class DtIndirectFeatureGeomHandler;
58 std::string requestMarkerName);
96 virtual void onDataPremerge(osg::Node* data);
99 virtual void onDataUnloaded(
const osg::Node* data);
105 virtual const osg::Node* preloadModelAndRunDynamicTerrainParser(
const std::string& modelName);
108 virtual void markTaskFinished();
112 virtual void processSubstituteModelFilterNodes(osg::Node* data);
115 virtual void processExtrudeGeometryFilterNodes(osg::Node* data);
118 virtual void processExtrudeGeometryFilterNode(osgEarth::ExtrudeGeometryFilterNode* pFeatureNode, osg::Node* data);
124 virtual void processSubstituteModelFilterNode(
const osgEarth::SubstituteModelFilterNode* pFeatureNode,
const osg::Node* data);
127 virtual void processSubstituteModelFilterNodeAsGT(
const osgEarth::SubstituteModelFilterNode* pFeatureNode,
const osg::Group* keyNode);
130 virtual void processSubstituteModelFilterNodeAsGS(
const osgEarth::SubstituteModelFilterNode* pFeatureNode,
const osg::Group* keyNode);
134 virtual void processCustomFeatures(osg::Node* data);
205 static const std::string& theClassName();
virtual tbb::task * execute()
runs the task in a background thread
static tbb::atomic< int > theTotalNumActiveAsyncTasks
tracks how many total threads are active to avoid preemption
Definition: DtIndirectFeatureGeomHandler.h:165
Virtual base class.
Definition: DtVirtualBaseClass.h:22
DtIndirectFeatureGeomHandler * myHandler
Definition: DtIndirectFeatureGeomHandler.h:64
struct for holding the fade parameters used by the indirect rendering cull compute shader ...
Definition: DtGpuCullingAndLodDefines.h:21
Helper for managing a map of feature tile nodes (for a layer) to DtCellGeoSpecificIndirectGeo DtCellG...
Definition: DtCellToGeoSpecificIndirectGeoMap.h:36
std::map< std::string, bool > myIsProcessingNodeMap
Definition: DtIndirectFeatureGeomHandler.h:161
bool myDynamicTerrainInstallerActive
Definition: DtIndirectFeatureGeomHandler.h:177
tbb::atomic< int > myActiveAsyncTasks
tracks how many threads are active from this particular instance, when 0 the tasks are done...
Definition: DtIndirectFeatureGeomHandler.h:168
#define DT_DLL_VRVOSGEARTH
Definition: vrvOsgEarth.h:21
std::map< std::string, NodeRefPtr > myProcessedNodeMap
Definition: DtIndirectFeatureGeomHandler.h:160
DtIndirectFeatureGeomHandlerAsyncLoader(DtIndirectFeatureGeomHandler *handler, std::string requestMarkerName)
constructor
boost::mutex myWaitMutex
Definition: DtIndirectFeatureGeomHandler.h:172
Helper for managing a map of feature tile nodes (for a layer) to DtCellGeoTypicalIndirectGeo DtCellGe...
Definition: DtCellToGeoTypicalIndirectGeoMap.h:31
osg::ref_ptr< osgEarth::StateSetCache > myStateSetCache
Definition: DtIndirectFeatureGeomHandler.h:174
DtIndirectModelsContainer * myGTModelsContainer
Definition: DtIndirectFeatureGeomHandler.h:146
DtDe & myDe
Definition: DtIndirectFeatureGeomHandler.h:207
class used to collect geometry coming in via feature_geom and add it to the indirect engine...
Definition: DtIndirectFeatureGeomHandler.h:75
Creates another async class to load nodes.
Definition: DtIndirectFeatureGeomHandler.h:53
DtIndirectFadeParameters myFadeParameters
Definition: DtIndirectFeatureGeomHandler.h:176
class for holding an indirect geometry registrar (which holds the information about how to draw model...
Definition: DtIndirectModelsContainer.h:47
const osgEarth::Layer & myLayer
Definition: DtIndirectFeatureGeomHandler.h:142
Contains makVrv::DtVirtualBaseClass class.
std::string myRequestMarkerName
Definition: DtIndirectFeatureGeomHandler.h:65
Custom Feature Node.
Definition: CustomFeatureNode.h:43
osg::ref_ptr< const osg::Node > NodeRefPtr
Definition: DtIndirectFeatureGeomHandler.h:159
Contains the CustomFeatureNode class declaration.
Definition: DtIndirectFeatureGeomHandler.h:181
Declarations for classes used in DtICullingAndLOD.
DtCellToGeoSpecificIndirectGeoMap * myCellToGSIndirectGeoMap
GeoSpecific stuff.
Definition: DtIndirectFeatureGeomHandler.h:149
boost::mutex myProcessedNodeMapMutex
Definition: DtIndirectFeatureGeomHandler.h:157
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtCellToGeoTypicalIndirectGeoMap * myCellToGTIndirectGeoMap
GeoTypical stuff.
Definition: DtIndirectFeatureGeomHandler.h:145
DtCellToGeoSpecificIndirectGeoMap * myCellToProceduralGSIndirectGeoMap
Procedural stuff.
Definition: DtIndirectFeatureGeomHandler.h:153
DtModelSemanticsMapper & myModelSematicsMapper
Definition: DtIndirectFeatureGeomHandler.h:155
DtDe & myDe
Definition: DtIndirectFeatureGeomHandler.h:141
boost::condition_variable myWaitCondition
signaling mutex and condition
Definition: DtIndirectFeatureGeomHandler.h:171
boost::condition_variable myProcessedNodeMapCondition
Definition: DtIndirectFeatureGeomHandler.h:158
The DtModelSemanticsMapper object is responsible for mapping Names of model semantics declarations (f...
Definition: DtModelSemanticsMapper.h:27
Contains DLL export macros.