| 1 | /**************************************************************************************** |
| 2 | |
| 3 | Copyright (C) 2015 Autodesk, Inc. |
| 4 | All rights reserved. |
| 5 | |
| 6 | Use of this software is subject to the terms of the Autodesk license agreement |
| 7 | provided at the time of installation or download, or which otherwise accompanies |
| 8 | this software in either electronic or hard copy form. |
| 9 | |
| 10 | ****************************************************************************************/ |
| 11 | |
| 12 | //! \file fbxprocessorxrefuserlib.h |
| 13 | #ifndef _FBXSDK_UTILS_PROCESSOR_XREF_USERLIB_H_ |
| 14 | #define _FBXSDK_UTILS_PROCESSOR_XREF_USERLIB_H_ |
| 15 | |
| 16 | #include <fbxsdk/fbxsdk_def.h> |
| 17 | |
| 18 | #include <fbxsdk/utils/fbxprocessorxref.h> |
| 19 | |
| 20 | #include <fbxsdk/fbxsdk_nsbegin.h> |
| 21 | |
| 22 | /** |
| 23 | * Specialized xref copy processor |
| 24 | */ |
| 25 | class FBXSDK_DLL FbxProcessorXRefCopyUserLibrary : public FbxProcessorXRefCopy |
| 26 | { |
| 27 | FBXSDK_OBJECT_DECLARE(FbxProcessorXRefCopyUserLibrary, FbxProcessorXRefCopy); |
| 28 | |
| 29 | public: |
| 30 | /** |
| 31 | * \name Properties |
| 32 | */ |
| 33 | //@{ |
| 34 | // Do we copy files even if they are in the system library? |
| 35 | // Defaults to FALSE. |
| 36 | FbxPropertyT<FbxBool> CopyAllAssets; |
| 37 | |
| 38 | // Do we copy files even if they are not within the scene? This is |
| 39 | // the typical use case when creating a new library, and defaults to |
| 40 | // TRUE. If you want to extract assets from a specific library you |
| 41 | // you would set this to FALSE to ignore assets from external (user, |
| 42 | // system) libraries. |
| 43 | FbxPropertyT<FbxBool> CopyExternalAssets; |
| 44 | |
| 45 | // Do we copy assets that use absolute paths? If true, then after |
| 46 | // the scene processor has run through the URL will be relative to |
| 47 | // the scene document. |
| 48 | // Defaults to TRUE. |
| 49 | FbxPropertyT<FbxBool> CopyAbsoluteUrlAssets; |
| 50 | //@} |
| 51 | |
| 52 | /***************************************************************************************************************************** |
| 53 | ** WARNING! Anything beyond these lines is for internal use, may not be documented and is subject to change without notice! ** |
| 54 | *****************************************************************************************************************************/ |
| 55 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 56 | protected: |
| 57 | virtual void ConstructProperties(bool pForceSet); |
| 58 | virtual bool ValidPropertyForXRefCopy(FbxObject* pObject, FbxProperty& lProperty) const; |
| 59 | #endif /* !DOXYGEN_SHOULD_SKIP_THIS *****************************************************************************************/ |
| 60 | }; |
| 61 | |
| 62 | #include <fbxsdk/fbxsdk_nsend.h> |
| 63 | |
| 64 | #endif /* _FBXSDK_UTILS_PROCESSOR_XREF_USERLIB_H_ */ |
| 65 | |