KFbxExporter Class Reference
#include <kfbxexporter.h>
List of all members.
Detailed Description
Class to export SDK objects into an FBX file.
Normally this class is used as is. But for very special needs a
user can override Initialize() for special purpose.
An exporter will select the appropriate writer to a particular
file. Ex: When an exporter must export an FBX 7 file, the exporter
will ask for all registered writers if an FBX 7 file writer is
available, then if a writer is found, the exporter will create the
specialized FBX 7 writer and write the file. This way, an exporter
can "write" many different type of files like FBX 5/6/7, 3DS, Obj,
Dxf, Collada, etc.
- See also:
 
- KFbxWriter
 
Typical workflow for using the 
KFbxExporter
class:
- create a SDKManager
 
- create an IOSettings object
 
- create an empty scene
 
- create an exporter
 
- initialize it with a file name
 
- set numerous options to control how the exporter will
behave.
ex: set IOSettings values to export Materials or Textures. 
- call KFbxExporter::Export()
with the entity to export.
 
Definition at line 136 of file kfbxexporter.h.
Member Function Documentation
| virtual bool Initialize | 
( | 
const char *  | 
pFileName, | 
 | 
 | 
int  | 
pFileFormat = -1, | 
 | 
 | 
KFbxIOSettings *  | 
pIOSettings = NULL | 
  | 
 | 
) | 
 | 
 | 
[virtual] | 
 
Initialize object.
- Parameters:
 
- 
 | 
pFileName  | 
Name of file to access. | 
 | 
pFileFormat  | 
file format identifier User does not need to specify it by
default. if not specified, plugin will detect the file format
according to file suffix automatically. | 
 | 
pIOSettings  | 
client IOSettings, if not specified, a default IOSettings will
be created | 
 
- Returns:
 
true on success, false
otherwise. 
 
 
| bool GetExportOptions | 
( | 
 | 
 )  | 
 | 
 
Setup file export options settings.
- Returns:
 
true on success, false
otherwise. 
 
 
Access to a IOSettings object.
- Returns:
 
- The pointer to IOSettings or 
NULL if
the object has not been allocated. 
 
 
Set the IOSettings pointer.
- Parameters:
 
- 
 
 
 
| bool Export | 
( | 
KFbxDocument *  | 
pDocument, | 
 | 
 | 
bool  | 
pNonBlocking =
false | 
  | 
 | 
) | 
 | 
 | 
 | 
 
Export the document to the currently created file.
- Parameters:
 
- 
 | 
pDocument  | 
Document to export. | 
 | 
pNonBlocking  | 
If true, the export process will be executed in a new thread,
allowing it to be non-blocking. To determine if the export
finished, refer to the function IsExporting(). | 
 
- Returns:
 
true on success, false
otherwise. 
 
 
| bool IsExporting | 
( | 
bool &  | 
pExportResult | 
 )  | 
 | 
 
Check if the exporter is currently exporting.
- Parameters:
 
- 
 | 
pExportResult  | 
This parameter, after the export finished, will contain the
result of the export success or failure. | 
 
- Returns:
 
- Return true if the exporter is currently exporting.
 
 
 
| float GetProgress | 
( | 
KString
&  | 
pStatus | 
 )  | 
 | 
 
Get the progress status in non-blocking mode.
- Parameters:
 
- 
 | 
pStatus  | 
KString reference to
retrieve current status | 
 
- Returns:
 
- Percentage of the finished workload
 
 
 
Register a callback function for progress reporting in single
thread mode.
- Parameters:
 
- 
 | 
pHandler  | 
Pointer of the callback function. | 
 
 
 
Get the format of the exported file.
- Returns:
 
- File format identifier.
 
 
 
Return true if the file format is a recognized FBX
format.
 
 
| char const* const*
GetCurrentWritableVersions | 
( | 
 | 
 )  | 
 | 
 
Get writable version for the current file format.
- Returns:
 
char** string array of writable versions 
 
 
Set file version for a given file format.
- Parameters:
 
- 
 | 
pVersion  | 
String description of the file format. | 
 | 
pRenamingMode  | 
Renaming mode. | 
 
- Returns:
 
true if mode is set correctly 
 
 
| void SetResamplingRate | 
( | 
double  | 
pResamplingRate | 
 )  | 
[inline] | 
 
Set the resampling rate (only used when exporting to FBX 5.3 and
lower).
- Parameters:
 
- 
 | 
pResamplingRate  | 
resampling rate | 
 
Definition at line 236 of file kfbxexporter.h.
 
 
Set the default rendering resolution.
- Parameters:
 
- 
 | 
pCamName  | 
name of the camera. | 
 | 
pResolutionMode  | 
resolution mode. | 
 | 
pW  | 
width. | 
 | 
pH  | 
height. | 
 
 
 
Get the complete file header information.
- Returns:
 
- valid pointer to the complete header information
 
 
 
 
KFbxExporter KFbxExporter KFbxExporter
KFbxExporter KFbxExporter KFbxExporter KFbxExporter KFbxExporter
KFbxExporter KFbxExporter
KFbxExporter KFbxExporter KFbxExporter
KFbxExporter KFbxExporter KFbxExporter KFbxExporter KFbxExporter
KFbxExporter KFbxExporter