FBX C++ API Reference
|
#include <fbxiopluginregistry.h>
This class serves as the registrar for file formats.
A file format must be registered when it is used by the FBX SDK.
This class also lets you create and read formats other than FBX SDK native formats. Users of FBX SDK can write their own plug-ins to read or write arbitrary file formats. Once their plug-ins are registered in this class, FBX SDK is able to read or write these file formats.
Each FbxManager has a unique FbxIOPluginRegistry. To get an instance of this class:
Definition at line 37 of file fbxiopluginregistry.h.
Public Member Functions | |
FbxIOPluginRegistry () | |
Constructor. More... | |
virtual | ~FbxIOPluginRegistry () |
Destructor. More... | |
void | RegisterReader (const char *pPluginPath, int &pFirstPluginID, int &pRegisteredCount, bool pOverride=false) |
Registers a Reader from a plug-in path. More... | |
void | RegisterReader (FbxReader::CreateFuncType pCreateF, FbxReader::GetInfoFuncType pInfoF, int &pFirstPluginID, int &pRegisteredCount, FbxReader::IOSettingsFillerFuncType pIOSettingsFillerF=((void *) 0), bool pOverride=false) |
Registers a Reader. More... | |
void | RegisterWriter (const char *pPluginPath, int &pFirstPluginID, int &pRegisteredCount, bool pOverride=false) |
Registers a Writer from a plug-in path. More... | |
void | RegisterWriter (FbxWriter::CreateFuncType pCreateF, FbxWriter::GetInfoFuncType pInfoF, int &pFirstPluginID, int &pRegisteredCount, FbxWriter::IOSettingsFillerFuncType pIOSettingsFillerF=((void *) 0), bool pOverride=false) |
Registers a Writer. More... | |
FbxReader * | CreateReader (FbxManager &pManager, FbxImporter &pImporter, int pPluginID) const |
Creates a Reader. More... | |
FbxWriter * | CreateWriter (FbxManager &pManager, FbxExporter &pExporter, int pPluginID) const |
Creates a Writer. More... | |
int | FindReaderIDByExtension (const char *pExt) const |
Searches for the Reader ID by the file extension. More... | |
int | FindWriterIDByExtension (const char *pExt) const |
Searches for the Writer ID by the file extension. More... | |
int | FindReaderIDByDescription (const char *pDesc) const |
Searches for the Reader ID by the file format description. More... | |
int | FindWriterIDByDescription (const char *pDesc) const |
Searches for the Writer ID by the file format description. More... | |
bool | ReaderIsFBX (int pFileFormat) const |
Verifies if the file format of the Reader is FBX. More... | |
bool | WriterIsFBX (int pFileFormat) const |
Verifies if the file format of the Writer is FBX. More... | |
bool | ReaderIsGenuine (int pFileFormat) const |
Verifies if the file format of the Reader is genuine (internal). More... | |
bool | WriterIsGenuine (int pFileFormat) const |
Verifies if the file format of the Writer is genuine (internal). More... | |
int | GetReaderFormatCount () const |
Returns the number of file formats that can be imported. More... | |
int | GetWriterFormatCount () const |
Returns the number of file formats that can be exported. More... | |
const char * | GetReaderFormatDescription (int pFileFormat) const |
Returns the description of an importable file format. More... | |
const char * | GetWriterFormatDescription (int pFileFormat) const |
Returns the description of an exportable file format. More... | |
const char * | GetReaderFormatExtension (int pFileFormat) const |
Returns an importable file format's file extension. More... | |
const char * | GetWriterFormatExtension (int pFileFormat) const |
Returns an exportable file format's file extension. More... | |
char const *const * | GetWritableVersions (int pFileFormat) const |
Returns a list of the writable file format versions. More... | |
bool | DetectReaderFileFormat (const char *pFileName, int &pFileFormat) const |
Detects the import (reader) file format specified for the file. More... | |
bool | DetectWriterFileFormat (const char *pFileName, int &pFileFormat) const |
Detects the export (writer) file format specified for the file. More... | |
int | GetNativeReaderFormat () |
Returns the file format of the native Reader. More... | |
int | GetNativeWriterFormat () |
Returns the file format of the native Writer. More... | |
void | FillIOSettingsForReadersRegistered (FbxIOSettings &pIOS) |
Fills the IO Settings for all registered readers. More... | |
void | FillIOSettingsForWritersRegistered (FbxIOSettings &pIOS) |
Fills the IO Settings for all registered writers. More... | |
Constructor.
|
virtual |
Destructor.
void RegisterReader | ( | const char * | pPluginPath, |
int & | pFirstPluginID, | ||
int & | pRegisteredCount, | ||
bool | pOverride = false |
||
) |
Registers a Reader from a plug-in path.
pPluginPath | The plug-in path. |
pFirstPluginID | Contains the ID of the first plug-in found. |
pRegisteredCount | Contains the number of registered Readers. |
pOverride | Override any existing writer that is using the same extension. |
void RegisterReader | ( | FbxReader::CreateFuncType | pCreateF, |
FbxReader::GetInfoFuncType | pInfoF, | ||
int & | pFirstPluginID, | ||
int & | pRegisteredCount, | ||
FbxReader::IOSettingsFillerFuncType | pIOSettingsFillerF = ((void *) 0) , |
||
bool | pOverride = false |
||
) |
Registers a Reader.
pCreateF | The function that creates the Reader to be registered. |
pInfoF | The function that provides information about the Reader file format, such as the file extension and description. |
pFirstPluginID | Contains the ID of the first plug-in found. |
pRegisteredCount | Contains the number of registered Readers. |
pIOSettingsFillerF | The function that fills the IO settings for the Reader. |
pOverride | Override any existing writer that is using the same extension. |
void RegisterWriter | ( | const char * | pPluginPath, |
int & | pFirstPluginID, | ||
int & | pRegisteredCount, | ||
bool | pOverride = false |
||
) |
Registers a Writer from a plug-in path.
pPluginPath | The plug-in path. |
pFirstPluginID | Contains the ID of the first plug-in found. |
pRegisteredCount | Contains the number of registered Writers. |
pOverride | Override any existing writer that is using the same extension. |
void RegisterWriter | ( | FbxWriter::CreateFuncType | pCreateF, |
FbxWriter::GetInfoFuncType | pInfoF, | ||
int & | pFirstPluginID, | ||
int & | pRegisteredCount, | ||
FbxWriter::IOSettingsFillerFuncType | pIOSettingsFillerF = ((void *) 0) , |
||
bool | pOverride = false |
||
) |
Registers a Writer.
pCreateF | The function that creates the Writer to be registered. |
pInfoF | The function that provides information about the Writer file format, such as the file extension, description and version. |
pFirstPluginID | Contains the ID of the first plug-in found. |
pRegisteredCount | Contains the number of registered Writers. |
pIOSettingsFillerF | The function that fills the IO settings for the Writer. |
pOverride | Override any existing writer that is using the same extension. |
FbxReader* CreateReader | ( | FbxManager & | pManager, |
FbxImporter & | pImporter, | ||
int | pPluginID | ||
) | const |
Creates a Reader.
pManager | The SDK Manager where the Reader is created. |
pImporter | The importer that holds the created Reader. |
pPluginID | The Reader ID. |
FbxWriter* CreateWriter | ( | FbxManager & | pManager, |
FbxExporter & | pExporter, | ||
int | pPluginID | ||
) | const |
Creates a Writer.
pManager | The SDK Manager where the Writer is created. |
pExporter | The exporter that holds the created Writer. |
pPluginID | The Writer ID. |
int FindReaderIDByExtension | ( | const char * | pExt | ) | const |
Searches for the Reader ID by the file extension.
pExt | The file extension. |
int FindWriterIDByExtension | ( | const char * | pExt | ) | const |
Searches for the Writer ID by the file extension.
pExt | The file extension. |
int FindReaderIDByDescription | ( | const char * | pDesc | ) | const |
Searches for the Reader ID by the file format description.
pDesc | The file format description. |
int FindWriterIDByDescription | ( | const char * | pDesc | ) | const |
Searches for the Writer ID by the file format description.
pDesc | The file format description. |
bool ReaderIsFBX | ( | int | pFileFormat | ) | const |
Verifies if the file format of the Reader is FBX.
pFileFormat | The file format identifier. |
True
if the file format of the Reader is FBX, return false
otherwise.. bool WriterIsFBX | ( | int | pFileFormat | ) | const |
Verifies if the file format of the Writer is FBX.
pFileFormat | The file format identifier. |
True
if the file format of the Writer is FBX, return false
otherwise. bool ReaderIsGenuine | ( | int | pFileFormat | ) | const |
Verifies if the file format of the Reader is genuine (internal).
pFileFormat | The file format identifier. |
True
if the file format of the Reader is FBX, DXF, 3DS, OBJ and DAE, return false
otherwise. bool WriterIsGenuine | ( | int | pFileFormat | ) | const |
Verifies if the file format of the Writer is genuine (internal).
pFileFormat | The file format identifier. |
True
if the file format of the Writer is FBX, DXF, 3DS, OBJ and DAE, return false
otherwise. int GetReaderFormatCount | ( | ) | const |
Returns the number of file formats that can be imported.
int GetWriterFormatCount | ( | ) | const |
Returns the number of file formats that can be exported.
const char* GetReaderFormatDescription | ( | int | pFileFormat | ) | const |
Returns the description of an importable file format.
pFileFormat | The file format identifier. |
const char* GetWriterFormatDescription | ( | int | pFileFormat | ) | const |
Returns the description of an exportable file format.
pFileFormat | The file format identifier. |
const char* GetReaderFormatExtension | ( | int | pFileFormat | ) | const |
Returns an importable file format's file extension.
pFileFormat | The file format identifier. |
const char* GetWriterFormatExtension | ( | int | pFileFormat | ) | const |
Returns an exportable file format's file extension.
pFileFormat | The file format identifier. |
char const* const* GetWritableVersions | ( | int | pFileFormat | ) | const |
Returns a list of the writable file format versions.
pFileFormat | The file format identifier. |
bool DetectReaderFileFormat | ( | const char * | pFileName, |
int & | pFileFormat | ||
) | const |
Detects the import (reader) file format specified for the file.
pFileName | The file whose file format is to be determined. |
pFileFormat | It equals the file format identifier if this function returns true . If this function returns false , it is unmodified. |
True
if the file has been determined successfully, returns false
otherwise. SetFileFormat()
. bool DetectWriterFileFormat | ( | const char * | pFileName, |
int & | pFileFormat | ||
) | const |
Detects the export (writer) file format specified for the file.
pFileName | The file whose file format is to be determined. |
pFileFormat | It equals the file format identifier if this function returns true . If this function returns false , it is unmodified. |
True
if the file has been determined successfully, returns false
otherwise. SetFileFormat()
. int GetNativeReaderFormat | ( | ) |
Returns the file format of the native Reader.
int GetNativeWriterFormat | ( | ) |
Returns the file format of the native Writer.
void FillIOSettingsForReadersRegistered | ( | FbxIOSettings & | pIOS | ) |
Fills the IO Settings for all registered readers.
pIOS | The IO settings to be filled. |
void FillIOSettingsForWritersRegistered | ( | FbxIOSettings & | pIOS | ) |
Fills the IO Settings for all registered writers.
pIOS | The IO settings to be filled. |