FBX C++ API Reference
|
#include <fbxeventhandler.h>
Event handler class contains a listener and a callback function.
Event handler is used to bind emitter and listener together. Its callback function can 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 41 of file fbxeventhandler.h.
Public Types | |
enum | EType { eListener, eEmitter, eCount } |
Event handler base type. More... | |
Public Member Functions | |
virtual int | GetHandlerEventType ()=0 |
Get event type of current handler. More... | |
virtual void | FunctionCall (const FbxEventBase &pEvent)=0 |
Call function that process event data. More... | |
virtual FbxListener * | GetListener ()=0 |
Get listener of current handler. More... | |
enum EType |
Event handler base type.
Enumerator | |
---|---|
eListener | Listener event handler type. |
eEmitter | Emitter event handler type. |
eCount | Count of different event handler types. |
Definition at line 45 of file fbxeventhandler.h.
|
pure virtual |
Get event type of current handler.
|
pure virtual |
Call function that process event data.
pEvent | specify the event type. pEvent could be a specific class which derived from FbxEventBase. |
|
pure virtual |
Get listener of current handler.