#include <fbxexternaldocreflistener.h>
Typical handler for the referenced document events.
Register it like so: FbxExternalDocRefListener lRefDocListener( sdkManager, fileName ); FbxEventHandler * lHandler = lRefDocListener.Bind(scene, &FbxExternalDocRefListener::HandleEvent);
And later unregister it like so: lRefDocListener.Unbind(lHandler);
Definition at line 56 of file fbxexternaldocreflistener.h.
Public Member Functions |
|
| FbxExternalDocRefListener (FbxManager &pManager, const FbxString &pDocFilePath) | |
| Constructor. |
|
| virtual | ~FbxExternalDocRefListener () |
| virtual void | SetDocumentFilePath (const FbxString &pDocFilePath) |
| Set the document file path used to resolve
documents. |
|
| virtual bool | AreAllExternalDocumentsStillValid () const |
| Verify that all documents that were
previously loaded in a previous load session are still valid.
|
|
| virtual bool | WereAllExternalDocumentsValid () const |
| Verify that all documents that were referred
to didn't change. |
|
| virtual void | UnloadExternalDocuments () |
| Unload all documents that were loaded
through this event handler. |
|
| virtual void | HandleEvent (const FbxEventReferencedDocument *pEvent) |
| External document reference event handler.
|
|
Protected Member Functions |
|
| virtual FbxString | MakeFilenameAbsolute (const FbxString &pFilename) const |
| Turn a relative path to an absolute path
using the file path of the original document being loaded. |
|
| virtual FbxDocument * | FindDocument (const FbxString &pPathToDoc) |
| Locate a document by its document path.
|
|
| virtual FbxDocument * | LoadDocument (FbxObject *pParent, const FbxString &pClassName, const FbxString &pFilename) |
| Load a library, potentially under another
library. |
|
| virtual bool | ConnectToParentLibrary (const FbxExternalDocumentInfo &) |
| Try to connect a library to its parent given
its document path. |
|
| virtual void | TryConnectingDanglingLibraries () |
| Try to reconnect dangling libraries that
didn't find their parent. |
|
| FbxExternalDocRefListener | ( | FbxManager & | pManager, |
| const FbxString & | pDocFilePath | ||
| ) |
Constructor.
| pManager | |
| pDocFilePath |
| virtual ~FbxExternalDocRefListener | ( | ) | [virtual] |
| virtual void SetDocumentFilePath | ( | const FbxString & | pDocFilePath | ) | [virtual] |
Set the document file path used to resolve documents.
| pDocFilePath |
| virtual bool AreAllExternalDocumentsStillValid | ( | ) | const [virtual] |
Verify that all documents that were previously loaded in a previous load session are still valid.
true if all documents are still valid,
false otherwise.| virtual bool WereAllExternalDocumentsValid | ( | ) | const [virtual] |
Verify that all documents that were referred to didn't change.
true if all documents didn't change,
false otherwise.| virtual void UnloadExternalDocuments | ( | ) | [virtual] |
Unload all documents that were loaded through this event handler.
| virtual void HandleEvent | ( | const FbxEventReferencedDocument * | pEvent | ) | [virtual] |
External document reference event handler.
| pEvent |
Turn a relative path to an absolute path using the file path of the original document being loaded.
If the path is already is absolute, it is returned as is.
| virtual FbxDocument* FindDocument | ( | const FbxString & | pPathToDoc | ) | [protected, virtual] |
Locate a document by its document path.
| virtual FbxDocument* LoadDocument | ( | FbxObject * | pParent, |
| const FbxString & | pClassName, | ||
| const FbxString & | pFilename | ||
| ) | [protected, virtual] |
Load a library, potentially under another library.
| virtual bool ConnectToParentLibrary | ( | const FbxExternalDocumentInfo & | ) | [protected, virtual] |
Try to connect a library to its parent given its document path.
| virtual void TryConnectingDanglingLibraries | ( | ) | [protected, virtual] |
Try to reconnect dangling libraries that didn't find their parent.