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

The DtDynamicFeatureLayer is the base implementation of a layer of data which contains features that use meta files. More...

Public Types

typedef std::map< DtUniqueID,
DtEntityFacade * > 
DynamicFeatureEntityMap
 List of features.

Public Member Functions

 DtDynamicFeatureLayer (DtDe &de, DtAgentManagerInterface &sceneInterface)
 CTOR.
virtual ~DtDynamicFeatureLayer ()
 DTOR.
virtual void addDynamicFeature (DtEntityFacade *dynamicEntity)
 Add entity with meta file features.
virtual bool destroyDyanmicFeature (DtUniqueID id)
 Destroys the dynamic feature with the unique id.
const DynamicFeatureEntityMapdynamicFeatures () const
 Get the container of entities that use .meta files associated with the layer.

Protected Types

typedef
boost::unordered_multimap
< std::string, std::string > 
StylesMap
 Type for sets of style names (layers) we listen to.

Protected Member Functions

void slot_sceneCreated ()
 If the IG is initialized when this is called, it will call initializeFeatureCreators.
void slot_postInitialize ()
 slot used to wait for postInitialized signal
virtual void initializeFeatureCreators ()
 Register creators with the streamed feature manager for each entity layer that uses .meta files.
bool readStyleListFile (const std::string &path, const std::string &layerListFileName, StylesMap &map)
 Read a file that specifies a list of osgEarth style names that we wish to have our registered builder called for when features are streamed in.

Protected Attributes

DtDemyDe
DtAgentManagerInterfacemySceneInterface
DynamicFeatureEntityMap myDynamicFeatureEntities
DtSignalConnectionManager myConnections
std::string myName
StylesMap myStylesMap
boost::signals::connection myPostInitializeConnection

Static Protected Attributes

static const chartheDynamicFeaturesLayerList

Detailed Description

The DtDynamicFeatureLayer is the base implementation of a layer of data which contains features that use meta files.

Member Typedef Documentation

List of features.

typedef boost::unordered_multimap<std::string, std::string> makVrv::DtDynamicFeatureLayer::StylesMap
protected

Type for sets of style names (layers) we listen to.

Constructor & Destructor Documentation

makVrv::DtDynamicFeatureLayer::DtDynamicFeatureLayer ( DtDe de,
DtAgentManagerInterface sceneInterface 
)

CTOR.

virtual makVrv::DtDynamicFeatureLayer::~DtDynamicFeatureLayer ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtDynamicFeatureLayer::addDynamicFeature ( DtEntityFacade dynamicEntity)
virtual

Add entity with meta file features.

Ownership of the entity will be passed to the layer.

virtual bool makVrv::DtDynamicFeatureLayer::destroyDyanmicFeature ( DtUniqueID  id)
virtual

Destroys the dynamic feature with the unique id.

Returns true if the entity was destroyed, false otherwise.

const DynamicFeatureEntityMap& makVrv::DtDynamicFeatureLayer::dynamicFeatures ( ) const

Get the container of entities that use .meta files associated with the layer.

void makVrv::DtDynamicFeatureLayer::slot_sceneCreated ( )
protected

If the IG is initialized when this is called, it will call initializeFeatureCreators.

Otherwise, it connects to the postInitialize signal, which will then call initializeFeatureCreators.

void makVrv::DtDynamicFeatureLayer::slot_postInitialize ( )
protected

slot used to wait for postInitialized signal

virtual void makVrv::DtDynamicFeatureLayer::initializeFeatureCreators ( )
protectedvirtual

Register creators with the streamed feature manager for each entity layer that uses .meta files.

bool makVrv::DtDynamicFeatureLayer::readStyleListFile ( const std::string &  path,
const std::string &  layerListFileName,
StylesMap map 
)
protected

Read a file that specifies a list of osgEarth style names that we wish to have our registered builder called for when features are streamed in.

Member Data Documentation

const char* makVrv::DtDynamicFeatureLayer::theDynamicFeaturesLayerList
staticprotected
DtDe& makVrv::DtDynamicFeatureLayer::myDe
protected
DtAgentManagerInterface& makVrv::DtDynamicFeatureLayer::mySceneInterface
protected
DynamicFeatureEntityMap makVrv::DtDynamicFeatureLayer::myDynamicFeatureEntities
protected
DtSignalConnectionManager makVrv::DtDynamicFeatureLayer::myConnections
protected
std::string makVrv::DtDynamicFeatureLayer::myName
protected
StylesMap makVrv::DtDynamicFeatureLayer::myStylesMap
protected
boost::signals::connection makVrv::DtDynamicFeatureLayer::myPostInitializeConnection
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)