kFbxClassId
#include<kfbxplug.h>

List of all members.

Detailed Description

Base To define the ClassId of an object.

Remarks:
This class Id helps the fbxsdk identify the class hierarchy of plugs and objects. Each Plug is identified by a class id and a parent classId

Definition at line73of filekfbxplug.h.


Constructor and Destructor.

 kFbxClassId()
 Constructor.
 kFbxClassId(const char *pClassName, constkFbxClassId&pParentClassId, kFbxPlugConstructor pConstructor=0, const char *pFBXType=NULL, const char *pFBXSubType=NULL)
 Constructor.
void Destroy()
 Delete this class id.

Public Member Functions

const char * GetName() const
 Retrieve the class name.
kFbxClassId GetParent() const
 Retrieve the parent class id.
KFbxPlugCreate(KFbxSdkManager&pManager, const char *pName, constKFbxPlug*pFrom)
 Creat aKFbxPlugfrom the specifiedKFbxPlug.
bool Override(kFbxPlugConstructor pConstructor)
 Override theKFbxPlugconstructor.
bool Is(kFbxClassIdconst pId) const
 Test if this class is a hierarchical children of the specified class type.
bool operator==(kFbxClassIdconst&pClassId) const
 Equivalence operator.
KFbxClassIdInfo * GetClassIdInfo()
 Retrieve the information of this class id.
const KFbxClassIdInfo * GetClassIdInfo() const
 Retrieve the information of this class id.
const char * GetFbxFileTypeName(bool pAskParent=false) const
 Retrieve the fbx file type name.
const char * GetFbxFileSubTypeName() const
 Retrieve the fbx file subtype name.
bool IsValid() const
 Get whether this class type is valid.
void SetObjectTypePrefix(const char *pObjectTypePrefix)
 Set object type prefix.
const char * GetObjectTypePrefix()
 Get object type prefix.
KFbxPropertyHandleGetRootClassDefaultPropertyHandle()
 Get the default property handle of root class.
int ClassInstanceIncRef()
 Increase the instance reference count of this class type.
int ClassInstanceDecRef()
 Decrease the instance reference count of this class type.
int GetInstanceRef()
 Retrieve the instance reference count of this class type.

Constructor&Destructor Documentation

Constructor.

kFbxClassId(const char * pClassName,
constkFbxClassIdpParentClassId,
kFbxPlugConstructor pConstructor=0,
const char * pFBXType=NULL,
const char * pFBXSubType=NULL 
)

Constructor.

Parameters:
pClassName Class name.
pParentClassId Parent class id.
pConstructor Pointer to a function which constructsKFbxPlug.
pFBXType Fbx file type name.
pFBXSubType Fbx file subtype name.

Member Function Documentation

void Destroy( ) 

Delete this class id.

const char* GetName( ) const

Retrieve the class name.

Returns:
Class name.

kFbxClassIdGetParent( ) const

Retrieve the parent class id.

Returns:
Parent class id.

KFbxPlug* Create(KFbxSdkManagerpManager,
const char * pName,
constKFbxPlugpFrom 
)

Creat aKFbxPlugfrom the specifiedKFbxPlug.

Parameters:
pManager The object manager
pName KFbxPlugname
pFrom The specifiedKFbxPlug
Returns:
KFbxPlug

bool Override(kFbxPlugConstructor pConstructor ) 

Override theKFbxPlugconstructor.

Parameters:
pConstructor NewKFbxPlugconstructor.

bool Is(kFbxClassIdconst pId ) const

Test if this class is a hierarchical children of the specified class type.

Parameters:
pId Representing the class type
Returns:
trueif the object is a hierarchical children of the type specified,falseotherwise.

bool operator==(kFbxClassIdconst& pClassId ) const

Equivalence operator.

Parameters:
pClassId Another class id to be compared with this class id.
Returns:
trueif equal,falseotherwise.

KFbxClassIdInfo* GetClassIdInfo( ) [inline]

Retrieve the information of this class id.

Returns:
the class information.

Definition at line135of filekfbxplug.h.

const KFbxClassIdInfo* GetClassIdInfo( ) const[inline]

Retrieve the information of this class id.

Returns:
the class information.

Definition at line140of filekfbxplug.h.

const char* GetFbxFileTypeName(bool pAskParent=false ) const

Retrieve the fbx file type name.

Parameters:
pAskParent a flag on whether to ask the parent for file type name.
Returns:
the fbx file type name.

const char* GetFbxFileSubTypeName( ) const

Retrieve the fbx file subtype name.

bool IsValid( ) const[inline]

Get whether this class type is valid.

Returns:
tureif valid,falseotherwise.

Definition at line165of filekfbxplug.h.

void SetObjectTypePrefix(const char * pObjectTypePrefix ) 

Set object type prefix.

const char* GetObjectTypePrefix( ) 

Get object type prefix.

KFbxPropertyHandle* GetRootClassDefaultPropertyHandle( ) 

Get the default property handle of root class.

int ClassInstanceIncRef( ) 

Increase the instance reference count of this class type.

Returns:
the instance reference of this type after increase.

int ClassInstanceDecRef( ) 

Decrease the instance reference count of this class type.

Returns:
the instance reference of this type after decrease.

int GetInstanceRef( ) 

Retrieve the instance reference count of this class type.

Returns:
the instance reference of this type.