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 Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtStreamedFeatureLayer Class Reference

The DtStreamedFeatureLayer is the base implementation of a layer of data which contains buoys and beacons that are part of the terrain. More...

Public Types

typedef std::map< DtUniqueID,
DtProp * > 
StreamedFeatureMap
 List of Buoys and Beacons. More...
 

Public Member Functions

 DtStreamedFeatureLayer (DtDe &de, DtAgentManagerInterface &sceneInterface)
 CTOR. More...
 
virtual ~DtStreamedFeatureLayer ()
 DTOR. More...
 
virtual void addFeature (DtProp *feature, DtUniqueID elementId)
 Add Buoy or beacon. More...
 
virtual bool destroyFeature (DtUniqueID elementId)
 Destroys the Buoy or Beacon with the unique id. More...
 
virtual DtPropfindFeature (DtUniqueID elementId)
 Finds a pointer to the Buoy or Beacon on the feature layer with the same identifiers as the passed in id. More...
 
const StreamedFeatureMapfeatures () const
 Get the container of Buoys and Beacons associated with the layer. More...
 

Protected Types

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

Protected Member Functions

void slot_sceneCreated ()
 If the IG is initialized when this is called, it will call initializeFeatureCreators. More...
 
void slot_postInitialize ()
 slot used to wait for postInitialized signal More...
 
virtual void initializeFeatureCreators ()
 Register creators with the streamed feature manager for each buoy and beacon layer of interest. More...
 
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. More...
 

Protected Attributes

DtDemyDe
 
DtAgentManagerInterfacemySceneInterface
 
StreamedFeatureMap myFeatures
 
DtSignalConnectionManager myConnections
 
std::string myName
 
StylesMap myStylesMap
 
boost::signals::connection myPostInitializeConnection
 

Detailed Description

The DtStreamedFeatureLayer is the base implementation of a layer of data which contains buoys and beacons that are part of the terrain.

Member Typedef Documentation

List of Buoys and Beacons.

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

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

Constructor & Destructor Documentation

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

CTOR.

virtual makVrv::DtStreamedFeatureLayer::~DtStreamedFeatureLayer ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtStreamedFeatureLayer::addFeature ( DtProp feature,
DtUniqueID  elementId 
)
virtual

Add Buoy or beacon.

Ownership of the Buoy or beacon will be passed to the layer. hasNavLights flag puts the objects location/ and id onto list of objects to search through when streamed lights are attached. hasNavDaymarks and hasNavTopmarks work similarly. is passed in since it won't be available yet from the facade, and we need that exact location kept around because that is how attachable items are matched to the objects they're attached to

virtual bool makVrv::DtStreamedFeatureLayer::destroyFeature ( DtUniqueID  elementId)
virtual

Destroys the Buoy or Beacon with the unique id.

Returns true if the object was destroyed, false otherwise.

virtual DtProp* makVrv::DtStreamedFeatureLayer::findFeature ( DtUniqueID  elementId)
virtual

Finds a pointer to the Buoy or Beacon on the feature layer with the same identifiers as the passed in id.

const StreamedFeatureMap& makVrv::DtStreamedFeatureLayer::features ( ) const

Get the container of Buoys and Beacons associated with the layer.

void makVrv::DtStreamedFeatureLayer::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::DtStreamedFeatureLayer::slot_postInitialize ( )
protected

slot used to wait for postInitialized signal

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

Register creators with the streamed feature manager for each buoy and beacon layer of interest.

bool makVrv::DtStreamedFeatureLayer::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

DtDe& makVrv::DtStreamedFeatureLayer::myDe
protected
DtAgentManagerInterface& makVrv::DtStreamedFeatureLayer::mySceneInterface
protected
StreamedFeatureMap makVrv::DtStreamedFeatureLayer::myFeatures
protected
DtSignalConnectionManager makVrv::DtStreamedFeatureLayer::myConnections
protected
std::string makVrv::DtStreamedFeatureLayer::myName
protected
StylesMap makVrv::DtStreamedFeatureLayer::myStylesMap
protected
boost::signals::connection makVrv::DtStreamedFeatureLayer::myPostInitializeConnection
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)