#include<kfbximporter.h>
List of all members.
Detailed Description
Class to import an FBX file into SDK objects.
Typical workflow for using theKFbxImporterclass:
- create an importer
- initialize the importer with a file name
- set numerous states, take information, defining how the importer will behave
- callKFbxImporter::Import()with an empty scene
Definition at line110of filekfbximporter.h.
Member Enumeration Documentation
Stream options identifiers.
- eSTREAMOPTIONS_PARSE_FILE
- eSTREAMOPTIONS_FASTDo not parse the file.
- eSTREAMOPTIONS_COUNT
Definition at line173of filekfbximporter.h.
Member Function Documentation
virtual bool Initialize | ( | const char * | pFileName | ) | [virtual] |
Initialize object.
- Parameters:
| pFileName | Name of file to access. |
- Returns:
true
on success,false
otherwise.
Reimplemented fromKFbxIO.
virtual bool Initialize | ( | KFile * | pFile | ) | [virtual] |
Initialize object.
- Parameters:
| pFile | file to access. Ownership is transfered to this object. |
- Returns:
true
on success,false
otherwise.
virtual KFile* GetFile | ( | | ) | [virtual] |
Get the file, if any.
- Returns:
- File or an null if the file has not been set.
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.
- Parameters:
| 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.
- Parameters:
| pCamName | Returned name of the camera. |
| pResolutionMode | Returned resolution mode. |
| pW | Returned width. |
| pH | Returned height. |
- Returns:
true
if the default rendering settings are defined in the file, otherwise returnsfalse
with empty parameters.
KFbxFileHeaderInfo* GetFileHeaderInfo | ( | | ) | |
Get the complete file header information.
- Returns:
- valid pointer to the complete header information
Read the currently opened file header to retrieve information related to takes.
- Parameters:
| pStreamOptionsGeneration | Stream options identifier. |
- Returns:
- Pointer to file import options or
NULL
on failure.
Read the currently opened file header to retrieve information related to takes.
- Parameters:
| pFbxObject | Target FBX file. |
- Returns:
- Pointer to stream import options or
NULL
on failure.
Import the currently opened file into a scene.
- Parameters:
| pDocument | Document to fill with file content. |
| pStreamOptions | Pointer to file import options. |
- Returns:
true
on success,false
otherwise.
Import the FBX file into a scene.
- Parameters:
| pDocument | Document to fill with file content. |
| pStreamOptions | Pointer to file import options. |
| pFbxObject | Source FBX file. |
- Returns:
true
on success,false
otherwise.
Release the file import options.
- Parameters:
| pStreamOptions | Pointer to file import options. |
void SetPassword | ( | char * | pPassword | ) | |
Set the password.
All subsequently imported files are opened with the given password.
- Parameters:
| pPassword | Password string. |
Get the number of available takes in the file.
- Returns:
- Number of takes.
Get the take information about an available take.
Use the returned reference to aKFbxTakeInfoobject to set whether the indexed take is imported.
- Parameters:
| pIndex | Index of the requested take. |
- Returns:
- Take information or
NULL
if function failed.
char* GetCurrentTakeName | ( | | ) | |
Return the current take name.
- Returns:
- Current take name if there is one, otherwise returns an empty string.
Get the scene info.
- Returns:
- Pointer to the scene info or
NULL
if no scene information is available in the file.
void SetFileFormat | ( | int | pFileFormat | ) | |
Set the imported file format.
- Parameters:
| pFileFormat | File format identifier. |
Get the format of the imported file.
- Returns:
- File format identifier.
- Returns:
true
if the file format is a recognized FBX format.