![]() |
VR-Forces 4.10 Class Documentation
|

Public Types | |
| typedef boost::signals2::signal< void(const DtEvent &)> | EventSignal |
Public Member Functions | |
| DtEventManager () | |
| virtual | ~DtEventManager () |
| virtual void | tick () |
| virtual void | addEvent (const DtEvent &) |
| Connect to the individual event signal to only get notified for a particular event. More... | |
| virtual void | setProcessEventsImmediately (bool b) |
| Whether or not to put the messages onto a tickable queue (false) or process them immediately (true). More... | |
| bool | processEventsImmediately () const |
| virtual void | selfReflect (unsigned int i) |
| Whether or not to self reflect the given VRF data interaction messages (default is to self reflect all messages) More... | |
| virtual void | doNotSelfReflect (unsigned int i) |
| virtual bool | selfReflecting () const |
| Wether or not an event added will be processed locally. Default is true. More... | |
| EventSignal & | signalForFireEvent () |
| Convenience functions. More... | |
| EventSignal & | signalForDetonationEvent () |
| EventSignal & | signalForSimInterfaceContentMessage () |
| EventSignal & | signalForDataInteraction () |
| EventSignal & | signalForSignalInteraction () |
| EventSignal & | signalForCommentInteraction () |
| EventSignal & | signalForSensorFieldOfViewControlEvent () |
| EventSignal & | signalForStartResumeInteraction () |
| EventSignal & | signalForStopFreezeInteraction () |
| EventSignal & | signalDiGuyActionEvent () |
| EventSignal & | signalForInfluenceInteraction () |
| EventSignal & | signalDiGuyEndActionEvent () |
| EventSignal & | signalForServiceRequestEvent () |
| EventSignal & | signalForResupplyOfferEvent () |
| EventSignal & | signalForResupplyReceivedEvent () |
| EventSignal & | signalForResupplyCancelEvent () |
| virtual void | addEvent (const DtDetonationInteraction &) |
| Convenience functions. More... | |
| virtual void | addEvent (const DtFireInteraction &) |
| virtual void | addEvent (const DtAcknowledgeInteraction &) |
| virtual void | addEvent (const DtStopFreezeInteraction &) |
| virtual void | addEvent (const DtStartResumeInteraction &) |
| virtual void | addEvent (const DtDataInteraction &) |
| virtual void | addEvent (const DtSignalInteraction &) |
| virtual void | addEvent (const DtCommentInteraction &) |
| virtual void | addEvent (const DtSensorFieldOfViewControlInter &) |
| virtual void | addevent (const DtSimInterfaceContent &) |
| virtual void | addEvent (const DtDataInteractionWithTransportType &) |
| virtual void | addEvent (const DtInfluenceInteraction &) |
| virtual void | addEvent (const DtEndGestureInter &) |
| virtual void | addEvent (const DtExecuteGestureInter &) |
| virtual void | addEvent (const DtServiceRequestInteraction &) |
| virtual void | addEvent (const DtResupplyOfferInteraction &) |
| virtual void | addEvent (const DtResupplyRecInteraction &) |
| virtual void | addEvent (const DtResupplyCancelInteraction &) |
| virtual EventSignal & | signalForEvent (DtEvent::EventType type) |
| Returns a signal for a particular event type that you will use to connect/disconnect with in order to be notified of that event being received. More... | |
Static Public Member Functions | |
| static void | setEventManagerCreatorFcn (DtEventManagerCreatorFcn fcn) |
| static DtEventManager * | createEventManager () |
Protected Types | |
| typedef std::map < DtEvent::EventType, EventSignal * > | EventCallbackMap |
Protected Member Functions | |
| virtual void | postEvent (const DtEvent &) |
| Puts the event into the queue. More... | |
| virtual void | processEvent (const DtEvent &) |
| virtual bool | wantsToProcessEvent (const DtEvent &) const |
| Return true to self reflect this VRF message (if it is one) More... | |
Protected Attributes | |
| tbb::spin_mutex | myMutex |
| std::vector< DtEvent * > | myEvents |
| tbb::spin_mutex | myCallbackMutex |
| EventCallbackMap | myEventCallbackMap |
| bool | myProcessEventsImmediately |
| std::set< unsigned int > | myDoNotSelfReflect |
Static Protected Attributes | |
| static DtEventManagerCreatorFcn | theEventManagerCreatorFcn |
Private Member Functions | |
| DtEventManager (const DtEventManager &) | |
| Not implemented. More... | |
| DtEventManager & | operator= (const DtEventManager &) |
| Not implemented. More... | |
| typedef boost::signals2::signal<void (const DtEvent&)> DtEventManager::EventSignal |
|
protected |
|
private |
Not implemented.
| DtEventManager::DtEventManager | ( | ) |
|
virtual |
|
private |
Not implemented.
|
virtual |
Reimplemented in DtClientEventManagerTCP, and DtServerEventManagerTCP.
|
virtual |
Connect to the individual event signal to only get notified for a particular event.
Reimplemented in DtNetworkEventManager.
|
static |
Factory method for creating this class. If no factory method defined the default DtEventManager is created
|
static |
|
virtual |
Whether or not to put the messages onto a tickable queue (false) or process them immediately (true).
The process immediately may not be thread safe, so, use the flag appropriately. The default is false
|
inline |
Whether or not to self reflect the given VRF data interaction messages (default is to self reflect all messages)
|
virtual |
Wether or not an event added will be processed locally. Default is true.
Reimplemented in DtNetworkEventManager.
|
virtual |
Returns a signal for a particular event type that you will use to connect/disconnect with in order to be notified of that event being received.
| EventSignal& DtEventManager::signalForFireEvent | ( | ) |
Convenience functions.
| EventSignal& DtEventManager::signalForDetonationEvent | ( | ) |
| EventSignal& DtEventManager::signalForSimInterfaceContentMessage | ( | ) |
| EventSignal& DtEventManager::signalForDataInteraction | ( | ) |
| EventSignal& DtEventManager::signalForSignalInteraction | ( | ) |
| EventSignal& DtEventManager::signalForCommentInteraction | ( | ) |
| EventSignal& DtEventManager::signalForSensorFieldOfViewControlEvent | ( | ) |
| EventSignal& DtEventManager::signalForStartResumeInteraction | ( | ) |
| EventSignal& DtEventManager::signalForStopFreezeInteraction | ( | ) |
| EventSignal& DtEventManager::signalDiGuyActionEvent | ( | ) |
| EventSignal& DtEventManager::signalForInfluenceInteraction | ( | ) |
| EventSignal& DtEventManager::signalDiGuyEndActionEvent | ( | ) |
| EventSignal& DtEventManager::signalForServiceRequestEvent | ( | ) |
| EventSignal& DtEventManager::signalForResupplyOfferEvent | ( | ) |
| EventSignal& DtEventManager::signalForResupplyReceivedEvent | ( | ) |
| EventSignal& DtEventManager::signalForResupplyCancelEvent | ( | ) |
|
virtual |
Convenience functions.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
Puts the event into the queue.
|
protectedvirtual |
Return true to self reflect this VRF message (if it is one)
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |