kfbxplug.h File Reference


Detailed Description

Definition in file kfbxplug.h.

#include <fbxfilesdk/fbxfilesdk_def.h>
#include <fbxfilesdk/kfbxevents/kfbxemitter.h>
#include <fbxfilesdk/fbxfilesdk_new.h>
#include <fbxfilesdk/fbxfilesdk_nsbegin.h>
#include <fbxfilesdk/fbxfilesdk_nsend.h>

Include dependency graph for kfbxplug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Classes

class   kFbxClassId
  Base To define the ClassId of an object. More...
class   KFbxPlug
  Base class to handle plug connections. More...

Defines

#define  KFBXPLUG_DECLARE(Class)
#define  KFBXPLUG_DECLARE_ABSTRACT(Class)
#define  KFBXPLUG_IMPLEMENT(Class)
#define  KFBXPLUG_IMPLEMENT_ABSTRACT(Class)
#define  FBX_TYPE(class)   ((class const*)0)
#define  FBX_CLASSID(class)   (class::ClassId)

Typedefs

typedef KFbxPlug *(*  kFbxPlugConstructor )(KFbxSdkManager &pManager, const char *pName, const KFbxPlug *pFrom, const char *pFBXType, const char *pFBXSubType)

Functions

template<class T>
T *  KFbxCast (KFbxPlug *pPlug)
template<class T>
T const *  KFbxCast (KFbxPlug const *pPlug)

Define Documentation

#define FBX_CLASSID ( class   )     (class::ClassId)

Definition at line 313 of file kfbxplug.h.

Referenced by KFbxCast().

#define FBX_TYPE ( class   )     ((class const*)0)

Definition at line 312 of file kfbxplug.h.

Referenced by KFbxLibrary::InstantiateMember().

#define KFBXPLUG_DECLARE ( Class   ) 

Value:

public:                                                                                         \
    KFBXNEW_DECLARE_FRIEND                                                                      \
    static kFbxClassId ClassId;                                                                 \
    static Class* Create(KFbxSdkManager *pManager, const char *pName);                          \
    static Class* SdkManagerCreate(KFbxSdkManager *pManager, const char *pName, Class* pFrom)   \
    {                                                                                           \
        Class* lClass = FbxSdkNew< Class >(*pManager,pName);                                    \
        lClass->Construct(pFrom);                                                               \
        return lClass;                                                                          \
    }                                                                                           \
    virtual kFbxClassId GetClassId() const { return ClassId; }                                  \
    friend class FBXFILESDK_NAMESPACE::KFbxSdkManager;                                          \

Definition at line 192 of file kfbxplug.h.

#define KFBXPLUG_DECLARE_ABSTRACT ( Class   ) 

Value:

public:                                                                 \
    static kFbxClassId  ClassId;                                        \
    static Class* Create(KFbxSdkManager *pManager, const char *pName);  \
    static kFbxPlugConstructor SdkManagerCreate;                        \
    virtual kFbxClassId GetClassId() const { return ClassId; }          \
    friend class FBXFILESDK_NAMESPACE::KFbxSdkManager;                  \

Definition at line 206 of file kfbxplug.h.

#define KFBXPLUG_IMPLEMENT ( Class   ) 

Value:

kFbxClassId Class::ClassId;                                             \
    Class* Class::Create(KFbxSdkManager *pManager, const char *pName)       \
    {                                                                       \
        Class* ClassPtr = 0;                                                \
        return (Class*)pManager->CreateClass(Class::ClassId, pName, NULL);  \
    }                                                                       \

Definition at line 214 of file kfbxplug.h.

#define KFBXPLUG_IMPLEMENT_ABSTRACT ( Class   ) 

Value:

kFbxClassId Class::ClassId;                                             \
    kFbxPlugConstructor Class::SdkManagerCreate = 0;                        \
    Class* Class::Create(KFbxSdkManager *pManager, const char *pName)       \
    {                                                                       \
        Class* ClassPtr = 0;                                                \
        return (Class*)pManager->CreateClass(Class::ClassId, pName, NULL);  \
    }                                                                       \

Definition at line 222 of file kfbxplug.h.


Typedef Documentation

typedef KFbxPlug*(* kFbxPlugConstructor)(KFbxSdkManager &pManager, const char *pName, const KFbxPlug *pFrom, const char *pFBXType, const char *pFBXSubType)

Definition at line 54 of file kfbxplug.h.


Function Documentation

T const* KFbxCast ( KFbxPlug const *  pPlug  )  [inline]

Definition at line 320 of file kfbxplug.h.

References FBX_CLASSID, and KFbxPlug::Is().

T* KFbxCast ( KFbxPlug pPlug  )  [inline]

Definition at line 315 of file kfbxplug.h.

References FBX_CLASSID, and KFbxPlug::Is().