VR-Forces 4.8 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 | Friends
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)
 callbacks Will be called when osgEarth loads a new feature layer More...
 
virtual void onDataPreMerge (const osgEarth::Map *map, const osgEarth::Layer *layer, osg::Node *newData)
 Invoked by the broker from the pager thread before new data is added to the scenegraph. More...
 
virtual void onDataLoaded (const osgEarth::Map *map, const osgEarth::Layer *layer, const osg::Node *newData)
 Will be called when osgEarth loads data for a layer. More...
 
virtual void onDataUnloaded (const osgEarth::Map *map, const osgEarth::Layer *layer, const osg::Node *oldData)
 Will be called when data for a given layer is about to be deleted. More...
 
virtual const std::string & instanceClassName () const
 Get the class type for this particular instance of the Callback derrived 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)
 

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 boost::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

DtDemyDe
 
DtOsgEarthFeatureDataBrokermyFeatureDataBroker
 
MapLayerToLayerManagerIndirectGeometry myMapLayerToLayerManagerIndirectGeometry
 

Static Protected Attributes

static const std::string theClassName
 

Private Member Functions

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

Friends

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

Additional Inherited Members

- Static Protected Member Functions inherited from makVrv::DtOsgEarthFeatureDataBroker::Callback
static bool isModelLayer (const osgEarth::Layer *layer)
 

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 ( )
private

CTOR (unimplemented default CTOR)

makVrv::DtIndirectGeometryCallback::DtIndirectGeometryCallback ( const DtIndirectGeometryCallback other)
private

Copy Constructor Not implemented – Copy Constructor Not Allowed.

Member Function Documentation

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

Assignment Operator Not implemented – Assignment Not Allowed.

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

callbacks Will be called when osgEarth loads a new feature layer

Implements makVrv::DtOsgEarthFeatureDataBroker::Callback.

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

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::Map *  map,
const osgEarth::Layer *  layer,
const osg::Node *  newData 
)
virtual

Will be called when osgEarth loads data for a layer.

Implements makVrv::DtOsgEarthFeatureDataBroker::Callback.

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

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
virtual

Get the class type for this particular instance of the Callback derrived 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)

Friends And Related Function Documentation

friend class DtIndirectGeometryCallbackCreator
friend

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

Member Data Documentation

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 Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)