19 #include <osg/Matrixd>
23 #include <unordered_map>
24 #include <boost/bind/bind.hpp>
26 #define DTCELLINDIRECTGEO_CONSTRUCT_DESTRUCT_DEBUG 0
31 class DtCullShaderConfig;
32 class DtIndirectModelsContainer;
33 class DtIndirectGeometry;
34 class DtIndirectFadeParameters;
35 class DtCullShaderConfig;
36 class DtLightPointNode;
74 std::function<void(const osg::ref_ptr<osg::Group>& origionalNode,
osg::ref_ptr<osg::Group>& newRootNode, osg::NodePath& newNodePath)> myNodeInsertionCallback;
86 ,
bool includeIntersectionGeoInNodePath
109 virtual void setParent(
const osg::Group* parent);
116 virtual const osg::BoundingBoxd& boundingBox(
void)
const;
124 virtual osg::Group* indirectIntersectionGroup();
132 virtual const std::unordered_map<int, int>& modelIdToNumInstances(
void)
const;
135 virtual const std::unordered_map<int, osg::ref_ptr<osg::Node>>& modelIdToModelNodeMap(
void)
const;
140 virtual void expandBoundingBox(
const osg::Node* modelNode,
const osg::Matrixd& instanceXForm);
143 virtual void expandBoundingBoxByLightPointBounds(
const DtLightPointNode* lightPointNode,
144 const osg::Matrixd& instanceXForm);
150 #if DTCELLINDIRECTGEO_CONSTRUCT_DESTRUCT_DEBUG
151 static std::atomic<int> myBaseRefCount;
DtDe & myDe
Definition: DtCellIndirectGeo.h:161
osg::ref_ptr< osg::Group > myIndirectGeoIntersectionGroup
Definition: DtCellIndirectGeo.h:155
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Helper structure for adding instances to DtCellIndirectGeo.
Definition: DtCellIndirectGeo.h:40
bool myAddTopLevelSwitch
Definition: DtCellIndirectGeo.h:64
std::deque< NodeSwitchInfoPair > DequeNodeSwitchInfoPairs
Definition: DtIndirectSwitchManager.h:76
osg::NodePath myNodePath
Definition: DtCellIndirectGeo.h:62
shader configuration storage class. Has 3 available options which are described in the constructor's ...
Definition: DtCullShaderConfig.h:21
DtIndirectDofManager::DequeNodeDofInfoPairs myDofStack
Definition: DtCellIndirectGeo.h:68
bool myIncludeIntersectionGeoInNodePath
Definition: DtCellIndirectGeo.h:164
osg::ref_ptr< DtIndirectGeometry > myIndirectGeometry
Definition: DtCellIndirectGeo.h:154
class for holding an indirect geometry registrar (which holds the information about how to draw model...
Definition: DtIndirectModelsContainer.h:71
Helper for managing indirect geometry, its intersection group and registrar corresponding to a 'tile ...
Definition: DtCellIndirectGeo.h:80
std::deque< NodeDofInfoPair > DequeNodeDofInfoPairs
Definition: DtIndirectDofManager.h:76
Contains makVrv::DtIndirectDofManager class.
\ ::, which allows us to hook into our indirect engine to render using indirect rendering...
Definition: DtIndirectGeometry.h:120
DtIndirectSwitchManager::DequeNodeSwitchInfoPairs mySwitchStack
Definition: DtCellIndirectGeo.h:67
const osg::Node * myModelNode
Definition: DtCellIndirectGeo.h:60
struct for holding the fade parameters used by the indirect rendering cull compute shader ...
Definition: DtIndirectFadeParameters.h:17
OpenThreads::Mutex Mutex
Definition: DtOsgThreadingUtils.h:12
Derived from osg::Node and is a replacement for the osgSim::LightPointNode represents a group of ligh...
Definition: DtLightPointNode.h:37
bool myFirstInstance
Definition: DtCellIndirectGeo.h:162
int myModelId
Definition: DtCellIndirectGeo.h:58
Contains makVrv::DtIndirectSwitchManager class.
DtIndirectLodManager::DequeIndirectLodInfos myLodStack
Definition: DtCellIndirectGeo.h:66
bool myAddToIntersectionGroup
Definition: DtCellIndirectGeo.h:63
osg::BoundingBoxd myBoundingBox
bounding box computation management
Definition: DtCellIndirectGeo.h:158
std::unordered_map< int, osg::ref_ptr< osg::Node > > myModelIdToModelNode
Definition: DtCellIndirectGeo.h:167
DtIndirectGeometrySubType
Definition: DtIndirectGeometrySubType.h:16
Contains makVrv::DtIndirectLodManager class.
Contains DLL export macros.
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
bool myOwnsModelsContainer
Definition: DtCellIndirectGeo.h:148
std::deque< IndirectLodInfo > DequeIndirectLodInfos
Definition: DtIndirectLodManager.h:67
const osg::Matrixd & myInstanceXForm
Definition: DtCellIndirectGeo.h:59
DtIndirectModelsContainer * myModelsContainer
Definition: DtCellIndirectGeo.h:147
std::unordered_map< int, int > myModelIdToNumInstances
Definition: DtCellIndirectGeo.h:166
Threading::Mutex myMutableBoundingBoxMutex
Definition: DtCellIndirectGeo.h:159