Definition at line 121 of file kfbxeventhandler.h.
#include <kfbxeventhandler.h>
Public Member Functions |
|
KFbxMemberFuncEventHandler (ListenerType *pListenerInstance, CBFunction pFunc) | |
virtual int | GetHandlerEventType () |
Get event type of current handler. |
|
virtual void | FunctionCall (const KFbxEventBase &pEvent) |
call callback function to process event
data. |
|
virtual KFbxListener * | GetListener () |
Get listener of current handler. |
KFbxMemberFuncEventHandler | ( | ListenerType * | pListenerInstance, |
CBFunction | pFunc | ||
) | [inline] |
Definition at line 128 of file kfbxeventhandler.h.
: mListener(pListenerInstance), mFunc(pFunc) { }
virtual int GetHandlerEventType | ( | ) | [inline, virtual] |
Get event type of current handler.
Implements KFbxEventHandler.
Definition at line 135 of file kfbxeventhandler.h.
{ return EventType::GetStaticTypeId(); }
virtual void FunctionCall | ( | const KFbxEventBase & | pEvent | ) | [inline, virtual] |
call callback function to process event data.
pEvent | specify the event type. pEvent could be a specific class which derived from KFbxEventBase. |
Implements KFbxEventHandler.
Definition at line 136 of file kfbxeventhandler.h.
{ (*mListener.*mFunc)(reinterpret_cast<const EventType*>(&pEvent)); }
virtual KFbxListener* GetListener | ( | ) | [inline, virtual] |
Get listener of current handler.
Implements KFbxEventHandler.
Definition at line 137 of file kfbxeventhandler.h.
{ return mListener;}