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

DtOsgEarthStreamedFeatureManager is an osgEarth-specific implemenation of a DtStreamedFeatureManager. More...

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

Public Member Functions

virtual ~DtOsgEarthStreamedFeatureManager ()
 DTOR.
- Public Member Functions inherited from makVrv::DtStreamedFeatureManager
virtual ~DtStreamedFeatureManager ()
 DTOR.
virtual void addStreamedFeatureCreator (const std::string &registrantName, const std::string &styleName, DtStreamedFeatureCreator *creator)
 Register a creator to be called when features are streamed in.

Protected Member Functions

virtual void onDataLoaded (const osgEarth::Map *map, const osgEarth::ModelLayer *layer, const osg::Node *data)
 DtOsgEarthStreamedFeatureManager (DtDe &de)
 DtOsgEarthStreamedFeatureManager ()
virtual void slot_terrainPatchCreated (DtTerrainPatchObject &patch)
 Find out when the terrain patch is ready to accept DtOsgEarthFeatureDataBroker callbacks.
virtual void processNewFeatures (const osgEarth::Features::CustomFeatureNode *featureNode)
 When a callback on the DtOsgEarthFeatureDataBroker is fired, it looks for CustomFeatureNodes attached to nodes in the tile's scenegrph.
virtual void slot_customFeatureNodeToBeDeleted (const osgEarth::Features::CustomFeatureNode *node)
 The DtOsgEarthFeatureDataBroker callback connects the DtCustomFeatureNode's signal_aboutToBeDeleted to the our slot_customFeatureNodeToBeDeleted slot.
- Protected Member Functions inherited from makVrv::DtStreamedFeatureManager
 DtStreamedFeatureManager (DtDe &de)
 CTOR - protected; only created by the DtStreamedFeatureManagerCreator class.
 DtStreamedFeatureManager ()
 Unimplemented default CTOR.

Protected Attributes

DtKeyedSignalConnectionManager
< const
osgEarth::Features::CustomFeatureNode * > 
myKeyedConnections
- Protected Attributes inherited from makVrv::DtStreamedFeatureManager
DtDemyDe
FeatureClassCreatorMap myFeatureClassCreators

Friends

class DtOsgEarthStreamedFeatureCallback
 Friended with feature callback to allow it to call our processing methods.
class DtOsgEarthStreamedFeatureManagerCreator
 Friended with creator so that it can use our constructor.

Additional Inherited Members

- Public Attributes inherited from makVrv::DtStreamedFeatureManager
boost::signal< void(const
std::string &registrantName,
DtUniqueID featurId)> 
signal_featureAboutToBeDeleted
 Signal raised when a feature has streamed out (of page cache)
- Protected Types inherited from makVrv::DtStreamedFeatureManager
typedef std::pair< std::string,
DtStreamedFeatureCreator * > 
CreatorElement
typedef
boost::unordered_multimap
< std::string, CreatorElement
FeatureClassCreatorMap
typedef std::pair
< FeatureClassCreatorMap::iterator,
FeatureClassCreatorMap::iterator > 
RangeIterFeatureClassToCreator
typedef std::pair
< FeatureClassCreatorMap::const_iterator,
FeatureClassCreatorMap::const_iterator > 
ConstRangeIterFeatureClassToCreator

Detailed Description

DtOsgEarthStreamedFeatureManager is an osgEarth-specific implemenation of a DtStreamedFeatureManager.

The manager uses a DtOsgEarthFeatureDataBroker to detect when tiles page in, and looks for CustomFeatureNodes in the sceneGraph of that tile. When found, those feature requests are processed using any registered creators

Constructor & Destructor Documentation

virtual makVrv::DtOsgEarthStreamedFeatureManager::~DtOsgEarthStreamedFeatureManager ( )
virtual

DTOR.

makVrv::DtOsgEarthStreamedFeatureManager::DtOsgEarthStreamedFeatureManager ( DtDe de)
protected
makVrv::DtOsgEarthStreamedFeatureManager::DtOsgEarthStreamedFeatureManager ( )
protected

Member Function Documentation

virtual void makVrv::DtOsgEarthStreamedFeatureManager::processNewFeatures ( const osgEarth::Features::CustomFeatureNode featureNode)
protectedvirtual

When a callback on the DtOsgEarthFeatureDataBroker is fired, it looks for CustomFeatureNodes attached to nodes in the tile's scenegrph.

These get passed onto processNewFeatures() which calls any registered creators for the features contained within

virtual void makVrv::DtOsgEarthStreamedFeatureManager::slot_customFeatureNodeToBeDeleted ( const osgEarth::Features::CustomFeatureNode node)
protectedvirtual

The DtOsgEarthFeatureDataBroker callback connects the DtCustomFeatureNode's signal_aboutToBeDeleted to the our slot_customFeatureNodeToBeDeleted slot.

virtual void makVrv::DtOsgEarthStreamedFeatureManager::onDataLoaded ( const osgEarth::Map *  map,
const osgEarth::ModelLayer *  layer,
const osg::Node *  data 
)
protectedvirtual
virtual void makVrv::DtOsgEarthStreamedFeatureManager::slot_terrainPatchCreated ( DtTerrainPatchObject patch)
protectedvirtual

Find out when the terrain patch is ready to accept DtOsgEarthFeatureDataBroker callbacks.

When this signal fires, the manager looks up a terrain patch and installs an osgEarth data broker callback on osgEarth patches

Friends And Related Function Documentation

friend class DtOsgEarthStreamedFeatureCallback
friend

Friended with feature callback to allow it to call our processing methods.

Friended with creator so that it can use our constructor.

Member Data Documentation

DtKeyedSignalConnectionManager<const osgEarth::Features::CustomFeatureNode*> makVrv::DtOsgEarthStreamedFeatureManager::myKeyedConnections
protected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)