#include <fbxio.h>
FbxIO represents an FBX file.
It is primarily used by FBX importers (FbxImporter) and exporter (FbxExporter) when reading or writing data from or to a disk or memory. Most users will not use the FbxIO class directly but will use an instance of either FbxImporter or FbxExporter to read or write FBX files.
An FBX file may contain binary data or ASCII data. A good way to learn the internal structure of a FBX file is to open a FBX file saved in ASCII in a text editor.
Ex: to read a FBX file content using FbxIO class directly
Classes | |
struct | FbxAutoResetXRefManager |
Public Types | |
enum | BinaryType { BinaryNormal, BinaryLarge } |
Public Member Functions | |
FbxIO (BinaryType pBinaryType, FbxStatus &pStatus) | |
Default constructor. More... | |
virtual | ~FbxIO () |
Destructor. More... | |
virtual bool | FieldReadEmbeddedFile (FbxString &pFileName, FbxString &pRelativeFileName, const char *pEmbeddedMediaDirectory="", bool *pIsFileCreated=((void *) 0)) |
Read field and copy it into a file. More... | |
const double * | FieldReadArrayD (int &pCount) |
Read the whole array and return the pointer to it. More... | |
const float * | FieldReadArrayF (int &pCount) |
Read the whole array and return the pointer to it. More... | |
const int * | FieldReadArrayI (int &pCount) |
Read the whole array and return the pointer to it. More... | |
const FbxLongLong * | FieldReadArrayLL (int &pCount) |
Read the whole array and return the pointer to it. More... | |
const bool * | FieldReadArrayB (int &pCount) |
Read the whole array and return the pointer to it. More... | |
const FbxUChar * | FieldReadArrayBytes (int &pCount) |
Read the whole array and return the pointer to it. More... | |
const int * | FieldReadArray (int &pCount, const int *) |
Read the whole array and return the pointer to it. More... | |
const float * | FieldReadArray (int &pCount, const float *) |
Read the whole array and return the pointer to it. More... | |
const double * | FieldReadArray (int &pCount, const double *) |
Read the whole array and return the pointer to it. More... | |
const FbxLongLong * | FieldReadArray (int &pCount, const FbxLongLong *) |
Read the whole array and return the pointer to it. More... | |
const bool * | FieldReadArray (int &pCount, const bool *) |
Read the whole array and return the pointer to it. More... | |
const FbxUChar * | FieldReadArray (int &pCount, const FbxUChar *) |
Read the whole array and return the pointer to it. More... | |
int | GetFieldRMaxChunkSize () const |
ASCII files may limit how big you can write your raw data, forcing you to break it down into chunks. More... | |
void | FieldWriteObjectReference (const char *pName) |
Write object reference pName in the current field. More... | |
void | FieldWriteObjectReference (const char *pFieldName, const char *pName) |
Write object reference pName in field pFieldName. More... | |
bool | FieldWriteEmbeddedFile (FbxString pFileName, FbxString pRelativeFileName) |
Write field with file content as a value. More... | |
void | WriteComments (const char *pFieldName) |
Write comments, only effective in ASCII mode. More... | |
bool | GetHaveLoadedEmbededFile () const |
Get if the embedded file is currently loaded. More... | |
void | GetMemoryFileInfo (void **pMemPtr, size_t &pSize) const |
Get the maximum byte count written. More... | |
bool | IsBeforeVersion6 () const |
Get a internal flag to manage pre FBX version 6 data format Used for backwards compatibility. More... | |
void | SetIsBeforeVersion6 (bool pIsBeforeVersion6) |
Set a internal flag to manage pre FBX version 6 data format Used for backwards compatibility. More... | |
Project Global | |
The term "Project" here is an abstract name chosen to represent a group of data ex: a file, a stream, a memory buffer, etc. | |
bool | ProjectOpen (void *pAddress, FbxULong pMaxLength, FbxReader *pReader, bool pCheckCRC=false, bool pOpenMainSection=true, FbxIOFileHeaderInfo *pFileHeaderInfo=((void *) 0)) |
Open a project already in Memory. More... | |
bool | ProjectOpen (const char *pName, FbxReader *pReader, bool pCheckCRC=false, bool pOpenMainSection=true, FbxIOFileHeaderInfo *pFileHeaderInfo=((void *) 0)) |
Open a project. More... | |
bool | ProjectOpen (FbxStream *pStream, void *pStreamData, FbxReader *pReader, bool pCheckCRC=false, bool pOpenMainSection=true, FbxIOFileHeaderInfo *pFileHeaderInfo=((void *) 0)) |
Open a project. More... | |
bool | ProjectOpenDirect (const char *pName, FbxReader *pReader, bool pCheckCRC=false, bool pOpenMainSection=true, FbxIOFileHeaderInfo *pFileHeaderInfo=((void *) 0)) |
Open project file without necessarily an .fbx extension. More... | |
bool | ProjectCreate (void *pAddress, FbxUInt pSize, FbxWriter *pWriter, bool pBinary, bool pEncrypted, FbxIOFileHeaderInfo *pFileHeaderInfo=((void *) 0)) |
Create a project in Memory. More... | |
bool | ProjectCreate (const char *pName, FbxWriter *pWriter, bool pBinary, bool pEncrypted, FbxIOFileHeaderInfo *pFileHeaderInfo=((void *) 0)) |
Create a project. More... | |
bool | ProjectCreate (FbxStream *pStream, void *pStreamData, FbxWriter *pWriter, bool pBinary, bool pEncrypted, FbxIOFileHeaderInfo *pFileHeaderInfo=((void *) 0)) |
Create a project. More... | |
bool | ProjectCreateDirect (const char *pName, FbxWriter *pWriter, bool pBinary, bool pEncrypted, FbxIOFileHeaderInfo *pFileHeaderInfo=((void *) 0)) |
Create a project without necessary an .fbx extension. More... | |
bool | ProjectCreateEmpty (const char *pName, FbxWriter *pWriter, int pVersion, bool pBinary, bool pEncrypted) |
Create a project, without writing out the header (yet) More... | |
bool | ProjectCreateEmpty (FbxStream *pStream, void *pStreamData, FbxWriter *pWriter, int pVersion, bool pBinary, bool pEncrypted) |
Create a project, without writing out the header (yet) More... | |
bool | ProjectWrite_BeginFileHeader () |
Write FBX signature at the top of the file, prepare file for writing header information. More... | |
bool | ProjectWrite_BeginExtendedHeader () |
Open up the 'extended header'. More... | |
bool | ProjectWrite_WriteExtendedHeader (const FbxIOFileHeaderInfo *pExtendedHeader) |
Write the contents of the extended header. More... | |
bool | ProjectWrite_EndExtendedHeader () |
Close the extended header. More... | |
bool | ProjectWrite_EndFileHeader () |
Close up the header, prepare file for payload write. More... | |
bool | ProjectClose (void **pData=0, size_t *pSize=0) |
Close the project. More... | |
void | ProjectSetXRefManager (const FbxXRefManager *) |
Provide the XRef Manager to use to create the .fbm folder. More... | |
const FbxXRefManager * | ProjectGetXRefManager () const |
Get the XRef Manager to use. More... | |
bool | ProjectCreateEmbeddedFolder (const FbxXRefManager &pXRefManager, FbxString &pCreatedFolder, const char *pUserDefinedFolder=((void *) 0)) |
Select (and create) a folder to store embedded files (the .fbm file folder). More... | |
void | SetEmbedded (bool pValue) |
On store event, use this function to tell if we are embedding. More... | |
void | SetEmbeddingExtractionFolder (const char *pExtractionFolder) |
Explicitly set the embedding extraction folder. More... | |
const char * | GetEmbeddingExtractionFolder () |
Retrieve the current folder destination where the embedded files will be extracted. More... | |
bool | IsEmbedded () const |
Check if file is embedded or not. More... | |
bool | IsBinary () const |
Check if file is binary or ASCII. More... | |
bool | IsEncrypted () const |
Return if binary file is encrypted. More... | |
bool | CheckCRC () |
Check CRC code. More... | |
FbxUInt32 | GetFileVersionNumber () const |
Return the file version number. More... | |
void | CacheSize (FbxUInt32 pCacheSize) |
Set the cache size for accelerated IO. More... | |
FbxUInt32 | CacheSize () const |
Return the current cache size. More... | |
FBX 7 Format specific functions. | |
The FBX 7 format can compress internal arrays to make the file smaller. The writer may decide not to compress all arrays, or it may even decide not to compress anyway. Flags are written in the file to help the FBX7 reader to know if a decompression is required, on a per-array basis. The following functions address specific topics of the FBX 7 file format. | |
bool | Fbx7Support () const |
void | Fbx7Support (bool pSupport) |
Set the flag state to tell the parser to handle FBX7 files. More... | |
bool | CompressArrays () const |
void | CompressArrays (bool pCompress) |
Set the flag state. More... | |
int | CompressMinimumSize () const |
void | CompressMinimumSize (int pSize) |
Set the compression minimum size. More... | |
int | CompressLevel () const |
void | CompressLevel (int pLevel) |
Set the compression level. More... | |
Directory related functions used to get or set file path information. | |
const char * | GetFilename () const |
Get project file name. More... | |
FbxString | GetDataDirectory (bool pAutoCreate=true) |
Get project data directory name. More... | |
FbxString | GetMediaDirectory (bool pCreate=false, const char *pUserDefinedFolder=((void *) 0)) |
Get the current embedded folder used by this object. More... | |
FbxString | GetContainerTemplateDirectory (const char *pTemplateName, bool pCreate) |
Get the full path of the directory to extract the template file. More... | |
char * | GetRelativePath (const char *pPath) |
Get the path relative to project directory. More... | |
char * | GetRelativeFilePath (const char *pFilePath) |
Get the file path relative to project directory. More... | |
char * | GetFullPath (const char *pRelativePath) |
Get the full path of path relative to project directory. More... | |
char * | GetFullFilePath (const char *pRelativeFilePath) |
Get the full file path of path relative to project directory. More... | |
char * | GetTmpProjectName (const char *pName) const |
Get the temporary project name. More... | |
bool | SwapFromTmpProject (const char *pName, char *pError=((void *) 0), int pErrorSize=0) |
Swap from temporary project. More... | |
Read related functions used to get information of a field or a group of fields. | |
Can be used to get the field content data or to navigate from field to field. | |
void | FieldReadResetPosition () |
Reset the field read position. More... | |
int | FieldGetCount () const |
Get the number of fields. More... | |
const char * | FieldGetName (int pFieldIndex) const |
Get the name of field indexed pFieldIndex. More... | |
int | FieldGetInstanceCount (const char *pFieldName) const |
Get number of instance field pFieldName has. More... | |
bool | FieldReadBegin (int pFieldIndex, int pInstance) |
Start to read field instance referred by field indexed pFieldIndex, instance indexed pInstance. More... | |
bool | FieldReadBegin (const char *pFieldName) |
Start to read field pFieldName. More... | |
bool | FieldReadBegin (const char *pFieldName, int pInstance) |
Start to read field instance referred field pFieldName, instance indexed pInstance. More... | |
void | FieldReadEnd () |
Stop to read the current field. More... | |
bool | FieldReadIsBlock () |
Return if current field is a block. More... | |
bool | FieldReadBlockBegin () |
Start to read a field block. More... | |
void | FieldReadBlockEnd () |
Stop to read a field block. More... | |
int | FieldReadGetCount () const |
Return the number of read field. More... | |
int | FieldReadGetRemain () const |
Return the number of field remaining to be read. More... | |
char | FieldReadGetType () const |
Return current field value type. More... | |
char | FieldReadCH () |
Return current field value as a char. More... | |
char | FieldReadCH (const char *pFieldName, char pDefault=0) |
Return field pFieldName's value as a char. More... | |
const char * | FieldReadC () |
Return current field value as a char pointer. More... | |
const char * | FieldReadC (const char *pFieldName, const char *pDefault="") |
Return field pFieldName's value as a char pointer. More... | |
const char * | FieldReadS () |
Return current field value as a string (a char pointer). More... | |
const char * | FieldReadS (const char *pFieldName, const char *pDefault="") |
Return field pFieldName's value as a char pointer. More... | |
bool | FieldReadB () |
Return current field value as an bool. More... | |
bool | FieldReadB (const char *pFieldName, bool pDefault=false) |
Return field pFieldName's value as an integer. More... | |
int | FieldReadI () |
Return current field value as an integer. More... | |
int | FieldReadI (const char *pFieldName, int pDefault=0) |
Return field pFieldName's value as an integer. More... | |
FbxLongLong | FieldReadLL () |
Return current field value as an integer. More... | |
FbxLongLong | FieldReadLL (const char *pFieldName, FbxLongLong pDefault=0) |
Return field pFieldName's value as an integer. More... | |
float | FieldReadF () |
Return current field value as a float. More... | |
float | FieldReadF (const char *pFieldName, float pDefault=0) |
Return field pFieldName's value as a float. More... | |
double | FieldReadD () |
Return current field value as a double. More... | |
double | FieldReadD (const char *pFieldName, double pDefault=0) |
Return field pFieldName's value as a double. More... | |
FbxTime | FieldReadT (const char *pFieldName) |
Return field pFieldName's value as a time value. More... | |
FbxTime | FieldReadT () |
Return field pFieldName's value as a time value. More... | |
FbxTimeSpan | FieldReadTS (const char *pFieldName) |
Return field pFieldName's value as a timespan value. More... | |
FbxTimeSpan | FieldReadTS () |
Return field pFieldName's value as a timespan value. More... | |
void | FieldReadFn (float *pValue, FbxUInt pn) |
Return current field value as a n floats array. More... | |
void | FieldRead3F (float *pValue) |
Return current field value as a 3 floats array. More... | |
void | FieldRead4F (float *pValue) |
Return current field value as a 4 floats array. More... | |
void | FieldReadFn (const char *pFieldName, float *pValue, const float *pDefault, FbxUInt pn) |
Return field pFieldName's value as n floats array. More... | |
void | FieldRead3F (const char *pFieldName, float *pValue, const float *pDefault=((void *) 0)) |
Return field pFieldName's value as 4 floats array. More... | |
void | FieldRead4F (const char *pFieldName, float *pValue, const float *pDefault=((void *) 0)) |
Return field pFieldName's value as 3 floats array. More... | |
void | FieldReadDn (double *pValue, FbxUInt pn) |
Return current field value as a n doubles array. More... | |
void | FieldRead3D (double *pValue) |
Return current field value as a 3 doubles array. More... | |
void | FieldRead4D (double *pValue) |
Return current field value as a 4 doubles array. More... | |
void | FieldReadDn (const char *pFieldName, double *pValue, const double *pDefault, FbxUInt pn) |
Return field pFieldName's value as n doubles array. More... | |
void | FieldRead3D (const char *pFieldName, double *pValue, const double *pDefault=((void *) 0)) |
Return field pFieldName's value as 4 doubles array. More... | |
void | FieldRead4D (const char *pFieldName, double *pValue, const double *pDefault=((void *) 0)) |
Return field pFieldName's value as 3 doubles array. More... | |
void * | FieldReadR (int *pByteSize) |
Return current field value as raw data. More... | |
void * | FieldReadR (const char *pFieldName, int *pByteSize) |
Return field pFieldName's value as raw data. More... | |
FBX SDK 2009.3 and later | |
FbxChar | FieldReadByte () |
Return field pFieldName's value as byte. More... | |
FbxChar | FieldReadByte (const char *pFieldName, FbxChar pDefault=0) |
Return field pFieldName's value as a byte value. More... | |
FbxUChar | FieldReadUByte () |
Return field pFieldName's value as unsigned byte. More... | |
FbxUChar | FieldReadUByte (const char *pFieldName, FbxUChar pDefault=0) |
Return field pFieldName's value as an unsigned byte value. More... | |
FbxShort | FieldReadShort () |
Return field pFieldName's value as short. More... | |
FbxShort | FieldReadShort (const char *pFieldName, FbxShort pDefault=0) |
Return field pFieldName's value as a short value. More... | |
FbxUShort | FieldReadUShort () |
Return field pFieldName's value as unsigned short. More... | |
FbxUShort | FieldReadUShort (const char *pFieldName, FbxUShort pDefault=0) |
Return field pFieldName's value as an unsigned short value. More... | |
unsigned int | FieldReadUI () |
Return field pFieldName's value as unsigned integer. More... | |
unsigned int | FieldReadUI (const char *pFieldName, unsigned int pDefault=0) |
Return field pFieldName's value as an unsigned int as a value. More... | |
FbxULongLong | FieldReadULL () |
Return field pFieldName's value as 64 bit unsigned integer. More... | |
FbxULongLong | FieldReadULL (const char *pFieldName, FbxULongLong pDefault=0) |
Return field pFieldName's value as an 64 bit unsigned int as a value. More... | |
const FbxChar * | FieldReadArraySBytes (int &pCount) |
Read the whole array and return the pointer to it. More... | |
const FbxShort * | FieldReadArrayShort (int &pCount) |
Read the whole array and return the pointer to it. More... | |
const FbxUShort * | FieldReadArrayUShort (int &pCount) |
Read the whole array and return the pointer to it. More... | |
const unsigned int * | FieldReadArrayUI (int &pCount) |
Read the whole array and return the pointer to it. More... | |
const FbxULongLong * | FieldReadArrayULL (int &pCount) |
Read the whole array and return the pointer to it. More... | |
const FbxChar * | FieldReadArray (int &pCount, const FbxChar *) |
Read the whole array and return the pointer to it. More... | |
const FbxShort * | FieldReadArray (int &pCount, const FbxShort *) |
Read the whole array and return the pointer to it. More... | |
const FbxUShort * | FieldReadArray (int &pCount, const FbxUShort *) |
Read the whole array and return the pointer to it. More... | |
const unsigned int * | FieldReadArray (int &pCount, const unsigned int *) |
Read the whole array and return the pointer to it. More... | |
const FbxULongLong * | FieldReadArray (int &pCount, const FbxULongLong *) |
Read the whole array and return the pointer to it. More... | |
void | FieldWriteByte (FbxChar pValue) |
Write field value as byte. More... | |
void | FieldWriteByte (const char *pFieldName, FbxChar pValue) |
Write field pFieldName field with a byte value. More... | |
void | FieldWriteUByte (FbxUChar pValue) |
Write field value as unsigned byte. More... | |
void | FieldWriteUByte (const char *pFieldName, FbxUChar pValue) |
Write field pFieldName field with an unsigned byte value. More... | |
void | FieldWriteShort (FbxShort pValue) |
Write field value as short. More... | |
void | FieldWriteShort (const char *pFieldName, FbxShort pValue) |
Write field pFieldName field with a short value. More... | |
void | FieldWriteUShort (FbxUShort pValue) |
Write field value as unsigned short. More... | |
void | FieldWriteUShort (const char *pFieldName, FbxUShort pValue) |
Write field pFieldName field with an unsigned short value. More... | |
void | FieldWriteUI (unsigned int pValue) |
Write field value as an unsigned integer. More... | |
void | FieldWriteUI (const char *pFieldName, unsigned int pValue) |
Write field pFieldName field with an unsigned int as a value. More... | |
void | FieldWriteULL (FbxULongLong pValue) |
Write field value as 64 bit unsigned integer. More... | |
void | FieldWriteULL (const char *pFieldName, FbxULongLong pValue) |
Write field pFieldName field with an 64 bit unsigned int as a value. More... | |
void | FieldWriteArraySBytes (int n, const FbxChar *pValue, int pSize=1, int pStride=0) |
Write array to file. More... | |
void | FieldWriteArrayShort (int n, const FbxShort *pValue, int pSize=1, int pStride=0) |
Write array to file. More... | |
void | FieldWriteArrayUShort (int n, const FbxUShort *pValue, int pSize=1, int pStride=0) |
Write array to file. More... | |
void | FieldWriteArrayUI (int n, const unsigned int *pValue, int pSize=1, int pStride=0) |
Write array to file. More... | |
void | FieldWriteArrayULL (int n, const FbxULongLong *pValue, int pSize=1, int pStride=0) |
Write array to file. More... | |
Write related functions used to write information of a field or a group of fields. | |
Can be used to write the field content data or to navigate from field to field. | |
void | FieldWriteBegin (const char *pFieldName) |
Start to write a field called pFieldName. More... | |
void | FieldWriteEnd () |
Stop to write the current field. More... | |
void | FieldWriteBlockBegin () |
Start to write a field block. More... | |
void | FieldWriteObjectBegin (const char *pObjectType, const char *pName, const char *pSubType=((void *) 0)) |
Start to write an object reference field. More... | |
void | FieldWriteObjectEnd () |
Stop to write an object reference field. More... | |
void | FieldWriteBlockBegin (const char *pFileName) |
Start to write a field block in file pFileName. More... | |
void | FieldWriteBlockEnd () |
Stop to write a block of field. More... | |
void | FieldWriteCH (char pValue) |
Write field value as a char. More... | |
void | FieldWriteCH (const char *pFieldName, char pValue) |
Write field pFieldName field with a char as a value. More... | |
void | FieldWriteC (const char *pValue) |
Write field value as char pointer pValue. More... | |
void | FieldWriteC (const char *pFieldName, const char *pValue) |
Write field pFieldName with a char pointer as a value. More... | |
void | FieldWriteS (const char *pValue) |
Write field value as FbxString pValue. More... | |
void | FieldWriteS (const FbxString &pValue) |
Write field value as FbxString pValue. More... | |
void | FieldWriteS (const char *pFieldName, const char *pValue) |
Write field pFieldName field with a FbxString as a value. More... | |
void | FieldWriteS (const char *pFieldName, const FbxString &pValue) |
Write field pFieldName field with a FbxString as a value. More... | |
void | FieldWriteB (bool pValue) |
Write field value as bool. More... | |
void | FieldWriteB (const char *pFieldName, bool pValue) |
Write field pFieldName field with a bool value. More... | |
void | FieldWriteI (int pValue) |
Write field value as integer. More... | |
void | FieldWriteI (const char *pFieldName, int pValue) |
Write field pFieldName field with an int as a value. More... | |
void | FieldWriteLL (FbxLongLong pValue) |
Write field value as 64 bit integer. More... | |
void | FieldWriteLL (const char *pFieldName, FbxLongLong pValue) |
Write field pFieldName field with an 64 bit int as a value. More... | |
void | FieldWriteF (float pValue) |
Write field value as float. More... | |
void | FieldWriteF (const char *pFieldName, float pValue) |
Write field pFieldName field with a float as a value. More... | |
void | FieldWriteD (double pValue) |
Write field value as double. More... | |
void | FieldWriteD (const char *pFieldName, double pValue) |
Write field pFieldName field with a double as a value. More... | |
void | FieldWriteT (FbxTime pTime) |
Write field value as time value. More... | |
void | FieldWriteT (const char *pFieldName, FbxTime pValue) |
Write field pFieldName field with a time as a value. More... | |
void | FieldWriteTS (FbxTimeSpan pTimeSpan) |
Write field value as timespan value. More... | |
void | FieldWriteTS (const char *pFieldName, FbxTimeSpan pValue) |
Write field pFieldName field with a timespan as a value. More... | |
void | FieldWriteFn (const float *pValue, FbxUInt pn) |
Write field value as an array of n floats (nF vector). More... | |
void | FieldWriteFn (const char *pFieldName, const float *pValue, FbxUInt pn) |
Write field pFieldName field with a array of n floats as a value. More... | |
void | FieldWrite3F (const float *pValue) |
Write field value as an array of 3 floats (3F vector). More... | |
void | FieldWrite3F (const char *pFieldName, const float *pValue) |
Write field pFieldName field with a array of 3 floats as a value. More... | |
void | FieldWrite4F (const float *pValue) |
Write field value as an array of 4 floats (4F vector). More... | |
void | FieldWrite4F (const char *pFieldName, const float *pValue) |
Write field pFieldName field with a array of 4 floats as a value. More... | |
void | FieldWriteDn (const double *pValue, FbxUInt pn) |
Write field value as an array of n doubles (nD vector). More... | |
void | FieldWriteDn (const char *pFieldName, const double *pValue, FbxUInt pn) |
Write field pFieldName field with a array of n doubles as a value. More... | |
void | FieldWrite3D (const double *pValue) |
Write field value as an array of 3 doubles (3D vector). More... | |
void | FieldWrite3D (const char *pFieldName, const double *pValue) |
Write field pFieldName field with a array of 3 doubles as a value. More... | |
void | FieldWrite4D (const double *pValue) |
Write field value as an array of 4 doubles (4D vector). More... | |
void | FieldWrite4D (const char *pFieldName, const double *pValue) |
Write field pFieldName field with a array of 4 doubles as a value. More... | |
void | FieldWriteArrayD (int n, const double *pValue, int pSize=1, int pStride=0) |
Write array to file. More... | |
void | FieldWriteArrayF (int n, const float *pValue, int pSize=1, int pStride=0) |
Write array to file. More... | |
void | FieldWriteArrayI (int n, const int *pValue, int pSize=1, int pStride=0) |
Write array to file. More... | |
void | FieldWriteArrayLL (int n, const FbxLongLong *pValue, int pSize=1, int pStride=0) |
Write array to file. More... | |
void | FieldWriteArrayB (int n, const bool *pValue, int pSize=1, int pStride=0) |
Write array to file. More... | |
void | FieldWriteArrayBytes (int n, const FbxUChar *pValue, int pSize=1, int pStride=0) |
Write array to file. More... | |
void | FieldWriteR (const void *pRawData, int pByteSize) |
Write field value as a raw data. More... | |
void | FieldWriteR (const char *pFieldName, const void *pRawData, int pByteSize) |
Write field pFieldName field with raw data as a value. More... | |
Static Public Member Functions | |
static FbxIO * | Create (BinaryType pBinaryType, FbxStatus &pStatus) |
Creation function for this FbxIO class. More... | |
Project related functions used to navigate on particular | |
sections. | |
static void | ProjectConvertVersionNumber (int pVersion, int &pMajor, int &pMinor, int &pRevision) |
Split a version number into major, minor and revision numbers. More... | |
bool | ProjectOpenMainSection () |
Open the main section of a project. More... | |
int | ProjectGetExtensionSectionCount () const |
Get the number of extension sections of a project. More... | |
bool | ProjectOpenExtensionSection (int pExtensionSectionIndex) |
Open an extension section of a project. More... | |
bool | ProjectCreateExtensionSection (bool pOverwriteLastExtensionSection=false) |
Create an extension section in a project, not allowed in ASCII and encrypted modes. More... | |
void | ProjectCloseSection () |
Close current section. More... | |
int | ProjectGetCurrentSection () const |
Get current section. More... | |
int | ProjectGetCurrentSectionMode () const |
Get current section mode. More... | |
int | ProjectGetCurrentSectionVersion () const |
Get current section version. More... | |
int | ProjectGetSectionVersion (int pSection) const |
Get the version number of a section. More... | |
bool | IsPasswordProtected () const |
Check the password protection flag. More... | |
bool | CheckPassword (const char *pPassword) |
Set password protection flag to false if the argument matches the password stored in the section. More... | |
bool | WritePassword (const char *pPassword) |
Encrypt and store password in a section. More... | |
enum BinaryType |
Enumerator | |
---|---|
BinaryNormal | |
BinaryLarge |
Definition at line 357 of file fbxio.h.
FbxIO | ( | BinaryType | pBinaryType, |
FbxStatus & | pStatus | ||
) |
Default constructor.
|
virtual |
Destructor.
|
inlinestatic |
bool ProjectOpen | ( | void * | pAddress, |
FbxULong | pMaxLength, | ||
FbxReader * | pReader, | ||
bool | pCheckCRC = false , |
||
bool | pOpenMainSection = true , |
||
FbxIOFileHeaderInfo * | pFileHeaderInfo = ((void *) 0) |
||
) |
Open a project already in Memory.
pAddress | |
pMaxLength | |
pReader | |
pCheckCRC | |
pOpenMainSection | |
pFileHeaderInfo |
true
on success, false
otherwise. bool ProjectOpen | ( | const char * | pName, |
FbxReader * | pReader, | ||
bool | pCheckCRC = false , |
||
bool | pOpenMainSection = true , |
||
FbxIOFileHeaderInfo * | pFileHeaderInfo = ((void *) 0) |
||
) |
Open a project.
pName | |
pReader | |
pCheckCRC | |
pOpenMainSection | |
pFileHeaderInfo |
true
on success, false
otherwise. bool ProjectOpen | ( | FbxStream * | pStream, |
void * | pStreamData, | ||
FbxReader * | pReader, | ||
bool | pCheckCRC = false , |
||
bool | pOpenMainSection = true , |
||
FbxIOFileHeaderInfo * | pFileHeaderInfo = ((void *) 0) |
||
) |
Open a project.
pStream | |
pStreamData | |
pReader | |
pCheckCRC | |
pOpenMainSection | |
pFileHeaderInfo |
true
on success, false
otherwise. bool ProjectOpenDirect | ( | const char * | pName, |
FbxReader * | pReader, | ||
bool | pCheckCRC = false , |
||
bool | pOpenMainSection = true , |
||
FbxIOFileHeaderInfo * | pFileHeaderInfo = ((void *) 0) |
||
) |
Open project file without necessarily an .fbx extension.
pName | |
pReader | |
pCheckCRC | |
pOpenMainSection | |
pFileHeaderInfo |
true
on success, false
otherwise. bool ProjectCreate | ( | void * | pAddress, |
FbxUInt | pSize, | ||
FbxWriter * | pWriter, | ||
bool | pBinary, | ||
bool | pEncrypted, | ||
FbxIOFileHeaderInfo * | pFileHeaderInfo = ((void *) 0) |
||
) |
Create a project in Memory.
pAddress | |
pSize | |
pWriter | |
pBinary | |
pEncrypted | |
pFileHeaderInfo |
true
on success, false
otherwise. bool ProjectCreate | ( | const char * | pName, |
FbxWriter * | pWriter, | ||
bool | pBinary, | ||
bool | pEncrypted, | ||
FbxIOFileHeaderInfo * | pFileHeaderInfo = ((void *) 0) |
||
) |
Create a project.
pName | |
pWriter | |
pBinary | |
pEncrypted | |
pFileHeaderInfo |
true
on success, false
otherwise. bool ProjectCreate | ( | FbxStream * | pStream, |
void * | pStreamData, | ||
FbxWriter * | pWriter, | ||
bool | pBinary, | ||
bool | pEncrypted, | ||
FbxIOFileHeaderInfo * | pFileHeaderInfo = ((void *) 0) |
||
) |
Create a project.
pStream | |
pStreamData | |
pWriter | |
pBinary | |
pEncrypted | |
pFileHeaderInfo |
true
on success, false
otherwise. bool ProjectCreateDirect | ( | const char * | pName, |
FbxWriter * | pWriter, | ||
bool | pBinary, | ||
bool | pEncrypted, | ||
FbxIOFileHeaderInfo * | pFileHeaderInfo = ((void *) 0) |
||
) |
Create a project without necessary an .fbx extension.
pName | |
pWriter | |
pBinary | |
pEncrypted | |
pFileHeaderInfo |
true
on success, false
otherwise. bool ProjectCreateEmpty | ( | const char * | pName, |
FbxWriter * | pWriter, | ||
int | pVersion, | ||
bool | pBinary, | ||
bool | pEncrypted | ||
) |
Create a project, without writing out the header (yet)
pName | |
pWriter | |
pVersion | |
pBinary | |
pEncrypted |
true
on success, false
otherwise. bool ProjectCreateEmpty | ( | FbxStream * | pStream, |
void * | pStreamData, | ||
FbxWriter * | pWriter, | ||
int | pVersion, | ||
bool | pBinary, | ||
bool | pEncrypted | ||
) |
Create a project, without writing out the header (yet)
pStream | |
pStreamData | |
pWriter | |
pVersion | |
pBinary | |
pEncrypted |
true
on success, false
otherwise. bool ProjectWrite_BeginFileHeader | ( | ) |
Write FBX signature at the top of the file, prepare file for writing header information.
true
on success, false
otherwise. bool ProjectWrite_BeginExtendedHeader | ( | ) |
Open up the 'extended header'.
true
on success, false
otherwise. bool ProjectWrite_WriteExtendedHeader | ( | const FbxIOFileHeaderInfo * | pExtendedHeader | ) |
Write the contents of the extended header.
pExtendedHeader |
true
on success, false
otherwise. bool ProjectWrite_EndExtendedHeader | ( | ) |
Close the extended header.
true
on success, false
otherwise. bool ProjectWrite_EndFileHeader | ( | ) |
Close up the header, prepare file for payload write.
true
on success, false
otherwise. bool ProjectClose | ( | void ** | pData = 0 , |
size_t * | pSize = 0 |
||
) |
Close the project.
pData | |
pSize |
true
on success, false
otherwise. void ProjectSetXRefManager | ( | const FbxXRefManager * | ) |
Provide the XRef Manager to use to create the .fbm folder.
const FbxXRefManager* ProjectGetXRefManager | ( | ) | const |
Get the XRef Manager to use.
bool ProjectCreateEmbeddedFolder | ( | const FbxXRefManager & | pXRefManager, |
FbxString & | pCreatedFolder, | ||
const char * | pUserDefinedFolder = ((void *) 0) |
||
) |
Select (and create) a folder to store embedded files (the .fbm file folder).
Takes into account the settings from the XRef Manager.
pXRefManager | |
pCreatedFolder | |
pUserDefinedFolder | User defined "working folder" |
true
on success, false
otherwise. Client application is responsible for cleaning up this folder.
This will be automatically called if ProjectSetXRefManager() has been called before the .fbm folder needs to be created.
void SetEmbedded | ( | bool | pValue | ) |
On store event, use this function to tell if we are embedding.
pValue |
void SetEmbeddingExtractionFolder | ( | const char * | pExtractionFolder | ) |
Explicitly set the embedding extraction folder.
If this is never called, the FBX SDK will determine the best folder to extract embedded files.
pExtractionFolder | The file path name where the embedded files should be extracted. |
const char* GetEmbeddingExtractionFolder | ( | ) |
Retrieve the current folder destination where the embedded files will be extracted.
This might not be initialized until file I/O is performed.
bool IsEmbedded | ( | ) | const |
Check if file is embedded or not.
true
if file is embedded, false otherwise. bool IsBinary | ( | ) | const |
Check if file is binary or ASCII.
true
if file is binary, false otherwise. bool IsEncrypted | ( | ) | const |
Return if binary file is encrypted.
true
if file is encrypted, false otherwise. bool CheckCRC | ( | ) |
Check CRC code.
File must be open, binary and encrypted.
true
if CRC code is valid or file is not open, binary and encrypted. FbxUInt32 GetFileVersionNumber | ( | ) | const |
Return the file version number.
void CacheSize | ( | FbxUInt32 | pCacheSize | ) |
Set the cache size for accelerated IO.
pCacheSize | cache size to set (Kilo Byte) |
FbxUInt32 CacheSize | ( | ) | const |
Return the current cache size.
bool Fbx7Support | ( | ) | const |
void Fbx7Support | ( | bool | pSupport | ) |
Set the flag state to tell the parser to handle FBX7 files.
pSupport | New flag state. |
bool CompressArrays | ( | ) | const |
void CompressArrays | ( | bool | pCompress | ) |
Set the flag state.
pCompress | New flag state. |
int CompressMinimumSize | ( | ) | const |
void CompressMinimumSize | ( | int | pSize | ) |
Set the compression minimum size.
pSize | Threshold at which compression may embark. |
int CompressLevel | ( | ) | const |
void CompressLevel | ( | int | pLevel | ) |
Set the compression level.
pLevel | Value of the desired compression. |
bool ProjectOpenMainSection | ( | ) |
Open the main section of a project.
true
on success, false
otherwise. int ProjectGetExtensionSectionCount | ( | ) | const |
Get the number of extension sections of a project.
bool ProjectOpenExtensionSection | ( | int | pExtensionSectionIndex | ) |
Open an extension section of a project.
pExtensionSectionIndex |
true
on success, false
otherwise. bool ProjectCreateExtensionSection | ( | bool | pOverwriteLastExtensionSection = false | ) |
Create an extension section in a project, not allowed in ASCII and encrypted modes.
pOverwriteLastExtensionSection |
true
on success, false
otherwise. void ProjectCloseSection | ( | ) |
Close current section.
int ProjectGetCurrentSection | ( | ) | const |
Get current section.
int ProjectGetCurrentSectionMode | ( | ) | const |
Get current section mode.
int ProjectGetCurrentSectionVersion | ( | ) | const |
Get current section version.
int ProjectGetSectionVersion | ( | int | pSection | ) | const |
Get the version number of a section.
pSection |
|
static |
Split a version number into major, minor and revision numbers.
pVersion | Version number to split. |
pMajor | Integer to receive major version number. |
pMinor | Integer to receive minor version number. |
pRevision | Integer to receive revision version number. |
bool IsPasswordProtected | ( | ) | const |
Check the password protection flag.
true
if the current section has a password, false
otherwise. bool CheckPassword | ( | const char * | pPassword | ) |
Set password protection flag to false
if the argument matches the password stored in the section.
pPassword |
true
if the argument matches the password stored in the section, false
otherwise. bool WritePassword | ( | const char * | pPassword | ) |
Encrypt and store password in a section.
pPassword |
true
on success, false
otherwise. const char* GetFilename | ( | ) | const |
Get project file name.
FbxString GetDataDirectory | ( | bool | pAutoCreate = true | ) |
Get project data directory name.
pAutoCreate |
FbxString GetMediaDirectory | ( | bool | pCreate = false , |
const char * | pUserDefinedFolder = ((void *) 0) |
||
) |
Get the current embedded folder used by this object.
pCreate | Whether create the media or not if no such folder is found |
pUserDefinedFolder | User define working folder |
FbxString GetContainerTemplateDirectory | ( | const char * | pTemplateName, |
bool | pCreate | ||
) |
Get the full path of the directory to extract the template file.
pTemplateName | |
pCreate |
char* GetRelativePath | ( | const char * | pPath | ) |
Get the path relative to project directory.
pPath |
char* GetRelativeFilePath | ( | const char * | pFilePath | ) |
Get the file path relative to project directory.
pFilePath |
char* GetFullPath | ( | const char * | pRelativePath | ) |
Get the full path of path relative to project directory.
pRelativePath |
char* GetFullFilePath | ( | const char * | pRelativeFilePath | ) |
Get the full file path of path relative to project directory.
pRelativeFilePath |
char* GetTmpProjectName | ( | const char * | pName | ) | const |
Get the temporary project name.
pName |
bool SwapFromTmpProject | ( | const char * | pName, |
char * | pError = ((void *) 0) , |
||
int | pErrorSize = 0 |
||
) |
Swap from temporary project.
pName | |
pError | |
pErrorSize |
true
on success, false
otherwise. void FieldReadResetPosition | ( | ) |
Reset the field read position.
int FieldGetCount | ( | ) | const |
Get the number of fields.
const char* FieldGetName | ( | int | pFieldIndex | ) | const |
Get the name of field indexed pFieldIndex.
pFieldIndex |
int FieldGetInstanceCount | ( | const char * | pFieldName | ) | const |
Get number of instance field pFieldName has.
pFieldName |
bool FieldReadBegin | ( | int | pFieldIndex, |
int | pInstance | ||
) |
Start to read field instance referred by field indexed pFieldIndex, instance indexed pInstance.
pFieldIndex | |
pInstance |
true
on success, false
otherwise. bool FieldReadBegin | ( | const char * | pFieldName | ) |
Start to read field pFieldName.
pFieldName |
true
on success, false
otherwise. bool FieldReadBegin | ( | const char * | pFieldName, |
int | pInstance | ||
) |
Start to read field instance referred field pFieldName, instance indexed pInstance.
pFieldName | |
pInstance |
true
on success, false
otherwise. void FieldReadEnd | ( | ) |
Stop to read the current field.
bool FieldReadIsBlock | ( | ) |
Return if current field is a block.
bool FieldReadBlockBegin | ( | ) |
Start to read a field block.
void FieldReadBlockEnd | ( | ) |
Stop to read a field block.
int FieldReadGetCount | ( | ) | const |
Return the number of read field.
int FieldReadGetRemain | ( | ) | const |
Return the number of field remaining to be read.
char FieldReadGetType | ( | ) | const |
Return current field value type.
char FieldReadCH | ( | ) |
Return current field value as a char.
char FieldReadCH | ( | const char * | pFieldName, |
char | pDefault = 0 |
||
) |
Return field pFieldName's value as a char.
pFieldName | |
pDefault |
const char* FieldReadC | ( | ) |
Return current field value as a char pointer.
const char* FieldReadC | ( | const char * | pFieldName, |
const char * | pDefault = "" |
||
) |
Return field pFieldName's value as a char pointer.
pFieldName | |
pDefault |
const char* FieldReadS | ( | ) |
Return current field value as a string (a char pointer).
const char* FieldReadS | ( | const char * | pFieldName, |
const char * | pDefault = "" |
||
) |
Return field pFieldName's value as a char pointer.
pFieldName | |
pDefault |
bool FieldReadB | ( | ) |
Return current field value as an bool.
bool FieldReadB | ( | const char * | pFieldName, |
bool | pDefault = false |
||
) |
Return field pFieldName's value as an integer.
pFieldName | |
pDefault |
int FieldReadI | ( | ) |
Return current field value as an integer.
int FieldReadI | ( | const char * | pFieldName, |
int | pDefault = 0 |
||
) |
Return field pFieldName's value as an integer.
pFieldName | |
pDefault |
FbxLongLong FieldReadLL | ( | ) |
Return current field value as an integer.
FbxLongLong FieldReadLL | ( | const char * | pFieldName, |
FbxLongLong | pDefault = 0 |
||
) |
Return field pFieldName's value as an integer.
pFieldName | |
pDefault |
float FieldReadF | ( | ) |
Return current field value as a float.
float FieldReadF | ( | const char * | pFieldName, |
float | pDefault = 0 |
||
) |
Return field pFieldName's value as a float.
pFieldName | |
pDefault |
double FieldReadD | ( | ) |
Return current field value as a double.
double FieldReadD | ( | const char * | pFieldName, |
double | pDefault = 0 |
||
) |
Return field pFieldName's value as a double.
pFieldName | |
pDefault |
FbxTime FieldReadT | ( | const char * | pFieldName | ) |
Return field pFieldName's value as a time value.
pFieldName |
FbxTime FieldReadT | ( | ) |
Return field pFieldName's value as a time value.
FbxTimeSpan FieldReadTS | ( | const char * | pFieldName | ) |
Return field pFieldName's value as a timespan value.
pFieldName |
FbxTimeSpan FieldReadTS | ( | ) |
Return field pFieldName's value as a timespan value.
void FieldReadFn | ( | float * | pValue, |
FbxUInt | pn | ||
) |
Return current field value as a n floats array.
pValue | |
pn |
void FieldRead3F | ( | float * | pValue | ) |
Return current field value as a 3 floats array.
pValue |
void FieldRead4F | ( | float * | pValue | ) |
Return current field value as a 4 floats array.
pValue |
void FieldReadFn | ( | const char * | pFieldName, |
float * | pValue, | ||
const float * | pDefault, | ||
FbxUInt | pn | ||
) |
Return field pFieldName's value as n floats array.
pFieldName | |
pValue | |
pDefault | |
pn |
void FieldRead3F | ( | const char * | pFieldName, |
float * | pValue, | ||
const float * | pDefault = ((void *) 0) |
||
) |
Return field pFieldName's value as 4 floats array.
pFieldName | |
pValue | |
pDefault |
void FieldRead4F | ( | const char * | pFieldName, |
float * | pValue, | ||
const float * | pDefault = ((void *) 0) |
||
) |
Return field pFieldName's value as 3 floats array.
pFieldName | |
pValue | |
pDefault |
void FieldReadDn | ( | double * | pValue, |
FbxUInt | pn | ||
) |
Return current field value as a n doubles array.
pValue | |
pn |
void FieldRead3D | ( | double * | pValue | ) |
Return current field value as a 3 doubles array.
pValue |
void FieldRead4D | ( | double * | pValue | ) |
Return current field value as a 4 doubles array.
pValue |
void FieldReadDn | ( | const char * | pFieldName, |
double * | pValue, | ||
const double * | pDefault, | ||
FbxUInt | pn | ||
) |
Return field pFieldName's value as n doubles array.
pFieldName | |
pValue | |
pDefault | |
pn |
void FieldRead3D | ( | const char * | pFieldName, |
double * | pValue, | ||
const double * | pDefault = ((void *) 0) |
||
) |
Return field pFieldName's value as 4 doubles array.
pFieldName | |
pValue | |
pDefault |
void FieldRead4D | ( | const char * | pFieldName, |
double * | pValue, | ||
const double * | pDefault = ((void *) 0) |
||
) |
Return field pFieldName's value as 3 doubles array.
pFieldName | |
pValue | |
pDefault |
void* FieldReadR | ( | int * | pByteSize | ) |
Return current field value as raw data.
pByteSize |
void* FieldReadR | ( | const char * | pFieldName, |
int * | pByteSize | ||
) |
Return field pFieldName's value as raw data.
pFieldName | |
pByteSize |
FbxChar FieldReadByte | ( | ) |
Return field pFieldName's value as byte.
Return field pFieldName's value as a byte value.
pFieldName | |
pDefault |
FbxUChar FieldReadUByte | ( | ) |
Return field pFieldName's value as unsigned byte.
Return field pFieldName's value as an unsigned byte value.
pFieldName | |
pDefault |
FbxShort FieldReadShort | ( | ) |
Return field pFieldName's value as short.
Return field pFieldName's value as a short value.
pFieldName | |
pDefault |
FbxUShort FieldReadUShort | ( | ) |
Return field pFieldName's value as unsigned short.
Return field pFieldName's value as an unsigned short value.
pFieldName | |
pDefault |
unsigned int FieldReadUI | ( | ) |
Return field pFieldName's value as unsigned integer.
unsigned int FieldReadUI | ( | const char * | pFieldName, |
unsigned int | pDefault = 0 |
||
) |
Return field pFieldName's value as an unsigned int as a value.
pFieldName | |
pDefault |
FbxULongLong FieldReadULL | ( | ) |
Return field pFieldName's value as 64 bit unsigned integer.
FbxULongLong FieldReadULL | ( | const char * | pFieldName, |
FbxULongLong | pDefault = 0 |
||
) |
Return field pFieldName's value as an 64 bit unsigned int as a value.
pFieldName | |
pDefault |
const FbxChar* FieldReadArraySBytes | ( | int & | pCount | ) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const FbxShort* FieldReadArrayShort | ( | int & | pCount | ) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const FbxUShort* FieldReadArrayUShort | ( | int & | pCount | ) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const unsigned int* FieldReadArrayUI | ( | int & | pCount | ) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const FbxULongLong* FieldReadArrayULL | ( | int & | pCount | ) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array.Read the whole array and return the pointer to it. |
pCount | Nb of items in the array. |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const unsigned int* FieldReadArray | ( | int & | pCount, |
const unsigned int * | |||
) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const FbxULongLong* FieldReadArray | ( | int & | pCount, |
const FbxULongLong * | |||
) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
|
virtual |
Read field and copy it into a file.
pFileName | Embedded file full path+name. |
pRelativeFileName | Relative path+name of the embedded file. |
pEmbeddedMediaDirectory | Directory of the embedded media. |
pIsFileCreated | Status of the extraction of the embedded data. Set to true if the embedded media is correctly extracted in the media directory. |
false
if operation failed. const double* FieldReadArrayD | ( | int & | pCount | ) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const float* FieldReadArrayF | ( | int & | pCount | ) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const int* FieldReadArrayI | ( | int & | pCount | ) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const FbxLongLong* FieldReadArrayLL | ( | int & | pCount | ) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const bool* FieldReadArrayB | ( | int & | pCount | ) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const FbxUChar* FieldReadArrayBytes | ( | int & | pCount | ) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const int* FieldReadArray | ( | int & | pCount, |
const int * | |||
) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const float* FieldReadArray | ( | int & | pCount, |
const float * | |||
) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const double* FieldReadArray | ( | int & | pCount, |
const double * | |||
) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const FbxLongLong* FieldReadArray | ( | int & | pCount, |
const FbxLongLong * | |||
) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
const bool* FieldReadArray | ( | int & | pCount, |
const bool * | |||
) |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
Read the whole array and return the pointer to it.
pCount | Nb of items in the array. |
void FieldWriteBegin | ( | const char * | pFieldName | ) |
Start to write a field called pFieldName.
pFieldName |
void FieldWriteEnd | ( | ) |
Stop to write the current field.
void FieldWriteBlockBegin | ( | ) |
Start to write a field block.
void FieldWriteObjectBegin | ( | const char * | pObjectType, |
const char * | pName, | ||
const char * | pSubType = ((void *) 0) |
||
) |
Start to write an object reference field.
pObjectType | |
pName | |
pSubType |
void FieldWriteObjectEnd | ( | ) |
Stop to write an object reference field.
void FieldWriteBlockBegin | ( | const char * | pFileName | ) |
Start to write a field block in file pFileName.
pFileName |
void FieldWriteBlockEnd | ( | ) |
Stop to write a block of field.
void FieldWriteCH | ( | char | pValue | ) |
Write field value as a char.
pValue |
void FieldWriteCH | ( | const char * | pFieldName, |
char | pValue | ||
) |
Write field pFieldName field with a char as a value.
pFieldName | |
pValue |
void FieldWriteC | ( | const char * | pValue | ) |
Write field value as char pointer pValue.
pValue |
void FieldWriteC | ( | const char * | pFieldName, |
const char * | pValue | ||
) |
Write field pFieldName with a char pointer as a value.
pFieldName | |
pValue |
void FieldWriteS | ( | const char * | pValue | ) |
Write field value as FbxString pValue.
pValue |
void FieldWriteS | ( | const FbxString & | pValue | ) |
Write field value as FbxString pValue.
pValue |
void FieldWriteS | ( | const char * | pFieldName, |
const char * | pValue | ||
) |
Write field pFieldName field with a FbxString as a value.
pFieldName | |
pValue |
void FieldWriteS | ( | const char * | pFieldName, |
const FbxString & | pValue | ||
) |
Write field pFieldName field with a FbxString as a value.
pFieldName | |
pValue |
void FieldWriteB | ( | bool | pValue | ) |
Write field value as bool.
pValue |
void FieldWriteB | ( | const char * | pFieldName, |
bool | pValue | ||
) |
Write field pFieldName field with a bool value.
pFieldName | |
pValue |
void FieldWriteI | ( | int | pValue | ) |
Write field value as integer.
pValue |
void FieldWriteI | ( | const char * | pFieldName, |
int | pValue | ||
) |
Write field pFieldName field with an int as a value.
pFieldName | |
pValue |
void FieldWriteLL | ( | FbxLongLong | pValue | ) |
Write field value as 64 bit integer.
pValue |
void FieldWriteLL | ( | const char * | pFieldName, |
FbxLongLong | pValue | ||
) |
Write field pFieldName field with an 64 bit int as a value.
pFieldName | |
pValue |
void FieldWriteF | ( | float | pValue | ) |
Write field value as float.
pValue |
void FieldWriteF | ( | const char * | pFieldName, |
float | pValue | ||
) |
Write field pFieldName field with a float as a value.
pFieldName | |
pValue |
void FieldWriteD | ( | double | pValue | ) |
Write field value as double.
pValue |
void FieldWriteD | ( | const char * | pFieldName, |
double | pValue | ||
) |
Write field pFieldName field with a double as a value.
pFieldName | |
pValue |
void FieldWriteT | ( | FbxTime | pTime | ) |
Write field value as time value.
pTime |
void FieldWriteT | ( | const char * | pFieldName, |
FbxTime | pValue | ||
) |
Write field pFieldName field with a time as a value.
pFieldName | |
pValue |
void FieldWriteTS | ( | FbxTimeSpan | pTimeSpan | ) |
Write field value as timespan value.
pTimeSpan |
void FieldWriteTS | ( | const char * | pFieldName, |
FbxTimeSpan | pValue | ||
) |
Write field pFieldName field with a timespan as a value.
pFieldName | |
pValue |
void FieldWriteFn | ( | const float * | pValue, |
FbxUInt | pn | ||
) |
Write field value as an array of n floats (nF vector).
pValue | |
pn |
void FieldWriteFn | ( | const char * | pFieldName, |
const float * | pValue, | ||
FbxUInt | pn | ||
) |
Write field pFieldName field with a array of n floats as a value.
pFieldName | |
pValue | |
pn |
void FieldWrite3F | ( | const float * | pValue | ) |
Write field value as an array of 3 floats (3F vector).
pValue |
void FieldWrite3F | ( | const char * | pFieldName, |
const float * | pValue | ||
) |
Write field pFieldName field with a array of 3 floats as a value.
pFieldName | |
pValue |
void FieldWrite4F | ( | const float * | pValue | ) |
Write field value as an array of 4 floats (4F vector).
pValue |
void FieldWrite4F | ( | const char * | pFieldName, |
const float * | pValue | ||
) |
Write field pFieldName field with a array of 4 floats as a value.
pFieldName | |
pValue |
void FieldWriteDn | ( | const double * | pValue, |
FbxUInt | pn | ||
) |
Write field value as an array of n doubles (nD vector).
pValue | |
pn |
void FieldWriteDn | ( | const char * | pFieldName, |
const double * | pValue, | ||
FbxUInt | pn | ||
) |
Write field pFieldName field with a array of n doubles as a value.
pFieldName | |
pValue | |
pn |
void FieldWrite3D | ( | const double * | pValue | ) |
Write field value as an array of 3 doubles (3D vector).
pValue |
void FieldWrite3D | ( | const char * | pFieldName, |
const double * | pValue | ||
) |
Write field pFieldName field with a array of 3 doubles as a value.
pFieldName | |
pValue |
void FieldWrite4D | ( | const double * | pValue | ) |
Write field value as an array of 4 doubles (4D vector).
pValue |
void FieldWrite4D | ( | const char * | pFieldName, |
const double * | pValue | ||
) |
Write field pFieldName field with a array of 4 doubles as a value.
pFieldName | |
pValue |
void FieldWriteArrayD | ( | int | n, |
const double * | pValue, | ||
int | pSize = 1 , |
||
int | pStride = 0 |
||
) |
Write array to file.
n | Nb of items in the array. |
pValue | Pointer to the data. |
pSize | Size of each item in the array. |
pStride | Array stride. |
void FieldWriteArrayF | ( | int | n, |
const float * | pValue, | ||
int | pSize = 1 , |
||
int | pStride = 0 |
||
) |
Write array to file.
n | Nb of items in the array. |
pValue | Pointer to the data. |
pSize | Size of each item in the array. |
pStride | Array stride. |
void FieldWriteArrayI | ( | int | n, |
const int * | pValue, | ||
int | pSize = 1 , |
||
int | pStride = 0 |
||
) |
Write array to file.
n | Nb of items in the array. |
pValue | Pointer to the data. |
pSize | Size of each item in the array. |
pStride | Array stride. |
void FieldWriteArrayLL | ( | int | n, |
const FbxLongLong * | pValue, | ||
int | pSize = 1 , |
||
int | pStride = 0 |
||
) |
Write array to file.
n | Nb of items in the array. |
pValue | Pointer to the data. |
pSize | Size of each item in the array. |
pStride | Array stride. |
void FieldWriteArrayB | ( | int | n, |
const bool * | pValue, | ||
int | pSize = 1 , |
||
int | pStride = 0 |
||
) |
Write array to file.
n | Nb of items in the array. |
pValue | Pointer to the data. |
pSize | Size of each item in the array. |
pStride | Array stride. |
void FieldWriteArrayBytes | ( | int | n, |
const FbxUChar * | pValue, | ||
int | pSize = 1 , |
||
int | pStride = 0 |
||
) |
Write array to file.
n | Nb of items in the array. |
pValue | Pointer to the data. |
pSize | Size of each item in the array. |
pStride | Array stride. |
void FieldWriteR | ( | const void * | pRawData, |
int | pByteSize | ||
) |
Write field value as a raw data.
pRawData | |
pByteSize |
void FieldWriteR | ( | const char * | pFieldName, |
const void * | pRawData, | ||
int | pByteSize | ||
) |
Write field pFieldName field with raw data as a value.
pFieldName | |
pRawData | |
pByteSize |
void FieldWriteByte | ( | FbxChar | pValue | ) |
Write field value as byte.
pValue |
void FieldWriteByte | ( | const char * | pFieldName, |
FbxChar | pValue | ||
) |
Write field pFieldName field with a byte value.
pFieldName | |
pValue |
void FieldWriteUByte | ( | FbxUChar | pValue | ) |
Write field value as unsigned byte.
pValue |
void FieldWriteUByte | ( | const char * | pFieldName, |
FbxUChar | pValue | ||
) |
Write field pFieldName field with an unsigned byte value.
pFieldName | |
pValue |
void FieldWriteShort | ( | FbxShort | pValue | ) |
Write field value as short.
pValue |
void FieldWriteShort | ( | const char * | pFieldName, |
FbxShort | pValue | ||
) |
Write field pFieldName field with a short value.
pFieldName | |
pValue |
void FieldWriteUShort | ( | FbxUShort | pValue | ) |
Write field value as unsigned short.
pValue |
void FieldWriteUShort | ( | const char * | pFieldName, |
FbxUShort | pValue | ||
) |
Write field pFieldName field with an unsigned short value.
pFieldName | |
pValue |
void FieldWriteUI | ( | unsigned int | pValue | ) |
Write field value as an unsigned integer.
pValue |
void FieldWriteUI | ( | const char * | pFieldName, |
unsigned int | pValue | ||
) |
Write field pFieldName field with an unsigned int as a value.
pFieldName | |
pValue |
void FieldWriteULL | ( | FbxULongLong | pValue | ) |
Write field value as 64 bit unsigned integer.
pValue |
void FieldWriteULL | ( | const char * | pFieldName, |
FbxULongLong | pValue | ||
) |
Write field pFieldName field with an 64 bit unsigned int as a value.
pFieldName | |
pValue |
void FieldWriteArraySBytes | ( | int | n, |
const FbxChar * | pValue, | ||
int | pSize = 1 , |
||
int | pStride = 0 |
||
) |
Write array to file.
n | Nb of items in the array. |
pValue | Pointer to the data. |
pSize | Size of each item in the array. |
pStride | Array stride. |
void FieldWriteArrayShort | ( | int | n, |
const FbxShort * | pValue, | ||
int | pSize = 1 , |
||
int | pStride = 0 |
||
) |
Write array to file.
n | Nb of items in the array. |
pValue | Pointer to the data. |
pSize | Size of each item in the array. |
pStride | Array stride. |
void FieldWriteArrayUShort | ( | int | n, |
const FbxUShort * | pValue, | ||
int | pSize = 1 , |
||
int | pStride = 0 |
||
) |
Write array to file.
n | Nb of items in the array. |
pValue | Pointer to the data. |
pSize | Size of each item in the array. |
pStride | Array stride. |
void FieldWriteArrayUI | ( | int | n, |
const unsigned int * | pValue, | ||
int | pSize = 1 , |
||
int | pStride = 0 |
||
) |
Write array to file.
n | Nb of items in the array. |
pValue | Pointer to the data. |
pSize | Size of each item in the array. |
pStride | Array stride. |
void FieldWriteArrayULL | ( | int | n, |
const FbxULongLong * | pValue, | ||
int | pSize = 1 , |
||
int | pStride = 0 |
||
) |
Write array to file.
n | Nb of items in the array. |
pValue | Pointer to the data. |
pSize | Size of each item in the array. |
pStride | Array stride. |
int GetFieldRMaxChunkSize | ( | ) | const |
ASCII files may limit how big you can write your raw data, forcing you to break it down into chunks.
void FieldWriteObjectReference | ( | const char * | pName | ) |
Write object reference pName in the current field.
pName |
void FieldWriteObjectReference | ( | const char * | pFieldName, |
const char * | pName | ||
) |
Write object reference pName in field pFieldName.
pFieldName | |
pName |
Write field with file content as a value.
pFileName | |
pRelativeFileName |
false
if operation failed. void WriteComments | ( | const char * | pFieldName | ) |
Write comments, only effective in ASCII mode.
pFieldName |
bool GetHaveLoadedEmbededFile | ( | ) | const |
Get if the embedded file is currently loaded.
void GetMemoryFileInfo | ( | void ** | pMemPtr, |
size_t & | pSize | ||
) | const |
Get the maximum byte count written.
pMemPtr | The address of the memory file | |
[out] | pSize | Stores the maximum byte count written |
bool IsBeforeVersion6 | ( | ) | const |
Get a internal flag to manage pre FBX version 6 data format Used for backwards compatibility.
void SetIsBeforeVersion6 | ( | bool | pIsBeforeVersion6 | ) |
Set a internal flag to manage pre FBX version 6 data format Used for backwards compatibility.