VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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.

Public Types

typedef std::map< DtUniqueID,
DtEntityFacade * > 
DynamicFeatureEntityMap
 

Public Member Functions

 DtDynamicFeatureLayer (DtDe &de, DtAgentManagerInterface &sceneInterface)
 
virtual ~DtDynamicFeatureLayer ()
 
virtual void addDynamicFeature (DtEntityFacade *dynamicEntity)
 
virtual bool destroyDyanmicFeature (DtUniqueID id)
 
const DynamicFeatureEntityMapdynamicFeatures () const
 

Protected Types

typedef
boost::unordered_multimap
< std::string, std::string > 
StylesMap
 

Protected Member Functions

void slot_sceneCreated ()
 
void slot_postInitialize ()
 
virtual void initializeFeatureCreators ()
 
bool readStyleListFile (const std::string &path, const std::string &layerListFileName, StylesMap &map)
 

Protected Attributes

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

Static Protected Attributes

static const chartheDynamicFeaturesLayerList
 

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::signalslib::connection makVrv::DtDynamicFeatureLayer::myPostInitializeConnection
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)