FBX C++ API Reference
|
#include <fbxperipheral.h>
FbxPeripheral is an interface to load/unload content of FbxObject from memory to somewhere you defined, for example, to a temporary file on disk .
You need to inherited your own peripheral class from this class and overload the functions to control what information of a FbxObject you want to load/unload, and where you are going to load/unload these information to. For example, you can ask an object to dump itself on disk to free some memory and vice-versa when you want to load/unload this object from your scene flexibly.
Definition at line 31 of file fbxperipheral.h.
Public Member Functions | |
virtual void | Reset ()=0 |
Reset the peripheral to its initial state. More... | |
virtual bool | UnloadContentOf (FbxObject *pObject)=0 |
Unload the content of pObject. More... | |
virtual bool | LoadContentOf (FbxObject *pObject)=0 |
Load the content of pObject. More... | |
virtual bool | CanUnloadContentOf (FbxObject *pObject)=0 |
Check if this peripheral can unload the given object content. More... | |
virtual bool | CanLoadContentOf (FbxObject *pObject)=0 |
Check if this peripheral can load the given object content. More... | |
virtual void | InitializeConnectionsOf (FbxObject *pObject)=0 |
Initialize the connections of an object. More... | |
virtual void | UninitializeConnectionsOf (FbxObject *pObject)=0 |
Uninitialize the connections of an object. More... | |
Constructor and Destructor | |
FbxPeripheral () | |
Constructor. More... | |
virtual | ~FbxPeripheral () |
Destructor. More... | |
FbxPeripheral | ( | ) |
Constructor.
|
virtual |
Destructor.
|
pure virtual |
Reset the peripheral to its initial state.
|
pure virtual |
Unload the content of pObject.
pObject | Object whose content is to be offloaded into the peripheral storage area. |
true
if the object content has been successfully transferred. false
otherwise.
|
pure virtual |
Load the content of pObject.
pObject | Object whose content is to be loaded from the peripheral storage area. |
true
if the object content has been successfully transferred. false
otherwise.
|
pure virtual |
Check if this peripheral can unload the given object content.
pObject | Object whose content has to be transferred. |
true
if the peripheral can handle this object content and has enough space in its storage area.false
otherwise.
|
pure virtual |
Check if this peripheral can load the given object content.
pObject | Object whose content has to be transferred. |
true
if the peripheral can handle this object content. false
otherwise.
|
pure virtual |
Initialize the connections of an object.
pObject | Object on which the request for connection is done. |
|
pure virtual |
Uninitialize the connections of an object.
pObject | Object on which the request for disconnection is done. |