FBX event class, derived from KFbxEventBase, and it contains a type ID for event.
It's a template class. You can derive your own types of even. Such as:
class KFbxEventCustom : public kfbxevents::KFbxEvent<KFbxEventCustom>
Definition at line 167 of file kfbxevents.h.
#include <kfbxevents.h>
Public Member Functions |
|
virtual | ~KFbxEvent () |
Destructor. |
|
virtual int | GetTypeId () const |
Retrieve the event type ID. |
|
Static Public Member Functions |
|
static void | ForceTypeId (int pTypeId) |
Update the type ID of current event with the
given type ID. |
|
static int | GetStaticTypeId () |
Retrieve the event type ID. |
virtual ~KFbxEvent | ( | ) | [inline, virtual] |
static void ForceTypeId | ( | int | pTypeId | ) | [inline, static] |
Update the type ID of current event with the given type ID.
pTypeId | the new type ID. |
Definition at line 176 of file kfbxevents.h.
{ kfbxmp::KFbxMutexHelper lLock( smMutex ); // This is to handle specific cases where the type ID must be hard coded // It is useful for shared event across DLL. We can then guarantee that // The ID of a certain type will always have the same ID smTypeId = pTypeId; }
virtual int GetTypeId | ( | ) | const [inline, virtual] |
Retrieve the event type ID.
Implements KFbxEventBase.
Definition at line 190 of file kfbxevents.h.
{ return GetStaticTypeId(); }
static int GetStaticTypeId | ( | ) | [inline, static] |
Retrieve the event type ID.
Definition at line 198 of file kfbxevents.h.
{ if( !smTypeId ) { kfbxmp::KFbxMutexHelper lLock( smMutex ); if( !smTypeId ) { // If this does not compile, you need to add // KFBXEVENT_DECLARE(YourEventClassName) to your class declaration smTypeId = KFbxEventBase::GetStaticTypeId(EventT::FbxEventName()); } } return smTypeId; }