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 Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Friends
makVrv::DtOsgEarthStreamedFeatureCallback Class Reference

DtOsgEarthFeatureDataBroker::Callback that is fired when a new feature data 'tile' pages in. More...

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

Public Member Functions

virtual void onLayerLoaded (const osgEarth::MapNode *mapNode, osgEarth::Layer *layer)
 
virtual void onDataPreMerge (const osgEarth::Map *map, const osgEarth::Layer *layer, osg::Node *data)
 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 *data)
 This is run after the data has been added to the scene graph and runs in the main thread. More...
 
virtual float callbackOrder ()
 used to specify an order that the callbacks should run. More...
 
virtual const std::string & instanceClassName () const
 Get the class type for this particular instance of the Callback derrived class. More...
 
- Public Member Functions inherited from makVrv::DtOsgEarthFeatureDataBroker::Callback
virtual void onDataUnloaded (const osgEarth::Map *map, const osgEarth::Layer *layer, const osg::Node *oldData)
 
DtIndirectFadeParameters parseFadeParametersForLayer (const osgEarth::MapNode *mapNode, osgEarth::Layer *layer)
 

Static Public Member Functions

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

Protected Member Functions

virtual ~DtOsgEarthStreamedFeatureCallback ()
 DTOR. More...
 
 DtOsgEarthStreamedFeatureCallback (DtOsgEarthStreamedFeatureManager &featureMgr)
 

Protected Attributes

DtOsgEarthStreamedFeatureManagermyFeatureManager
 

Static Protected Attributes

static const std::string theClassName
 

Private Member Functions

 DtOsgEarthStreamedFeatureCallback (const DtOsgEarthStreamedFeatureCallback &other)
 Copy Constructor not implemented – Copy Not Allowed. More...
 
DtOsgEarthStreamedFeatureCallbackoperator= (const DtOsgEarthStreamedFeatureCallback &other)
 Assignment Operator Not implemented – Assignment Not Allowed. More...
 

Friends

class DtOsgEarthStreamedFeatureCallbackCreator
 creator friend class so it is the only one that can create new DtOsgEarthStreamedFeatureCallback More...
 

Additional Inherited Members

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

Detailed Description

DtOsgEarthFeatureDataBroker::Callback that is fired when a new feature data 'tile' pages in.

In uses the visitor above to find any CustomFeatureNodes. It then passes that data to the streamed feature manager, and also connects the custom node's 'being destroyed' signal to the feature manager's equivalent slot.

Constructor & Destructor Documentation

virtual makVrv::DtOsgEarthStreamedFeatureCallback::~DtOsgEarthStreamedFeatureCallback ( )
protectedvirtual

DTOR.

makVrv::DtOsgEarthStreamedFeatureCallback::DtOsgEarthStreamedFeatureCallback ( DtOsgEarthStreamedFeatureManager featureMgr)
protected
makVrv::DtOsgEarthStreamedFeatureCallback::DtOsgEarthStreamedFeatureCallback ( const DtOsgEarthStreamedFeatureCallback other)
private

Copy Constructor not implemented – Copy Not Allowed.

Member Function Documentation

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

Assignment Operator Not implemented – Assignment Not Allowed.

virtual void makVrv::DtOsgEarthStreamedFeatureCallback::onLayerLoaded ( const osgEarth::MapNode *  mapNode,
osgEarth::Layer *  layer 
)
virtual
virtual void makVrv::DtOsgEarthStreamedFeatureCallback::onDataPreMerge ( const osgEarth::Map *  map,
const osgEarth::Layer *  layer,
osg::Node *  data 
)
virtual

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

Implements makVrv::DtOsgEarthFeatureDataBroker::Callback.

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

This is run after the data has been added to the scene graph and runs in the main thread.

Implements makVrv::DtOsgEarthFeatureDataBroker::Callback.

virtual float makVrv::DtOsgEarthStreamedFeatureCallback::callbackOrder ( )
virtual

used to specify an order that the callbacks should run.

Should be 2.0; lower callbacks are run first. This needs to run after the default callbacks but before the destructible terrain call back

Reimplemented from makVrv::DtOsgEarthFeatureDataBroker::Callback.

virtual const std::string& makVrv::DtOsgEarthStreamedFeatureCallback::instanceClassName ( ) const
virtual

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

Implements makVrv::DtOsgEarthFeatureDataBroker::Callback.

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

Get the class name (used to register with the DtOsgEarthFeatureDataBroker.

Friends And Related Function Documentation

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

Member Data Documentation

const std::string makVrv::DtOsgEarthStreamedFeatureCallback::theClassName
staticprotected
DtOsgEarthStreamedFeatureManager& makVrv::DtOsgEarthStreamedFeatureCallback::myFeatureManager
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)