#include <fbxevent.h>
FBX event class, derived from FbxEventBase, and it contains a type ID for event.
It's a template class. You can derive your own types of even. Such as:
class FbxEventCustom : public FbxEvent<FbxEventCustom>
Definition at line 134 of file fbxevent.h.
Public Member Functions |
|
| virtual | ~FbxEvent () |
| 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 ~FbxEvent | ( | ) | [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 143 of file fbxevent.h.
{
// 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 FbxEventBase.
Definition at line 155 of file fbxevent.h.
{
return GetStaticTypeId();
}
| static int GetStaticTypeId | ( | ) | [inline, static] |
Retrieve the event type ID.
Definition at line 163 of file fbxevent.h.
{
if( !smTypeId )
{
if( !smTypeId )
{
// If this does not compile, you need to add
// FBXSDK_EVENT_DECLARE(YourEventClassName) to your class declaration
smTypeId = FbxEventBase::GetStaticTypeId(T::FbxEventName());
}
}
return smTypeId;
}