fbxrenamingstrategyfbx5.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /****************************************************************************************
  2. Copyright (C) 2015 Autodesk, Inc.
  3. All rights reserved.
  4. Use of this software is subject to the terms of the Autodesk license agreement
  5. provided at the time of installation or download, or which otherwise accompanies
  6. this software in either electronic or hard copy form.
  7. ****************************************************************************************/
  8. //! \file fbxrenamingstrategyfbx5.h
  9. #ifndef _FBXSDK_UTILS_RENAMINGSTRATEGY_FBX5_H_
  10. #define _FBXSDK_UTILS_RENAMINGSTRATEGY_FBX5_H_
  11. #include <fbxsdk/fbxsdk_def.h>
  12. #include <fbxsdk/utils/fbxrenamingstrategybase.h>
  13. #include <fbxsdk/fbxsdk_nsbegin.h>
  14. /** \brief This class contains the description of the FBX renaming strategy for fbx file format 5.
  15. * \nosubgrouping
  16. */
  17. class FBXSDK_DLL FbxRenamingStrategyFbx5: public FbxRenamingStrategyBase
  18. {
  19. public:
  20. //! Default constructor
  21. FbxRenamingStrategyFbx5();
  22. //! Destructor
  23. virtual ~FbxRenamingStrategyFbx5();
  24. /** This method put all the names in the scene back to the original values
  25. * \param pScene
  26. * \return Returns true if some names have been modified.
  27. */
  28. virtual bool DecodeScene(FbxScene* pScene);
  29. /** This method renames all the names in the scene
  30. * \param pScene
  31. * \return Returns true if some names have been modified.
  32. */
  33. virtual bool EncodeScene(FbxScene* pScene);
  34. /** This method find the original name of a given string
  35. * \param pName
  36. * \return Returns true if the name has been modified.
  37. */
  38. virtual bool DecodeString(FbxNameHandler& pName);
  39. /** This method find the renaming name of a given string
  40. * \param pName
  41. * \param pIsPropertyName
  42. * \return Returns true if the name has been modified.
  43. */
  44. virtual bool EncodeString(FbxNameHandler& pName, bool pIsPropertyName=false);
  45. //! clean up the name cells.
  46. virtual void CleanUp();
  47. };
  48. #include <fbxsdk/fbxsdk_nsend.h>
  49. #endif /* _FBXSDK_UTILS_RENAMINGSTRATEGY_FBX5_H_ */