![]() |
VR-Forces 4.8 Class Documentation
|
The StreamedFeatureManager allows users to register creator functions for streamed features from specific style blocks. More...

Public Member Functions | |
| virtual | ~DtStreamedFeatureManager () |
| DTOR. More... | |
| virtual void | addStreamedFeatureCreator (const std::string ®istrantName, const std::string &styleName, DtStreamedFeatureCreator *creator) |
| Register a creator to be called when features are streamed in. More... | |
| virtual void | checkAndProcessStrandedFeatures ()=0 |
| Method called by the sceneDriver tick to process any features that need to be deleted. More... | |
Public Attributes | |
| boost::signal< void(const std::string ®istrantName, DtUniqueID featurId)> | signal_featureAboutToBeDeleted |
| Signal raised when a feature has streamed out (of page cache) More... | |
Protected Types | |
| 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 |
Protected Member Functions | |
| DtStreamedFeatureManager (DtDe &de) | |
| CTOR - protected; only created by the DtStreamedFeatureManagerCreator class. More... | |
| DtStreamedFeatureManager () | |
| Unimplemented default CTOR. More... | |
Protected Attributes | |
| DtDe & | myDe |
| FeatureClassCreatorMap | myFeatureClassCreators |
Friends | |
| class | DtStreamedFeatureManagerCreator |
| Friended to allow constructor use. More... | |
The StreamedFeatureManager allows users to register creator functions for streamed features from specific style blocks.
The manager will signal when a feature should be deleted, using the installed creator' return ids that in conjuntion with the names of the registrants that installed them.
|
protected |
|
protected |
|
protected |
|
protected |
|
virtual |
DTOR.
|
protected |
CTOR - protected; only created by the DtStreamedFeatureManagerCreator class.
|
protected |
Unimplemented default CTOR.
|
virtual |
Register a creator to be called when features are streamed in.
| registrantName | is a name given by the registrant to identify features created by that registrant (for later deletion) |
| styleName | styleName is the name provided in the .osgEarth style block that this creator is interested in. When features are streamed in from a style block with this name, the registered creator will be called. |
| creator | is a pointer to a DtStreamedFeatureCreator implementation |
|
pure virtual |
Method called by the sceneDriver tick to process any features that need to be deleted.
This method is mutex-protected, since features are placed on the stranded list from osgEarth paging threads (and the list will be processed in the render thread).
Implemented in makVrv::DtOsgEarthStreamedFeatureManager.
|
friend |
Friended to allow constructor use.
| boost::signal<void ( const std::string& registrantName, DtUniqueID featurId )> makVrv::DtStreamedFeatureManager::signal_featureAboutToBeDeleted |
Signal raised when a feature has streamed out (of page cache)
|
protected |
|
protected |