#include <kfbximporter.h>
Inherits KFbxIO.
Inheritance diagram for KFbxImporter:
Typical workflow for using the KFbxImporter class:
Definition at line 86 of file kfbximporter.h.
Import Functions | |
enum | EStreamOptionsGeneration |
Stream options identifiers. More... | |
virtual bool | Initialize (const char *pFileName) |
Initialize object. | |
void | GetFileVersion (int &pMajor, int &pMinor, int &pRevision) |
Get the FBX version number of the FBX file. | |
bool | GetDefaultRenderResolution (KString &pCamName, KString &pResolutionMode, double &pW, double &pH) |
Get the default rendering resolution if present in the file header. | |
KFbxStreamOptions * | GetImportOptions (EStreamOptionsGeneration pStreamOptionsGeneration=eSTREAMOPTIONS_PARSE_FILE) |
Read the currently opened file header to retrieve information related to takes. | |
KFbxStreamOptions * | GetImportOptions (IFbxObject *pFbxObject) |
Read the currently opened file header to retrieve information related to takes. | |
bool | Import (KFbxScene &pScene, KFbxStreamOptions *pStreamOptions=NULL) |
Import the currently opened file into a scene. | |
bool | Import (KFbxScene &pScene, KFbxStreamOptions *pStreamOptions, IFbxObject *pFbxObject) |
Import the FBX file into a scene. | |
void | ReleaseImportOptions (KFbxStreamOptions *pStreamOptions) |
Release the file import options. | |
Take Description Access | |
int | GetTakeCount () |
Get the number of available takes in the file. | |
KFbxTakeInfo * | GetTakeInfo (int pIndex) |
Get the take information about an available take. | |
char * | GetCurrentTakeName () |
Return the current take name. | |
Scene Description Access | |
KFbxSceneInfo * | GetSceneInfo () |
Get the scene info. | |
File Format | |
void | SetFileFormat (int pFileFormat) |
Set the imported file format. | |
int | GetFileFormat () |
Get the format of the imported file. | |
bool | IsFBX () |
| |
Public Member Functions | |
void | SetPassword (char *pPassword) |
Set the password. |
Stream options identifiers.
Definition at line 132 of file kfbximporter.h.
virtual bool Initialize | ( | const char * | pFileName | ) | [virtual] |
Initialize object.
pFileName | Name of file to access. |
true
on success, false
otherwise. Reimplemented from KFbxIO.
void GetFileVersion | ( | int & | pMajor, | |
int & | pMinor, | |||
int & | pRevision | |||
) |
Get the FBX version number of the FBX file.
FBX version numbers start at 5.0.0.
pMajor | Version major number. | |
pMinor | Version minor number. | |
pRevision | Version revision number. |
bool GetDefaultRenderResolution | ( | KString & | pCamName, | |
KString & | pResolutionMode, | |||
double & | pW, | |||
double & | pH | |||
) |
Get the default rendering resolution if present in the file header.
pCamName | Returned name of the camera. | |
pResolutionMode | Returned resolution mode. | |
pW | Returned width. | |
pH | Returned height. |
true
if the default rendering settings are defined in the file, otherwise returns false
with empty parameters. KFbxStreamOptions* GetImportOptions | ( | EStreamOptionsGeneration | pStreamOptionsGeneration = eSTREAMOPTIONS_PARSE_FILE |
) |
Read the currently opened file header to retrieve information related to takes.
pStreamOptionsGeneration | Stream options identifier. |
NULL
on failure. KFbxStreamOptions* GetImportOptions | ( | IFbxObject * | pFbxObject | ) |
Read the currently opened file header to retrieve information related to takes.
pFbxObject | Target FBX file. |
NULL
on failure. bool Import | ( | KFbxScene & | pScene, | |
KFbxStreamOptions * | pStreamOptions = NULL | |||
) |
Import the currently opened file into a scene.
pScene | Scene to fill with file content. | |
pStreamOptions | Pointer to file import options. |
true
on success, false
otherwise. bool Import | ( | KFbxScene & | pScene, | |
KFbxStreamOptions * | pStreamOptions, | |||
IFbxObject * | pFbxObject | |||
) |
Import the FBX file into a scene.
pScene | Scene to fill with file content. | |
pStreamOptions | Pointer to file import options. | |
pFbxObject | Source FBX file. |
true
on success, false
otherwise. void ReleaseImportOptions | ( | KFbxStreamOptions * | pStreamOptions | ) |
Release the file import options.
pStreamOptions | Pointer to file import options. |
void SetPassword | ( | char * | pPassword | ) |
Set the password.
All subsequently imported files are opened with the given password.
pPassword | Password string. |
int GetTakeCount | ( | ) |
Get the number of available takes in the file.
KFbxTakeInfo* GetTakeInfo | ( | int | pIndex | ) |
Get the take information about an available take.
Use the returned reference to a KFbxTakeInfo object to set whether the indexed take is imported.
pIndex | Index of the requested take. |
NULL
if function failed. char* GetCurrentTakeName | ( | ) |
Return the current take name.
KFbxSceneInfo* GetSceneInfo | ( | ) |
Get the scene info.
NULL
if no scene information is available in the file. void SetFileFormat | ( | int | pFileFormat | ) |
Set the imported file format.
pFileFormat | File format identifier. |
int GetFileFormat | ( | ) |
Get the format of the imported file.
bool IsFBX | ( | ) |
true
if the file format is a recognized FBX format.