VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtLocalWindObjectManager Class Reference

The DtLocalWindObjectManager manages and sets values for a DtLocalWindObjectAgents. The DtLocalWindObjectManager is usually accessed through the DtEnvironment. You can addLocalWind, removeLocalWind in the DtEnvironment and it will communicate to the DtLocalWindObjectManager to create or destroy a DtLocalWindObjectAgent which will create or destroy a DtOsgEarthLocalWindObject (via vrvCore/DtLocalWindObject) and call the osgEarth API.

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

Public Member Functions

virtual ~DtLocalWindObjectManager ()
 
virtual DtLocalWindObjectAgent * findLocalWindObjectAgent (DtUniqueID id)
 
virtual DtUniqueID addLocalWind (WindType localWindType)
 
virtual void removeLocalWind (DtUniqueID id)
 
virtual void setLocalWindLocation (DtUniqueID id, DtVector loc)
 
virtual void setLocalWindSpeed (DtUniqueID id, float speed)
 
virtual void setLocalWindDirection (DtUniqueID id, float dir)
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static DtLocalWindObjectManagerinstance (DtDe &de)
 
static const std::string & theClassName ()
 

Public Attributes

boost::signalslib::signal
< void(DtUniqueID id,
DtLocalWindObjectAgent *)> 
signal_localWindObjectAdded
 
boost::signalslib::signal
< void(DtUniqueID id,
DtLocalWindObjectAgent *)> 
signal_localWindObjectToBeRemoved
 
boost::signalslib::signal
< void(DtUniqueID id, float
metersPerSecond)> 
signal_localWindSpeedChanged
 
boost::signalslib::signal
< void(DtUniqueID id, DtVector
loc) > 
signal_localWindLocationChanged
 
boost::signalslib::signal
< void(DtUniqueID id, float
radians) > 
signal_localWindDirectionChanged
 

Protected Types

typedef std::map< DtUniqueID,
DtLocalWindObjectAgent * > 
LocalWindMap
 

Protected Member Functions

 DtLocalWindObjectManager (DtDe &de)
 

Protected Attributes

DtDemyDe
 
LocalWindMap myIDToLocaWindObjectAgent
 

Private Member Functions

 DtLocalWindObjectManager ()
 
 DtLocalWindObjectManager (const DtLocalWindObjectManager &)
 
DtLocalWindObjectManageroperator= (const DtLocalWindObjectManager &)
 

Member Typedef Documentation

typedef std::map<DtUniqueID, DtLocalWindObjectAgent* > makVrv::DtLocalWindObjectManager::LocalWindMap
protected

Constructor & Destructor Documentation

virtual makVrv::DtLocalWindObjectManager::~DtLocalWindObjectManager ( )
virtual

DTOR.

makVrv::DtLocalWindObjectManager::DtLocalWindObjectManager ( DtDe de)
protected

CTOR (protected)

makVrv::DtLocalWindObjectManager::DtLocalWindObjectManager ( )
private

Default Constructor not implemented – default constructor not allowed.

makVrv::DtLocalWindObjectManager::DtLocalWindObjectManager ( const DtLocalWindObjectManager )
private

Copy Constructor not implemented – Copy not allowed.

Member Function Documentation

virtual DtLocalWindObjectAgent* makVrv::DtLocalWindObjectManager::findLocalWindObjectAgent ( DtUniqueID  id)
virtual

Find a local wind object agent, returns null if none exists.

static DtLocalWindObjectManager& makVrv::DtLocalWindObjectManager::instance ( DtDe de)
static

Get/create instance of local wind object manager.

static const std::string& makVrv::DtLocalWindObjectManager::theClassName ( )
static

Get the name this class is registered by.

virtual DtUniqueID makVrv::DtLocalWindObjectManager::addLocalWind ( WindType  localWindType)
virtual

Add a local wind by type and get its unique id.

virtual void makVrv::DtLocalWindObjectManager::removeLocalWind ( DtUniqueID  id)
virtual

Remove a local wind.

virtual void makVrv::DtLocalWindObjectManager::setLocalWindLocation ( DtUniqueID  id,
DtVector  loc 
)
virtual

Set a particular wind object's location.

virtual void makVrv::DtLocalWindObjectManager::setLocalWindSpeed ( DtUniqueID  id,
float  speed 
)
virtual

Set a particular wind object's speed (m/s)

virtual void makVrv::DtLocalWindObjectManager::setLocalWindDirection ( DtUniqueID  id,
float  dir 
)
virtual

Set the local wind direction for a TYPE_DIRECTIONAL wind blowing from in radians from north.

DtLocalWindObjectManager& makVrv::DtLocalWindObjectManager::operator= ( const DtLocalWindObjectManager )
private

Assignment Operator not implemented – Copy not allowed.

Member Data Documentation

boost::signalslib::signal<void(DtUniqueID id, DtLocalWindObjectAgent* )> makVrv::DtLocalWindObjectManager::signal_localWindObjectAdded

Signal raised when a wind object is added.

boost::signalslib::signal<void(DtUniqueID id, DtLocalWindObjectAgent* )> makVrv::DtLocalWindObjectManager::signal_localWindObjectToBeRemoved

Signal raised when a wind object is removed.

boost::signalslib::signal<void(DtUniqueID id, float metersPerSecond)> makVrv::DtLocalWindObjectManager::signal_localWindSpeedChanged

Signal raised when the wind speed changes.

boost::signalslib::signal<void(DtUniqueID id, DtVector loc) > makVrv::DtLocalWindObjectManager::signal_localWindLocationChanged

Signal raised the wind location changes.

boost::signalslib::signal<void(DtUniqueID id, float radians) > makVrv::DtLocalWindObjectManager::signal_localWindDirectionChanged

Signal raised the wind direction changes.

DtDe& makVrv::DtLocalWindObjectManager::myDe
protected
LocalWindMap makVrv::DtLocalWindObjectManager::myIDToLocaWindObjectAgent
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)