#include
<kfbxsdkmanager.h>
The SDK manager is in charge of:
Definition at line 78 of file kfbxsdkmanager.h.
Error Management |
|
enum | EError { eOBJECT_NOT_FOUND, eNAME_ALREADY_IN_USE, eERROR_COUNT } |
Error codes. More... |
|
KError & | GetError () |
Retrieve error object. |
|
EError | GetLastErrorID () const |
Get last error code. |
|
const char * | GetLastErrorString () const |
Get last error string. |
|
Global Object Management |
|
KArrayTemplate< KFbxObject * > | mObjectArray |
void | RegisterObject (KFbxPlug const *pPlug) |
Register object. |
|
void | UnregisterObject (KFbxPlug const *pPlug) |
Unregister object. |
|
int | GetSrcObjectCount (KFbxNode const *) const |
Get the count of KFbxNode. |
|
KFbxNode * | GetSrcObject (KFbxNode const *, int pIndex=0) const |
Get the (pIndex)th KFbxNode. |
|
int | GetSrcObjectCount (KFbxTexture const *) const |
Get the count of KFbxTexture.
|
|
KFbxTexture * | GetSrcObject (KFbxTexture const *, int pIndex=0) const |
Get the (pIndex)th KFbxTexture.
|
|
int | GetSrcObjectCount (KFbxCluster const *) const |
Get the count of KFbxCluster.
|
|
KFbxCluster * | GetSrcObject (KFbxCluster const *, int pIndex=0) const |
Get the (pIndex)th KFbxCluster.
|
|
int | GetSrcObjectCount (KFbxScene const *) const |
Get the count of KFbxScene.
|
|
KFbxScene * | GetSrcObject (KFbxScene const *, int pIndex=0) const |
Get the (pIndex)th KFbxScene.
|
|
int | GetSrcObjectCount (KFbxDocument const *) const |
Get the count of KFbxDocument. |
|
KFbxDocument * | GetSrcObject (KFbxDocument const *, int pIndex=0) const |
Get the (pIndex)th KFbxDocument. |
|
int | GetSrcObjectCount (KFbxSurfaceMaterial const *) const |
Get the count of KFbxSurfaceMaterial.
|
|
KFbxSurfaceMaterial * | GetSrcObject (KFbxSurfaceMaterial const *, int pIndex=0) const |
Get the (pIndex)th KFbxSurfaceMaterial.
|
|
Memory Management |
|
static bool | SetMemoryAllocator (KFbxMemoryAllocator *pMemoryAllocator) |
SDK Memory management. |
|
FBX SDK Manager Creation/Destruction/retrieval |
|
static KFbxSdkManager * | Create () |
SDK manager allocation method. |
|
static void | GetFileFormatVersion (int &pMajor, int &pMinor, int &pRevision) |
Get the current default FBX file format
version number for this version of the FBX SDK. |
|
virtual void | Destroy () |
Destructor. |
|
Plug and Object Definition and Management |
|
template<typename T1, typename T2> | |
kFbxClassId | RegisterFbxClass (char const *pName, T1 const *pFBX_TYPE_Class, T2 const *pFBX_TYPE_ParentClass, const char *pFbxFileTypeName=0, const char *pFbxFileSubTypeName=0) |
Class registration. |
|
template<typename T> | |
kFbxClassId | RegisterRuntimeFbxClass (char const *pName, T const *pFBX_TYPE_ParentClass, const char *pFbxFileTypeName=0, const char *pFbxFileSubTypeName=0) |
Runtime class registration. |
|
void | UnregisterRuntimeFbxClass (char const *pName) |
Runtime class unregistration. |
|
template<typename T1, typename T2> | |
kFbxClassId | OverrideFbxClass (T1 const *pFBX_TYPE_Class, T2 const *pFBX_TYPE_OverridenClass) |
Override class. |
|
KFbxPlug * | CreateClass (kFbxClassId pClassId, char const *pName, const char *pFBXType=0, const char *pFBXSubType=0) |
Create class. |
|
KFbxPlug * | CreateClass (KFbxObject *pContainer, kFbxClassId pClassId, const char *pName, const char *pFBXType=0, const char *pFBXSubType=0) |
Create class. |
|
kFbxClassId | FindClass (const char *pClassName) const |
Find class. |
|
kFbxClassId | FindFbxFileClass (const char *pFbxFileTypeName, const char *pFbxFileSubTypeName) const |
Find file class. |
|
template<typename T> | |
void | UnregisterFbxClass (T const *pFBX_TYPE_Class) |
Class unregistration. |
|
Data Type Management |
|
KFbxDataType | CreateFbxDataType (const char *pName, EFbxType pType) |
Register a new data type to the manager.
|
|
KFbxDataType const & | GetFbxDataTypeFromName (const char *pDataType) |
Find a data type from the type name.
|
|
int | GetFbxDataTypeCount () const |
List the data types. |
|
KFbxDataType & | GetFbxDataType (int pIndex) |
Find a data types at pIndex. |
|
User Notification Object |
|
KFbxUserNotification * | GetUserNotification () const |
Access to the unique UserNotification
object. |
|
void | SetUserNotification (KFbxUserNotification *pUN) |
Set the user notification. |
|
IOSettings Object |
|
virtual KFbxIOSettings * | GetIOSettings () const |
Access to a IOSettings object. |
|
virtual void | SetIOSettings (KFbxIOSettings *pIOSettings) |
Set the IOSettings pointer. |
|
Message Emitter (for Message Logging) |
|
KFbxMessageEmitter & | GetMessageEmitter () |
Access to the unique KFbxMessageEmitter
object. |
|
bool | SetMessageEmitter (KFbxMessageEmitter *pMessageEmitter) |
Sets to the unique KFbxMessageEmitter
object. |
|
Localization Hierarchy |
|
void | AddLocalization (KFbxLocalizationManager *pLocManager) |
Add a localization object to the known
localization providers. |
|
void | RemoveLocalization (KFbxLocalizationManager *pLocManager) |
Remove a localization object from the known
localization providers. |
|
bool | SetLocale (const char *pLocale) |
Select the current locale for localization.
|
|
const char * | Localize (const char *pID, const char *pDefault=NULL) const |
Localization helper function. |
|
Sub-Manager Management |
|
KFbxPreviewManager & | GetPreviewManager () |
Retrieve the manager responsible for
managing object previews. |
|
XRef Manager |
|
KFbxXRefManager & | GetXRefManager () |
Retrieve the manager responsible for
managing object XRef resolution. |
|
Library Management |
|
KFbxLibrary * | GetRootLibrary () const |
Retrieve the main object Libraries. |
|
KFbxLibrary * | GetSystemLibraries () const |
Retrieve the main object Libraries. |
|
KFbxLibrary * | GetUserLibraries () const |
Retrieve the main object Libraries. |
|
Plug-in Registry Object |
|
KFbxIOPluginRegistry * | GetIOPluginRegistry () const |
Access to the unique KFbxIOPluginRegistry
object. |
|
Fbx Generic Plugins Management |
|
bool | LoadPluginsDirectory (char *pFilename, char *pExtensions) |
Load plug-ins directory. |
|
bool | LoadPlugin (char *pFilename) |
Load plug-in. |
|
bool | UnloadPlugins () |
Unload all plug-ins. |
|
bool | EmitPluginsEvent (KFbxEventBase const &pEvent) |
Emit plugins event. |
|
KArrayTemplate< KFbxPlugin const * > |
GetPlugins () const |
Get plugins. |
|
int | GetPluginCount () const |
get plugins count |
|
KFbxPlugin * | FindPlugin (const char *pName, const char *pVersion) const |
Find plug in. |
|
IO Settings |
|
void | FillIOSettingsForReadersRegistered (KFbxIOSettings &pIOS) |
Fill IO Settings for registered readers.
|
|
void | FillIOSettingsForWritersRegistered (KFbxIOSettings &pIOS) |
Fill IO Settings for registered writers.
|
|
void | FillCommonIOSettings (KFbxIOSettings &pIOS, bool pImport) |
Fill common IO Settings. |
|
Reference Management |
|
int | GetReferenceCount () const |
Get number of references. |
|
KFbxReference * | GetReference (int pIndex) const |
Get reference at given index. |
|
int | AddReference (KFbxReference *pReference) |
Add a reference. |
|
bool | RemoveReference (KFbxReference *pReference) |
Remove the specified reference from
reference list. |
|
bool | ClearReference (KFbxReference *pReference) |
Clear the specified reference from the SDK
manager. |
|
Static Public Member Functions |
|
static KString | PrefixName (char const *pPrefix, char const *pName) |
Add a prefix to a name. |
enum EError |
Error codes.
eOBJECT_NOT_FOUND | The requested object was not found in the Manager's database. |
eNAME_ALREADY_IN_USE | A name clash occurred. |
eERROR_COUNT | Mark the end of the error enum. |
Definition at line 227 of file kfbxsdkmanager.h.
static bool SetMemoryAllocator | ( | KFbxMemoryAllocator * | pMemoryAllocator | ) | [static] |
SDK Memory management.
Use this method to specify custom memory management routines. The FBX SDK will use the provided routines to allocate and deallocate memory.
pMemoryAllocator | The memory allocator to set. |
static KFbxSdkManager* Create | ( | ) | [static] |
SDK manager allocation method.
NULL
if this is an
evaluation copy of the FBX SDK and it is expired.virtual void Destroy | ( | ) | [virtual] |
Destructor.
Deallocates all object previously created by the SDK manager.
Get the current default FBX file format version number for this version of the FBX SDK.
pMajor | Version major number. | |
pMinor | Version minor number. | |
pRevision | Version revision number. |
kFbxClassId RegisterFbxClass | ( | char const * | pName, | |
T1 const * | pFBX_TYPE_Class, | |||
T2 const * | pFBX_TYPE_ParentClass, | |||
const char * | pFbxFileTypeName =
0 , |
|||
const char * | pFbxFileSubTypeName =
0 |
|||
) | [inline] |
Class registration.
pName | ||
pFBX_TYPE_Class | ||
pFBX_TYPE_ParentClass | ||
pFbxFileTypeName | ||
pFbxFileSubTypeName |
Definition at line 137 of file kfbxsdkmanager.h.
kFbxClassId RegisterRuntimeFbxClass | ( | char const * | pName, | |
T const * | pFBX_TYPE_ParentClass, | |||
const char * | pFbxFileTypeName =
0 , |
|||
const char * | pFbxFileSubTypeName =
0 |
|||
) | [inline] |
Runtime class registration.
pName | ||
pFBX_TYPE_ParentClass | ||
pFbxFileTypeName | ||
pFbxFileSubTypeName |
Definition at line 149 of file kfbxsdkmanager.h.
void UnregisterRuntimeFbxClass | ( | char const * | pName | ) | [inline] |
Runtime class unregistration.
pName | The class name. |
Definition at line 156 of file kfbxsdkmanager.h.
kFbxClassId OverrideFbxClass | ( | T1 const * | pFBX_TYPE_Class, | |
T2 const * | pFBX_TYPE_OverridenClass | |||
) | [inline] |
Override class.
pFBX_TYPE_Class | ||
pFBX_TYPE_OverridenClass |
Definition at line 171 of file kfbxsdkmanager.h.
KFbxPlug* CreateClass | ( | kFbxClassId | pClassId, | |
char const * | pName, | |||
const char * | pFBXType = 0 , |
|||
const char * | pFBXSubType = 0 |
|||
) |
Create class.
pClassId | ||
pName | ||
pFBXType | ||
pFBXSubType |
KFbxPlug* CreateClass | ( | KFbxObject * | pContainer, | |
kFbxClassId | pClassId, | |||
const char * | pName, | |||
const char * | pFBXType = 0 , |
|||
const char * | pFBXSubType = 0 |
|||
) |
Create class.
pContainer | ||
pClassId | ||
pName | ||
pFBXType | ||
pFBXSubType |
kFbxClassId FindClass | ( | const char * | pClassName | ) | const |
Find class.
pClassName |
kFbxClassId FindFbxFileClass | ( | const char * | pFbxFileTypeName, | |
const char * | pFbxFileSubTypeName | |||
) | const |
Find file class.
pFbxFileTypeName | ||
pFbxFileSubTypeName |
void UnregisterFbxClass | ( | T const * | pFBX_TYPE_Class | ) | [inline] |
KError& GetError | ( | ) |
Retrieve error object.
EError GetLastErrorID | ( | ) | const |
Get last error code.
const char* GetLastErrorString | ( | ) | const |
Get last error string.
KFbxDataType CreateFbxDataType | ( | const char * | pName, | |
EFbxType | pType | |||
) |
Register a new data type to the manager.
pName | The type name. | |
pType | The data type. |
KFbxDataType const& GetFbxDataTypeFromName | ( | const char * | pDataType | ) |
Find a data type from the type name.
pDataType | The type name. |
int GetFbxDataTypeCount | ( | ) | const |
List the data types.
KFbxDataType& GetFbxDataType | ( | int | pIndex | ) |
Find a data types at pIndex.
pIndex | The data type index. |
KFbxUserNotification* GetUserNotification | ( | ) | const |
Access to the unique UserNotification object.
NULL
if
the object has not been allocated.void SetUserNotification | ( | KFbxUserNotification * | pUN | ) |
Set the user notification.
pUN |
virtual KFbxIOSettings* GetIOSettings | ( | ) | const [virtual] |
Access to a IOSettings object.
NULL
if
the object has not been allocated.virtual void SetIOSettings | ( | KFbxIOSettings * | pIOSettings | ) | [virtual] |
Set the IOSettings pointer.
pIOSettings |
KFbxMessageEmitter& GetMessageEmitter | ( | ) |
Access to the unique KFbxMessageEmitter object.
bool SetMessageEmitter | ( | KFbxMessageEmitter * | pMessageEmitter | ) |
Sets to the unique KFbxMessageEmitter object.
pMessageEmitter | the emitter to use, passing NULL will reset to the default emitter. The object will be deleted when the SDK manager is destroyed, thus ownership is transfered. |
void AddLocalization | ( | KFbxLocalizationManager * | pLocManager | ) |
Add a localization object to the known localization providers.
pLocManager | the localization object to register. |
void RemoveLocalization | ( | KFbxLocalizationManager * | pLocManager | ) |
Remove a localization object from the known localization providers.
pLocManager | the localization object to remove. |
bool SetLocale | ( | const char * | pLocale | ) |
Select the current locale for localization.
pLocale | the locale name, for example "fr" or "en-US". |
const char* Localize | ( | const char * | pID, | |
const char * | pDefault = NULL |
|||
) | const |
Localization helper function.
Calls each registered localization manager until one can localizes the text.
pID | the identifier for the text to localize. | |
pDefault | the default text. Uses pID if NULL. |
KFbxPreviewManager& GetPreviewManager | ( | ) |
Retrieve the manager responsible for managing object previews.
KFbxXRefManager& GetXRefManager | ( | ) |
Retrieve the manager responsible for managing object XRef resolution.
KFbxLibrary* GetRootLibrary | ( | ) | const |
Retrieve the main object Libraries.
KFbxLibrary* GetSystemLibraries | ( | ) | const |
Retrieve the main object Libraries.
KFbxLibrary* GetUserLibraries | ( | ) | const |
Retrieve the main object Libraries.
KFbxIOPluginRegistry* GetIOPluginRegistry | ( | ) | const |
Access to the unique KFbxIOPluginRegistry object.
bool LoadPluginsDirectory | ( | char * | pFilename, | |
char * | pExtensions | |||
) |
Load plug-ins directory.
pFilename | The directory path. | |
pExtensions | The plug in extension. |
True
bool LoadPlugin | ( | char * | pFilename | ) |
Load plug-in.
pFilename | The file name |
True
bool UnloadPlugins | ( | ) |
Unload all plug-ins.
bool EmitPluginsEvent | ( | KFbxEventBase const & | pEvent | ) |
Emit plugins event.
pEvent | The event to be emitted. |
KArrayTemplate<KFbxPlugin const*> GetPlugins | ( | ) | const |
Get plugins.
int GetPluginCount | ( | ) | const |
get plugins count
KFbxPlugin* FindPlugin | ( | const char * | pName, | |
const char * | pVersion | |||
) | const |
Find plug in.
pName | The plug in name. | |
pVersion | The plug in version. |
null
if not found.void FillIOSettingsForReadersRegistered | ( | KFbxIOSettings & | pIOS | ) |
Fill IO Settings for registered readers.
pIOS | The properties hierarchies to fill. |
void FillIOSettingsForWritersRegistered | ( | KFbxIOSettings & | pIOS | ) |
Fill IO Settings for registered writers.
pIOS | The properties hierarchies to fill. |
void FillCommonIOSettings | ( | KFbxIOSettings & | pIOS, | |
bool | pImport | |||
) |
Fill common IO Settings.
pIOS | The properties hierarchies to fill. | |
pImport | If true , import properties are set, otherwise
export properties are set. |
void RegisterObject | ( | KFbxPlug const * | pPlug | ) |
Register object.
pPlug | The object to be registered. |
void UnregisterObject | ( | KFbxPlug const * | pPlug | ) |
Unregister object.
pPlug | The object to be unregistered. |
Get the count of KFbxNode.
Definition at line 518 of file kfbxsdkmanager.h.
Referenced by KFbxGetSrcCount().
Get the (pIndex)th KFbxNode.
pIndex | the index. |
Definition at line 522 of file kfbxsdkmanager.h.
Referenced by KFbxGetSrc().
int GetSrcObjectCount | ( | KFbxTexture const * | ) | const [inline] |
Get the count of KFbxTexture.
Definition at line 528 of file kfbxsdkmanager.h.
KFbxTexture* GetSrcObject | ( | KFbxTexture const * | , | |
int | pIndex = 0 |
|||
) | const [inline] |
Get the (pIndex)th KFbxTexture.
pIndex | the index. |
Definition at line 532 of file kfbxsdkmanager.h.
int GetSrcObjectCount | ( | KFbxCluster const * | ) | const [inline] |
Get the count of KFbxCluster.
Definition at line 538 of file kfbxsdkmanager.h.
KFbxCluster* GetSrcObject | ( | KFbxCluster const * | , | |
int | pIndex = 0 |
|||
) | const [inline] |
Get the (pIndex)th KFbxCluster.
pIndex | the index. |
Definition at line 542 of file kfbxsdkmanager.h.
Get the count of KFbxScene.
Definition at line 548 of file kfbxsdkmanager.h.
Get the (pIndex)th KFbxScene.
pIndex | the index. |
Definition at line 552 of file kfbxsdkmanager.h.
int GetSrcObjectCount | ( | KFbxDocument const * | ) | const [inline] |
Get the count of KFbxDocument.
Definition at line 558 of file kfbxsdkmanager.h.
KFbxDocument* GetSrcObject | ( | KFbxDocument const * | , | |
int | pIndex = 0 |
|||
) | const [inline] |
Get the (pIndex)th KFbxDocument.
pIndex | the index. |
Definition at line 562 of file kfbxsdkmanager.h.
int GetSrcObjectCount | ( | KFbxSurfaceMaterial const * | ) | const [inline] |
Get the count of KFbxSurfaceMaterial.
Definition at line 568 of file kfbxsdkmanager.h.
KFbxSurfaceMaterial* GetSrcObject | ( | KFbxSurfaceMaterial const * | , | |
int | pIndex = 0 |
|||
) | const [inline] |
Get the (pIndex)th KFbxSurfaceMaterial.
pIndex | the index. |
Definition at line 572 of file kfbxsdkmanager.h.
int GetReferenceCount | ( | ) | const |
Get number of references.
KFbxReference* GetReference | ( | int | pIndex | ) | const |
Get reference at given index.
pIndex | Position in the list of references. |
NULL
if index is out
of bounds.int AddReference | ( | KFbxReference * | pReference | ) |
Add a reference.
pReference | The reference to be added. |
true
otherwise, if the reference is already there,
returns false
.bool RemoveReference | ( | KFbxReference * | pReference | ) |
Remove the specified reference from reference list.
pReference | The reference to be removed. |
true
otherwise, if the reference could not be found
returns false
.bool ClearReference | ( | KFbxReference * | pReference | ) |
Clear the specified reference from the SDK manager.
pReference | The reference to be removed. |
true
otherwise, if the reference could not be
found returns false
.static KString PrefixName | ( | char const * | pPrefix, | |
char const * | pName | |||
) | [static] |
Add a prefix to a name.
pPrefix | The prefix to be added to the pName . This string
must contain the "::" characters in order to be considered as a
prefix. |
|
pName | The name to be prefix. |
pPrefix
.KArrayTemplate<KFbxObject *> mObjectArray
[protected] |
Definition at line 501 of file kfbxsdkmanager.h.