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 KFbxListener::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 72 of file kfbxeventhandler.h.
#include <kfbxeventhandler.h>
Public Types |
|
enum | { eNODE_LISTENER = 0, eNODE_EMITTER, eNODE_COUNT } |
Public Member Functions |
|
KFbxEventHandler () | |
Constructor. |
|
virtual | ~KFbxEventHandler () |
Destructor. |
|
virtual int | GetHandlerEventType ()=0 |
Get event type of current handler. |
|
virtual void | FunctionCall (const KFbxEventBase &pEvent)=0 |
call callback function to process event
data. |
|
virtual KFbxListener * | GetListener ()=0 |
Get listener of current handler. |
|
KFBX_LISTNODE (KFbxEventHandler, eNODE_COUNT) |
anonymous enum |
Definition at line 75 of file kfbxeventhandler.h.
{ eNODE_LISTENER = 0, eNODE_EMITTER, eNODE_COUNT };
KFbxEventHandler | ( | ) | [inline] |
virtual ~KFbxEventHandler | ( | ) | [inline, virtual] |
virtual int GetHandlerEventType | ( | ) | [pure virtual] |
Get event type of current handler.
Implemented in KFbxMemberFuncEventHandler< EventType, ListenerType >, KFbxConstMemberFuncEventHandler< EventType, ListenerType >, and KFbxFuncEventHandler< EventType >.
virtual void FunctionCall | ( | const KFbxEventBase & | pEvent | ) | [pure virtual] |
call callback function to process event data.
pEvent | specify the event type. pEvent could be a specific class which derived from KFbxEventBase. |
Implemented in KFbxMemberFuncEventHandler< EventType, ListenerType >, KFbxConstMemberFuncEventHandler< EventType, ListenerType >, and KFbxFuncEventHandler< EventType >.
virtual KFbxListener* GetListener | ( | ) | [pure virtual] |
Get listener of current handler.
Implemented in KFbxMemberFuncEventHandler< EventType, ListenerType >, KFbxConstMemberFuncEventHandler< EventType, ListenerType >, and KFbxFuncEventHandler< EventType >.
KFBX_LISTNODE | ( | KFbxEventHandler | , |
eNODE_COUNT | |||
) |