20 #include <osgEarth/StateSetCache>
21 #include <osgEarth/Layer>
23 #include <osg/observer_ptr>
25 #include <boost/thread/mutex.hpp>
26 #include <boost/thread/condition_variable.hpp>
28 #include <tbb/atomic.h>
36 class SubstituteModelFilterNode;
37 class ExtrudeGeometryFilterNode;
48 class DtCellToGeoTypicalIndirectGeoMap;
49 class DtCellToGeoSpecificIndirectGeoMap;
50 class DtIndirectModelsContainer;
51 class DtModelSemanticsMapper;
52 class DtIndirectFeatureGeomHandler;
61 std::string requestMarkerName);
99 virtual void onDataPremerge(osg::Node* data);
102 virtual void onDataUnloaded(
const osg::Node* data);
108 virtual const osg::Node* preloadModelAndRunDynamicTerrainParser(
const std::string& modelName);
111 virtual void markTaskFinished();
115 virtual void processSubstituteModelFilterNodes(osg::Node* data);
118 virtual void processExtrudeGeometryFilterNodes(osg::Node* data);
121 virtual void processExtrudeGeometryFilterNode(osgEarth::ExtrudeGeometryFilterNode* pFeatureNode, osg::Node* data);
127 virtual void processSubstituteModelFilterNode(
const osgEarth::SubstituteModelFilterNode* pFeatureNode,
const osg::Node* data);
130 virtual void processSubstituteModelFilterNodeAsGT(
const osgEarth::SubstituteModelFilterNode* pFeatureNode,
const osg::Group* keyNode);
133 virtual void processSubstituteModelFilterNodeAsGS(
const osgEarth::SubstituteModelFilterNode* pFeatureNode,
const osg::Group* keyNode);
137 virtual void processCustomFeatures(osg::Node* data);
150 osg::observer_ptr<const osgEarth::Layer>
myLayer;
215 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:173
Virtual base class.
Definition: DtVirtualBaseClass.h:19
DtIndirectFeatureGeomHandler * myHandler
Definition: DtIndirectFeatureGeomHandler.h:67
Helper for managing a map of feature tile nodes (for a layer) to DtCellGeoSpecificIndirectGeo DtCellG...
Definition: DtCellToGeoSpecificIndirectGeoMap.h:39
std::map< std::string, bool > myIsProcessingNodeMap
Definition: DtIndirectFeatureGeomHandler.h:169
tbb::atomic< int > myActiveAsyncTasks
tracks how many threads are active from this particular instance, when 0 the tasks are done...
Definition: DtIndirectFeatureGeomHandler.h:176
#define DT_DLL_VRVOSGEARTH
Definition: vrvOsgEarth.h:21
std::map< std::string, NodeRefPtr > myProcessedNodeMap
Definition: DtIndirectFeatureGeomHandler.h:168
DtIndirectFeatureGeomHandlerAsyncLoader(DtIndirectFeatureGeomHandler *handler, std::string requestMarkerName)
constructor
boost::mutex myWaitMutex
Definition: DtIndirectFeatureGeomHandler.h:180
const bool myDynamicTerrainInstallerActive
Definition: DtIndirectFeatureGeomHandler.h:186
Helper for managing a map of feature tile nodes (for a layer) to DtCellGeoTypicalIndirectGeo DtCellGe...
Definition: DtCellToGeoTypicalIndirectGeoMap.h:39
osg::ref_ptr< osgEarth::StateSetCache > myStateSetCache
Definition: DtIndirectFeatureGeomHandler.h:182
DtIndirectModelsContainer * myGTModelsContainer
Definition: DtIndirectFeatureGeomHandler.h:154
DtDe & myDe
Definition: DtIndirectFeatureGeomHandler.h:217
class used to collect geometry coming in via feature_geom and add it to the indirect engine...
Definition: DtIndirectFeatureGeomHandler.h:78
Creates another async class to load nodes.
Definition: DtIndirectFeatureGeomHandler.h:56
DtIndirectFadeParameters myFadeParameters
Definition: DtIndirectFeatureGeomHandler.h:184
class for holding an indirect geometry registrar (which holds the information about how to draw model...
Definition: DtIndirectModelsContainer.h:43
Contains makVrv::DtVirtualBaseClass class.
std::string myRequestMarkerName
Definition: DtIndirectFeatureGeomHandler.h:68
Custom Feature Node.
Definition: CustomFeatureNode.h:43
osg::ref_ptr< const osg::Node > NodeRefPtr
Definition: DtIndirectFeatureGeomHandler.h:167
Contains the CustomFeatureNode class declaration.
const bool myCullFaceEnabled
Definition: DtIndirectFeatureGeomHandler.h:187
struct for holding the fade parameters used by the indirect rendering cull compute shader ...
Definition: DtIndirectFadeParameters.h:17
Definition: DtIndirectFeatureGeomHandler.h:191
DtCellToGeoSpecificIndirectGeoMap * myCellToGSIndirectGeoMap
GeoSpecific stuff.
Definition: DtIndirectFeatureGeomHandler.h:157
boost::mutex myProcessedNodeMapMutex
Definition: DtIndirectFeatureGeomHandler.h:165
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtCellToGeoTypicalIndirectGeoMap * myCellToGTIndirectGeoMap
GeoTypical stuff.
Definition: DtIndirectFeatureGeomHandler.h:153
DtCellToGeoSpecificIndirectGeoMap * myCellToProceduralGSIndirectGeoMap
Procedural stuff.
Definition: DtIndirectFeatureGeomHandler.h:161
DtModelSemanticsMapper & myModelSematicsMapper
Definition: DtIndirectFeatureGeomHandler.h:163
DtDe & myDe
Definition: DtIndirectFeatureGeomHandler.h:144
boost::condition_variable myWaitCondition
signaling mutex and condition
Definition: DtIndirectFeatureGeomHandler.h:179
boost::condition_variable myProcessedNodeMapCondition
Definition: DtIndirectFeatureGeomHandler.h:166
The DtModelSemanticsMapper object is responsible for mapping Names of model semantics declarations (f...
Definition: DtModelSemanticsMapper.h:27
Contains DLL export macros.
Contains makVrv::DtIndirectFadeParameters class.
osg::observer_ptr< const osgEarth::Layer > myLayer
store by observer ptr here onDataPremerge for a node can get launched (in another thread) just after ...
Definition: DtIndirectFeatureGeomHandler.h:150