FBX C++ API Reference
|
#include <fbxemitter.h>
Base class to emit event with the specified event type.
The event type could be a specific class which derived from FbxEvent. Please read FbxEmitter::Emit() for more details. Event emitter contains a list of event handlers. FBX object could be used as emitter, since FbxObject is derived from FbxEmitter. Before using emitter to emit an event, one or more event handlers must be added to the handlers list of current emitter. In other words, it's "bind event handlers to emitter". There are two ways to bind event handlers to emitter.
Definition at line 49 of file fbxemitter.h.
Public Member Functions | |
void | AddListener (FbxEventHandler &pHandler) |
Add the specified event handler to current emitter list. More... | |
void | RemoveListener (FbxEventHandler &pHandler) |
Remove the specified event handler from current emitter list. More... | |
template<typename EventType > | |
void | Emit (const EventType &pEvent) const |
Emit an event with the specified the event type. More... | |
void AddListener | ( | FbxEventHandler & | pHandler | ) |
Add the specified event handler to current emitter list.
pHandler | The event handler will be added to the handlers list of current emitter. |
void RemoveListener | ( | FbxEventHandler & | pHandler | ) |
Remove the specified event handler from current emitter list.
pHandler | The event handler will be removed from the handlers list of current emitter. |
|
inline |
Emit an event with the specified the event type.
One the event is emitted, the listener to this event will receive a signal.
pEvent | Specify the event type to emit. Could be a specific class which derived from FbxEvent, such as FbxObjectPropertyChanged. |
Definition at line 64 of file fbxemitter.h.