Definition at line 174 of file kfbxeventhandler.h.
#include <kfbxeventhandler.h>
Public Member Functions |
|
KFbxFuncEventHandler (KFbxListener *pListener, 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. |
KFbxFuncEventHandler | ( | KFbxListener * | pListener, |
CBFunction | pFunc | ||
) | [inline] |
Definition at line 181 of file kfbxeventhandler.h.
: mListener(pListener), mFunc(pFunc) { }
virtual int GetHandlerEventType | ( | ) | [inline, virtual] |
Get event type of current handler.
Implements KFbxEventHandler.
Definition at line 188 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 189 of file kfbxeventhandler.h.
{ (*mFunc)(reinterpret_cast<const EventType*>(&pEvent),mListener); }
virtual KFbxListener* GetListener | ( | ) | [inline, virtual] |
Get listener of current handler.
Implements KFbxEventHandler.
Definition at line 190 of file kfbxeventhandler.h.
{ return mListener; }