FBX event handler class contains a listener and a callback function.
Event handler is used to bind emitter and listener together. Its callback function could process event data. To generate a valid event handler, you can create an event emitter and event listener first and then call FbxListener::Bind(). It will create an event handler automatically and bind the handler to the listener and the created emitter. After that, the emitter and listener are bound together via event handler.
Definition at line 45 of file fbxeventhandler.h.
#include <fbxeventhandler.h>

Public Types |
|
| enum | EType { eListener, eEmitter, eCount } |
Public Member Functions |
|
| FbxEventHandler () | |
| Constructor. |
|
| virtual | ~FbxEventHandler () |
| Destructor. |
|
| virtual int | GetHandlerEventType ()=0 |
| Get event type of current handler. |
|
| virtual void | FunctionCall (const FbxEventBase &pEvent)=0 |
| call callback function to process event
data. |
|
| virtual FbxListener * | GetListener ()=0 |
| Get listener of current handler. |
|
| FBXSDK_INTRUSIVE_LIST_NODE (FbxEventHandler, eCount) | |
| enum EType |
Definition at line 48 of file fbxeventhandler.h.
| FbxEventHandler | ( | ) | [inline] |
| virtual ~FbxEventHandler | ( | ) | [inline, virtual] |
| virtual int GetHandlerEventType | ( | ) | [pure virtual] |
Get event type of current handler.
Implemented in FbxMemberFuncEventHandler< EventType, ListenerType >, FbxConstMemberFuncEventHandler< EventType, ListenerType >, and FbxFuncEventHandler< EventType >.
| virtual void FunctionCall | ( | const FbxEventBase & | pEvent | ) | [pure virtual] |
call callback function to process event data.
| pEvent | specify the event type. pEvent could be a specific class which derived from FbxEventBase. |
Implemented in FbxMemberFuncEventHandler< EventType, ListenerType >, FbxConstMemberFuncEventHandler< EventType, ListenerType >, and FbxFuncEventHandler< EventType >.
| virtual FbxListener* GetListener | ( | ) | [pure virtual] |
Get listener of current handler.
Implemented in FbxMemberFuncEventHandler< EventType, ListenerType >, FbxConstMemberFuncEventHandler< EventType, ListenerType >, and FbxFuncEventHandler< EventType >.
| FBXSDK_INTRUSIVE_LIST_NODE | ( | FbxEventHandler | , |
| eCount | |||
| ) |