![]() |
VR-Forces Developer's Guide
|

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) |
| virtual void | registerForEventsByInfluenceName (const std::string &sInfluenceName, DtInfluenceEventFunction func, void *userData) override |
| virtual void | unregisterForEventsByInfluenceName (const std::string &sInfluenceName, DtInfluenceEventFunction func, void *userData) override |
Public Member Functions inherited from DtInfluenceDispatcherServiceInterface | |
| DtInfluenceDispatcherServiceInterface () | |
Protected Types | |
| typedef DtCallbackList < std::shared_ptr< const makVrfEvents::DtInfluenceEvent > > | CallbackList |
| typedef std::shared_ptr < CallbackList > | CallbackListPtr |
| typedef std::unordered_map < DtUUID, CallbackListPtr > | CallbackMap |
| typedef std::map< std::string, CallbackListPtr > | CallbackByInfluenceTypeMap |
Protected Attributes | |
| DtSimulationServices * | mySimServices |
| boost::signals2::scoped_connection | myInfluenceEventConnection |
| CallbackMap | myRegisteredCallbacks |
| CallbackByInfluenceTypeMap | myRegisteredByTypeCallbacks |
| tbb::spin_mutex | myMutex |
Additional Inherited Members | |
Public Types inherited from DtInfluenceDispatcherServiceInterface | |
| typedef void(* | DtInfluenceEventFunction )(std::shared_ptr< const makVrfEvents::DtInfluenceEvent > influenceEvent, void *usr) |
|
protected |
|
protected |
|
protected |
|
protected |
| DtInfluenceEventDispatcher::DtInfluenceEventDispatcher | ( | DtSimulationServices * | simServices | ) |
|
virtual |
|
virtual |
|
overridevirtual |
Register to receive callbacks for influence events addressed to a specific UUID.
Implements DtInfluenceDispatcherServiceInterface.
|
overridevirtual |
Remove a callback registered with registerForInfluenceEvents()
Implements DtInfluenceDispatcherServiceInterface.
|
overridevirtual |
Register for influence event callbacks based on influence name. This allows subscribers to receive influence events addressed to other recipients. Meaning, it does not filter by UUID.
Implements DtInfluenceDispatcherServiceInterface.
|
overridevirtual |
Register for influence event callbacks based on influence name. This allows subscribers to receive influence events addressed to other recipients. Meaning, it does not filter by UUID.
Implements DtInfluenceDispatcherServiceInterface.
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |