VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes
DtInfluenceEventDispatcher Class Reference
Inheritance diagram for DtInfluenceEventDispatcher:
Inheritance graph
[legend]

Public Member Functions

 DtInfluenceEventDispatcher (DtSimulationServices *simServices)
 
virtual ~DtInfluenceEventDispatcher ()
 
virtual bool init ()
 
virtual void registerForInfluenceEvents (const DtUUID &uuid, DtInfluenceEventFunction func, void *userData) override
 
virtual void unregisterForInfluenceEvents (const DtUUID &uuid, DtInfluenceEventFunction func, void *userData) override
 
virtual void processInfluence (const makVrfEvents::DtEvent &m)
 
- Public Member Functions inherited from DtInfluenceDispatcherServiceInterface
 DtInfluenceDispatcherServiceInterface ()
 

Protected Types

typedef DtCallbackList
< DtBoost::shared_ptr< const
makVrfEvents::DtInfluenceEvent > > 
CallbackList
 
typedef DtBoost::shared_ptr
< CallbackList
CallbackListPtr
 
typedef std::unordered_map
< DtUUID, CallbackListPtr
CallbackMap
 

Protected Attributes

DtSimulationServicesmySimServices
 
boost::signals2::scoped_connection myInfluenceEventConnection
 
CallbackMap myRegisteredCallbacks
 
tbb::spin_mutex myMutex
 

Additional Inherited Members

- Public Types inherited from DtInfluenceDispatcherServiceInterface
typedef void(* DtInfluenceEventFunction )(DtBoost::shared_ptr< const makVrfEvents::DtInfluenceEvent > influenceEvent, void *usr)
 

Member Typedef Documentation

typedef DtBoost::shared_ptr<CallbackList > DtInfluenceEventDispatcher::CallbackListPtr
protected
typedef std::unordered_map<DtUUID, CallbackListPtr> DtInfluenceEventDispatcher::CallbackMap
protected

Constructor & Destructor Documentation

DtInfluenceEventDispatcher::DtInfluenceEventDispatcher ( DtSimulationServices simServices)
virtual DtInfluenceEventDispatcher::~DtInfluenceEventDispatcher ( )
virtual

Member Function Documentation

virtual bool DtInfluenceEventDispatcher::init ( )
virtual
virtual void DtInfluenceEventDispatcher::registerForInfluenceEvents ( const DtUUID uuid,
DtInfluenceEventFunction  func,
void *  userData 
)
overridevirtual

Register to receive callbacks for influence events addressed to a specific UUID.

Implements DtInfluenceDispatcherServiceInterface.

virtual void DtInfluenceEventDispatcher::unregisterForInfluenceEvents ( const DtUUID uuid,
DtInfluenceEventFunction  func,
void *  userData 
)
overridevirtual

Remove a callback registered with registerForInfluenceEvents()

Implements DtInfluenceDispatcherServiceInterface.

virtual void DtInfluenceEventDispatcher::processInfluence ( const makVrfEvents::DtEvent m)
virtual

Member Data Documentation

DtSimulationServices* DtInfluenceEventDispatcher::mySimServices
protected
boost::signals2::scoped_connection DtInfluenceEventDispatcher::myInfluenceEventConnection
protected
CallbackMap DtInfluenceEventDispatcher::myRegisteredCallbacks
protected
tbb::spin_mutex DtInfluenceEventDispatcher::myMutex
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)