#include<kfbxiopluginregistry.h>
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
Definition at line63of filekfbxiopluginregistry.h.
Public Member Functions | |
KFbxIOPluginRegistry() | |
Constructor. | |
virtual | ~KFbxIOPluginRegistry() |
Destructor. | |
void | RegisterReader(char const *pPluginPath, int&pFirstPluginID, int&pRegisteredCount) |
Registers Reader from a plug-in path. | |
void | RegisterReader(KFbxReader::CreateFuncType pCreateF, KFbxReader::GetInfoFuncType pInfoF, int&pFirstPluginID, int&pRegisteredCount, KFbxReader::IOSettingsFillerFuncType pIOSettingsFillerF=NULL) |
Registers Readers. | |
void | RegisterWriter(char const *pPluginPath, int&pFirstPluginID, int&pRegisteredCount) |
Registers Writers from a plug-in path. | |
void | RegisterWriter(KFbxWriter::CreateFuncType pCreateF, KFbxWriter::GetInfoFuncType pInfoF, int&pFirstPluginID, int&pRegisteredCount, KFbxWriter::IOSettingsFillerFuncType pIOSettingsFillerF=NULL) |
Registers Writers. | |
KFbxReader * | CreateReader(KFbxSdkManager&pManager,KFbxImporter&pImporter, int pPluginID) const |
Creates a Reader in the Sdk Manager. | |
KFbxWriter * | CreateWriter(KFbxSdkManager&pManager,KFbxExporter&pExporter, int pPluginID) const |
Creates a Writer in the Sdk Manager. | |
int | FindReaderIDByExtension(char const *pExt) const |
Search for the Reader ID by the extension of the file. | |
int | FindWriterIDByExtension(char const *pExt) const |
Search for the Writer ID by the extension of the file. | |
int | FindReaderIDByDescription(char const *pDesc) const |
Search for the Reader ID by the description of the file format. | |
int | FindWriterIDByDescription(char const *pDesc) const |
Search for the Writer ID by the description of the file format. | |
bool | ReaderIsFBX(int pFileFormat) const |
Verifies if the file format of the Reader is FBX. | |
bool | WriterIsFBX(int pFileFormat) const |
Verifies if the file format of the Writer is FBX. | |
bool | ReaderIsGenuine(int pFileFormat) const |
Verifies if the file format of the Reader is genuine (internal). | |
bool | WriterIsGenuine(int pFileFormat) const |
Verifies if the file format of the Writer is genuine (internal). | |
int | GetReaderFormatCount() const |
Get the number of importable file formats. | |
int | GetWriterFormatCount() const |
Get the number of exportable file formats. | |
char const * | GetReaderFormatDescription(int pFileFormat) const |
Get the description of an importable file format. | |
char const * | GetWriterFormatDescription(int pFileFormat) const |
Get the description of an exportable file format. | |
char const * | GetReaderFormatExtension(int pFileFormat) const |
Get the file extension of an importable file format. | |
char const * | GetWriterFormatExtension(int pFileFormat) const |
Get the file extension of an exportable file format. | |
char const *const * | GetWritableVersions(int pFileFormat) const |
Get a list of the writable file format versions. | |
bool | DetectFileFormat(const char *pFileName, int&pFileFormat) const |
Detect the file format of the specified file. | |
int | GetNativeReaderFormat() |
Gets the native reader file format. | |
int | GetNativeWriterFormat() |
Gets the native writer file format. | |
void | FillIOSettingsForReadersRegistered(KFbxIOSettings&pIOS) |
Fills the IO Settings from all readers registered. | |
void | FillIOSettingsForWritersRegistered(KFbxIOSettings&pIOS) |
Fills the IO Settings from all writers registered. |
Constructor.
virtual ~KFbxIOPluginRegistry | ( | ) | [virtual] |
Destructor.
void RegisterReader | ( | char const * | pPluginPath, | |
int& | pFirstPluginID, | |||
int& | pRegisteredCount | |||
) |
Registers Reader from a plug-in path.
pPluginPath | path of the plug-in | |
pFirstPluginID | contains the ID of the first plug-in found | |
pRegisteredCount | contains the number of registered Readers |
void RegisterReader | ( | KFbxReader::CreateFuncType | pCreateF, | |
KFbxReader::GetInfoFuncType | pInfoF, | |||
int& | pFirstPluginID, | |||
int& | pRegisteredCount, | |||
KFbxReader::IOSettingsFillerFuncType | pIOSettingsFillerF=NULL | |||
) |
Registers Readers.
pCreateF | Provide function information on file format | |
pInfoF | Provide information about the file format | |
pFirstPluginID | Contains the ID of the first plug-in found | |
pRegisteredCount | Contains the number of registered Readers | |
pIOSettingsFillerF |
void RegisterWriter | ( | char const * | pPluginPath, | |
int& | pFirstPluginID, | |||
int& | pRegisteredCount | |||
) |
Registers Writers from a plug-in path.
pPluginPath | Path of the plug-in | |
pFirstPluginID | Contains the ID of the first plug-in found | |
pRegisteredCount | Contains the number of registered Writers |
void RegisterWriter | ( | KFbxWriter::CreateFuncType | pCreateF, | |
KFbxWriter::GetInfoFuncType | pInfoF, | |||
int& | pFirstPluginID, | |||
int& | pRegisteredCount, | |||
KFbxWriter::IOSettingsFillerFuncType | pIOSettingsFillerF=NULL | |||
) |
Registers Writers.
pCreateF | Provide function information on file format | |
pInfoF | Provide information about the file format | |
pFirstPluginID | Contains the ID of the first plug-in found | |
pRegisteredCount | Contains the number of registered writers | |
pIOSettingsFillerF |
KFbxReader* CreateReader | ( | KFbxSdkManager& | pManager, | |
KFbxImporter& | pImporter, | |||
int | pPluginID | |||
) | const |
Creates a Reader in the Sdk Manager.
pManager | The Sdk Manager where the reader will be created | |
pImporter | Importer that will hold the created Reader | |
pPluginID | Plug-in ID to create a Reader from |
KFbxWriter* CreateWriter | ( | KFbxSdkManager& | pManager, | |
KFbxExporter& | pExporter, | |||
int | pPluginID | |||
) | const |
Creates a Writer in the Sdk Manager.
pManager | The Sdk Manager where the writer will be created | |
pExporter | Exporter that will hold the created Writer | |
pPluginID | Plug-in ID to create a Writer from |
int FindReaderIDByExtension | ( | char const * | pExt | ) | const |
Search for the Reader ID by the extension of the file.
pExt | The file extension. |
int FindWriterIDByExtension | ( | char const * | pExt | ) | const |
Search for the Writer ID by the extension of the file.
pExt | The file extension. |
int FindReaderIDByDescription | ( | char const * | pDesc | ) | const |
Search for the Reader ID by the description of the file format.
pDesc | The description of the file format. |
int FindWriterIDByDescription | ( | char const * | pDesc | ) | const |
Search for the Writer ID by the description of the file format.
pDesc | The description of the file format. |
bool ReaderIsFBX | ( | int | pFileFormat | ) | const |
Verifies if the file format of the Reader is FBX.
pFileFormat | The file format. |
true
if the file format of the Reader is FBX.bool WriterIsFBX | ( | int | pFileFormat | ) | const |
Verifies if the file format of the Writer is FBX.
pFileFormat | The file format. |
true
if the file format of the Writer is FBX.bool ReaderIsGenuine | ( | int | pFileFormat | ) | const |
Verifies if the file format of the Reader is genuine (internal).
pFileFormat | The file format. |
true
if the file format of the Reader is FBX.bool WriterIsGenuine | ( | int | pFileFormat | ) | const |
Verifies if the file format of the Writer is genuine (internal).
pFileFormat | The file format. |
true
if the file format of the Writer is FBX.int GetReaderFormatCount | ( | ) | const |
Get the number of importable file formats.
int GetWriterFormatCount | ( | ) | const |
Get the number of exportable file formats.
char const* GetReaderFormatDescription | ( | int | pFileFormat | ) | const |
Get the description of an importable file format.
pFileFormat | File format identifier. |
char const* GetWriterFormatDescription | ( | int | pFileFormat | ) | const |
Get the description of an exportable file format.
pFileFormat | File format identifier. |
char const* GetReaderFormatExtension | ( | int | pFileFormat | ) | const |
Get the file extension of an importable file format.
pFileFormat | File format identifier. |
char const* GetWriterFormatExtension | ( | int | pFileFormat | ) | const |
Get the file extension of an exportable file format.
pFileFormat | File format identifier. |
char const* const* GetWritableVersions | ( | int | pFileFormat | ) | const |
Get a list of the writable file format versions.
pFileFormat | File format identifier. |
bool DetectFileFormat | ( | const char * | pFileName, | |
int& | pFileFormat | |||
) | const |
Detect the file format of the specified file.
pFileName | The file to determine his file format. | |
pFileFormat | The file format identifier if the function returnstrue . if the function returnsfalse , unmodified otherwise. |
true
if the file has been determined successfully,false
otherwise.SetFileFormat()
.int GetNativeReaderFormat | ( | ) |
Gets the native reader file format.
int GetNativeWriterFormat | ( | ) |
Gets the native writer file format.
void FillIOSettingsForReadersRegistered | ( | KFbxIOSettings& | pIOS | ) |
Fills the IO Settings from all readers registered.
pIOS | The properties hierarchies to fill |
void FillIOSettingsForWritersRegistered | ( | KFbxIOSettings& | pIOS | ) |
Fills the IO Settings from all writers registered.
pIOS | The properties hierarchies to fill |