22 #include <osgEarth/StateSetCache>
23 #include <osgEarth/Layer>
25 #include <osg/observer_ptr>
27 #include <boost/thread/mutex.hpp>
28 #include <boost/thread/condition_variable.hpp>
30 #include <tbb/atomic.h>
33 #include <unordered_map>
34 #include <unordered_set>
39 class SubstituteModelFilterNode;
40 class ExtrudeGeometryFilterNode;
51 class DtCellToGeoTypicalIndirectGeoMap;
52 class DtCellToGeoSpecificIndirectGeoMap;
53 class DtIndirectModelsContainer;
54 class DtModelSemanticsMapper;
55 class DtIndirectFeatureGeomHandler;
56 class DtCellIndirectGeo;
65 std::string requestMarkerName);
67 virtual tbb::task* execute();
112 virtual void onDataPremerge(osg::Node* data);
115 virtual void onDataUnloaded(
const osg::Node* data);
121 virtual const osg::Node* preloadModelAndRunDynamicTerrainParser(
const std::string& modelName);
124 virtual void markTaskFinished();
127 virtual void slot_postTick();
131 virtual void processSubstituteModelFilterNodes(osg::Node* data);
134 virtual void processExtrudeGeometryFilterNodes(osg::Node* data);
137 virtual void processExtrudeGeometryFilterNode(osgEarth::ExtrudeGeometryFilterNode* pFeatureNode, osg::Node* data);
143 virtual void processSubstituteModelFilterNode(
const osgEarth::SubstituteModelFilterNode* pFeatureNode,
const osg::Node* data);
146 virtual void processSubstituteModelFilterNodeAsGT(
const osgEarth::SubstituteModelFilterNode* pFeatureNode,
const osg::Group* keyNode);
149 virtual void processSubstituteModelFilterNodeAsGS(
const osgEarth::SubstituteModelFilterNode* pFeatureNode,
const osg::Group* keyNode);
153 virtual void processCustomFeatures(osg::Node* data);
159 virtual void setLayerMask(
const osgEarth::Layer* layer)
const;
162 virtual void turnOffIntersectionsIfSoSpecified(
const osgEarth::Layer* layer)
const;
172 osg::observer_ptr<const osgEarth::Layer>
myLayer;
friend DtIndirectFeatureGeomHandlerCreator
creator friend class so it is the only one that can create new DtIndirectFeatureGeomHandlers ...
Definition: DtIndirectFeatureGeomHandler.h:102
static tbb::atomic< int > theTotalNumActiveAsyncTasks
tracks how many total threads are active to avoid preemption
Definition: DtIndirectFeatureGeomHandler.h:195
DtIndirectFeatureGeomHandler * myHandler
Definition: DtIndirectFeatureGeomHandler.h:71
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:191
tbb::atomic< int > myActiveAsyncTasks
tracks how many threads are active from this particular instance, when 0 the tasks are done...
Definition: DtIndirectFeatureGeomHandler.h:198
#define DT_DLL_VRVOSGEARTH
Definition: vrvOsgEarth.h:21
std::map< std::string, NodeRefPtr > myProcessedNodeMap
Definition: DtIndirectFeatureGeomHandler.h:190
boost::mutex myWaitMutex
Definition: DtIndirectFeatureGeomHandler.h:202
const bool myDynamicTerrainInstallerActive
Definition: DtIndirectFeatureGeomHandler.h:208
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:204
DtIndirectModelsContainer * myGTModelsContainer
Definition: DtIndirectFeatureGeomHandler.h:176
class used to collect geometry coming in via feature_geom and add it to the indirect engine...
Definition: DtIndirectFeatureGeomHandler.h:91
const char * creatorTypeName< DtIndirectFeatureGeomHandler >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtIndirectFeatureGeomHandler.h:83
DtVirtualBaseClassCreator< DtIndirectFeatureGeomHandler, const osgEarth::Layer &, const DtIndirectFadeParameters &, const bool &, const bool & > DtIndirectFeatureGeomHandlerCreator
creator
Definition: DtIndirectFeatureGeomHandler.h:76
Creates another async class to load nodes.
Definition: DtIndirectFeatureGeomHandler.h:60
DtIndirectFadeParameters myFadeParameters
Definition: DtIndirectFeatureGeomHandler.h:206
class for holding an indirect geometry registrar (which holds the information about how to draw model...
Definition: DtIndirectModelsContainer.h:55
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:22
std::string myRequestMarkerName
Definition: DtIndirectFeatureGeomHandler.h:72
Custom Feature Node.
Definition: CustomFeatureNode.h:43
osg::ref_ptr< const osg::Node > NodeRefPtr
Definition: DtIndirectFeatureGeomHandler.h:189
Contains the CustomFeatureNode class declaration.
std::unordered_set< std::string > myWarningLoggedForNotFoundModel
Definition: DtIndirectFeatureGeomHandler.h:217
const bool myCullFaceEnabled
Definition: DtIndirectFeatureGeomHandler.h:209
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
struct for holding the fade parameters used by the indirect rendering cull compute shader ...
Definition: DtIndirectFadeParameters.h:17
Base class to provide boost signal/slot management.
DtCellToGeoSpecificIndirectGeoMap * myCellToGSIndirectGeoMap
GeoSpecific stuff.
Definition: DtIndirectFeatureGeomHandler.h:179
boost::mutex myProcessedNodeMapMutex
Definition: DtIndirectFeatureGeomHandler.h:187
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
DtCellToGeoTypicalIndirectGeoMap * myCellToGTIndirectGeoMap
GeoTypical stuff.
Definition: DtIndirectFeatureGeomHandler.h:175
DtCellToGeoSpecificIndirectGeoMap * myCellToProceduralGSIndirectGeoMap
Procedural stuff. Is also geospecific in the sense that each tile will have its own registrar...
Definition: DtIndirectFeatureGeomHandler.h:183
DtModelSemanticsMapper & myModelSematicsMapper
Definition: DtIndirectFeatureGeomHandler.h:185
DtDe & myDe
Definition: DtIndirectFeatureGeomHandler.h:166
boost::condition_variable myWaitCondition
signaling mutex and condition
Definition: DtIndirectFeatureGeomHandler.h:201
boost::condition_variable myProcessedNodeMapCondition
Definition: DtIndirectFeatureGeomHandler.h:188
The DtModelSemanticsMapper object is responsible for mapping Names of model semantics declarations (f...
Definition: DtModelSemanticsMapper.h:27
DtSignalConnectionManager myConnections
manager for connections
Definition: DtIndirectFeatureGeomHandler.h:212
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:172