FbxPlugin Class Reference
#include <fbxplugin.h>
The base class to inherit from when creating new plug-ins for the FBX SDK.
Plug-ins for the FBX SDK are extremely flexible allowing a wide-range of possibilities. For example, one can write his own plug-in to add new readers/writers to the current list of supported I/O formats, or add new dynamic classes to instantiate custom objects that can later be stored in FBX files. We also use the same interface for plug-ins written using the FBX Extension SDK, which allow additional callbacks for other various Autodesk products enabling greater interoperability with multiple various SDKs.
Here is typical implementation of an FBX SDK plug-in that doesn't do anything else than just registering itself:
{
protected:
{
}
{
return true;
}
{
return true;
}
};
extern "C"
{
static MyPlugin* sMyPluginInstance =
NULL;
#ifdef FBXSDK_ENV_WIN
#else
#endif
{
{
sPluginDef.
mName =
"My Plugin";
sMyPluginInstance = MyPlugin::Create(sPluginDef, pLibHandle);
}
}
}
- See also
- FbxPluginDef, FbxPluginData
Definition at line 148 of file fbxplugin.h.
Use the Create() and Destroy() methods declared and implemented in the FBXSDK_PLUGIN_DECLARE and FBXSDK_PLUGIN_IMPLEMENT macros to construct and destroy FbxPlugin objects.
- Parameters
-
pDefinition | The definition associated with this plug-in. Each plug-in must have its own definition to differentiate it with other plug-ins. |
pModuleHandle | A pointer to the plug-in module address. |
virtual bool SpecificInitialize |
( |
| ) |
|
|
pure virtual |
Abstract function called once at the end of the plug-in construction.
At that moment, plug-in data have been properly initialized. This function must be implemented by anyone who writes a new plug-in for the FBX SDK.
virtual bool SpecificTerminate |
( |
| ) |
|
|
pure virtual |
Abstract function called once at the beginning of the plug-in destruction.
At that moment, plug-in data is fully available. This function must be implemented by anyone who writes a new plug-in for the FBX SDK.
virtual void WriteBegin |
( |
FbxScene & |
pScene | ) |
|
|
virtual |
Virtual function called once when the FBX SDK is about to write an FBX file.
Users can re-implement it in their plug-in if they need to perform tasks at that moment. The scene provided in parameter can be altered. If not re-implemented, this function does nothing.
- Parameters
-
pScene | The scene that is about to be written in the FBX file. |
virtual void WriteParameters |
( |
FbxObject & |
pParams | ) |
|
|
virtual |
Virtual function called once when the FBX SDK is about to write plug-in's parameters.
Users can re-implement it in their plug-in if they need to store properties in the FBX file for their own usage. The object in parameter is used to store those properties. If not re-implemented, this function does nothing.
- Parameters
-
pParams | An abstract object that can be used as a property container, to allow the plug-in to store properties about the plug-in. |
virtual void WriteEnd |
( |
FbxScene & |
pScene | ) |
|
|
virtual |
Virtual function called once after the FBX SDK wrote an FBX file.
Users can re-implement it in their plug-in if they need to perform tasks at that moment. The scene provided in parameter can be altered, but the changes will not appear in the FBX file. If not re-implemented, this function does nothing.
- Parameters
-
pScene | The scene that was written in the FBX file. |
virtual void ReadBegin |
( |
FbxScene & |
pScene | ) |
|
|
virtual |
Virtual function called once when the FBX SDK is about to read an FBX file.
Users can re-implement it in their plug-in if they need to perform tasks at that moment. The scene provided in parameter can be altered. If not re-implemented, this function does nothing.
- Parameters
-
pScene | The scene that is about to be read in the FBX file. |
virtual void ReadParameters |
( |
FbxObject & |
pParams | ) |
|
|
virtual |
Virtual function called once after the FBX SDK reads the plug-in's parameters.
Users can re-implement it in their plug-in if they need to retrieve properties for their own usage. The object in parameter is used to retrieve those properties. If not re-implemented, this function does nothing.
- Parameters
-
pParams | An abstract object that can be used as a property container, to allow the plug-in to read properties about the plug-in. |
virtual void ReadEnd |
( |
FbxScene & |
pScene | ) |
|
|
virtual |
Virtual function called once after the FBX SDK read an FBX file.
Users can re-implement it in their plug-in if they need to perform tasks at that moment. The scene provided in parameter can be altered. If not re-implemented, this function does nothing.
- Parameters
-
pScene | The scene that was read in the FBX file. |
Accessor to the plug-in definition structure that contains basic information on the plug-in like its name or version.
This is the only method available to differentiate plug-ins.
- Returns
- The definition structure for this plug-in.
Retrieve the module address pointer for this plug-in.
With this module instance handle, for example someone can query procedures addresses, allowing more complex interactions, as well as other operating system module specific functions.
Accessor to the plug-in private data.
- Returns
- The data for the current plug-in.
Const accessor to the plug-in private data.
- Returns
- The const data for the current plug-in.
The documentation for this class was generated from the following file: