VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
makVrv::DtIndirectGeometryCallback Class Reference

DtIndirectGeometryCallback is a data broker callback that handles feature tile load/unload callbacks to handle the rendering of these features using indirect rendering. More...

Inheritance diagram for makVrv::DtIndirectGeometryCallback:
Inheritance graph
[legend]

Public Member Functions

virtual ~DtIndirectGeometryCallback ()
 DTOR. More...
 
virtual void onLayerLoaded (const osgEarth::MapNode *mapNode, osgEarth::Layer *layer) override
 callbacks Will be called when osgEarth loads a new feature layer More...
 
virtual void onLayerOpened (const osgEarth::MapNode *mapNode, osgEarth::Layer *layer)
 Will be called when osgEarth closes the layer. More...
 
virtual void onLayerClosed (const osgEarth::MapNode *mapNode, osgEarth::Layer *layer)
 Will be called when osgEarth closes the layer. More...
 
virtual void processLayer (const osgEarth::MapNode *mapNode, osgEarth::Layer *layer)
 Will be called when osgEarth loads a new feature layer or opens a layer. More...
 
virtual void onDataPreMerge (const osgEarth::Layer *layer, osg::Node *newData) override
 Invoked by the broker from the pager thread before new data is added to the scenegraph. More...
 
virtual void onDataLoaded (const osgEarth::Layer *layer, const osg::Node *newData) override
 Will be called when osgEarth loads data for a layer. More...
 
virtual void onDataUnloaded (const osgEarth::Layer *layer, const osg::Node *oldData) override
 Will be called when data for a given layer is about to be deleted. More...
 
virtual const std::string & instanceClassName () const override
 Get the class type for this particular instance of the Callback derived class. More...
 
virtual void setFeatureDataBroker (DtOsgEarthFeatureDataBroker *featureDataBroker)
 Set the feature data broker that this callback is installed on. More...
 
- Public Member Functions inherited from makVrv::DtOsgEarthFeatureDataBroker::Callback
virtual float callbackOrder ()
 used to specify an order that the callbacks should run. More...
 
DtIndirectFadeParameters parseFadeParametersForLayer (const osgEarth::MapNode *mapNode, osgEarth::Layer *layer)
 get the fade parameters for a particular layer. More...
 

Static Public Member Functions

static const std::string & className ()
 Get the class name ("indirectGeometryManager", which is used to register with the DtOsgEarthFeatureDataBroker) More...
 

Protected Types

typedef std::unordered_map
< const osgEarth::Layer
*, DtIndirectGeometryLayerManager * > 
MapLayerToLayerManagerIndirectGeometry
 map of layers in the osg earth terrain to the layer manager for each layer More...
 

Protected Member Functions

 DtIndirectGeometryCallback (DtDe &de)
 CTOR. More...
 
virtual bool checkForIndirectRenderingParameter (osgEarth::Layer *layer)
 check the layer's config for the indirect_enabled flag and use it to determine if indirect should be used for this layer. More...
 

Protected Attributes

friend DtIndirectGeometryCallbackCreator
 creator friend class so it is the only one that can create new DtIndirectGeometryCallback More...
 
DtDemyDe
 
DtOsgEarthFeatureDataBrokermyFeatureDataBroker
 
MapLayerToLayerManagerIndirectGeometry myMapLayerToLayerManagerIndirectGeometry
 

Static Protected Attributes

static const std::string theClassName
 

Private Member Functions

 DtIndirectGeometryCallback ()=delete
 CTOR (unimplemented default CTOR) More...
 
DtIndirectGeometryCallbackoperator= (const DtIndirectGeometryCallback &other)=delete
 Assignment Operator Not implemented – Assignment Not Allowed. More...
 
 DtIndirectGeometryCallback (const DtIndirectGeometryCallback &other)=delete
 Copy Constructor Not implemented – Copy Constructor Not Allowed. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from makVrv::DtOsgEarthFeatureDataBroker::Callback
static bool isModelLayer (const osgEarth::Layer *layer)
 check a layer to see if it is a model layer More...
 

Detailed Description

DtIndirectGeometryCallback is a data broker callback that handles feature tile load/unload callbacks to handle the rendering of these features using indirect rendering.

Member Typedef Documentation

map of layers in the osg earth terrain to the layer manager for each layer

Constructor & Destructor Documentation

virtual makVrv::DtIndirectGeometryCallback::~DtIndirectGeometryCallback ( )
virtual

DTOR.

makVrv::DtIndirectGeometryCallback::DtIndirectGeometryCallback ( DtDe de)
protected

CTOR.

makVrv::DtIndirectGeometryCallback::DtIndirectGeometryCallback ( )
privatedelete

CTOR (unimplemented default CTOR)

makVrv::DtIndirectGeometryCallback::DtIndirectGeometryCallback ( const DtIndirectGeometryCallback other)
privatedelete

Copy Constructor Not implemented – Copy Constructor Not Allowed.

Member Function Documentation

DtIndirectGeometryCallback& makVrv::DtIndirectGeometryCallback::operator= ( const DtIndirectGeometryCallback other)
privatedelete

Assignment Operator Not implemented – Assignment Not Allowed.

virtual void makVrv::DtIndirectGeometryCallback::onLayerLoaded ( const osgEarth::MapNode *  mapNode,
osgEarth::Layer *  layer 
)
overridevirtual

callbacks Will be called when osgEarth loads a new feature layer

Implements makVrv::DtOsgEarthFeatureDataBroker::Callback.

virtual void makVrv::DtIndirectGeometryCallback::onLayerOpened ( const osgEarth::MapNode *  mapNode,
osgEarth::Layer *  layer 
)
virtual

Will be called when osgEarth closes the layer.

Reimplemented from makVrv::DtOsgEarthFeatureDataBroker::Callback.

virtual void makVrv::DtIndirectGeometryCallback::onLayerClosed ( const osgEarth::MapNode *  mapNode,
osgEarth::Layer *  layer 
)
virtual

Will be called when osgEarth closes the layer.

Reimplemented from makVrv::DtOsgEarthFeatureDataBroker::Callback.

virtual void makVrv::DtIndirectGeometryCallback::processLayer ( const osgEarth::MapNode *  mapNode,
osgEarth::Layer *  layer 
)
virtual

Will be called when osgEarth loads a new feature layer or opens a layer.

virtual void makVrv::DtIndirectGeometryCallback::onDataPreMerge ( const osgEarth::Layer *  layer,
osg::Node *  newData 
)
overridevirtual

Invoked by the broker from the pager thread before new data is added to the scenegraph.

called in a background loader thread

Implements makVrv::DtOsgEarthFeatureDataBroker::Callback.

virtual void makVrv::DtIndirectGeometryCallback::onDataLoaded ( const osgEarth::Layer *  layer,
const osg::Node *  newData 
)
overridevirtual

Will be called when osgEarth loads data for a layer.

Implements makVrv::DtOsgEarthFeatureDataBroker::Callback.

virtual void makVrv::DtIndirectGeometryCallback::onDataUnloaded ( const osgEarth::Layer *  layer,
const osg::Node *  oldData 
)
overridevirtual

Will be called when data for a given layer is about to be deleted.

Reimplemented from makVrv::DtOsgEarthFeatureDataBroker::Callback.

virtual const std::string& makVrv::DtIndirectGeometryCallback::instanceClassName ( ) const
overridevirtual

Get the class type for this particular instance of the Callback derived class.

Implements makVrv::DtOsgEarthFeatureDataBroker::Callback.

virtual void makVrv::DtIndirectGeometryCallback::setFeatureDataBroker ( DtOsgEarthFeatureDataBroker featureDataBroker)
virtual

Set the feature data broker that this callback is installed on.

virtual bool makVrv::DtIndirectGeometryCallback::checkForIndirectRenderingParameter ( osgEarth::Layer *  layer)
protectedvirtual

check the layer's config for the indirect_enabled flag and use it to determine if indirect should be used for this layer.

static const std::string& makVrv::DtIndirectGeometryCallback::className ( )
static

Get the class name ("indirectGeometryManager", which is used to register with the DtOsgEarthFeatureDataBroker)

Member Data Documentation

friend makVrv::DtIndirectGeometryCallback::DtIndirectGeometryCallbackCreator
protected

creator friend class so it is the only one that can create new DtIndirectGeometryCallback

const std::string makVrv::DtIndirectGeometryCallback::theClassName
staticprotected
DtDe& makVrv::DtIndirectGeometryCallback::myDe
protected
DtOsgEarthFeatureDataBroker* makVrv::DtIndirectGeometryCallback::myFeatureDataBroker
protected
MapLayerToLayerManagerIndirectGeometry makVrv::DtIndirectGeometryCallback::myMapLayerToLayerManagerIndirectGeometry
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)