fbxcolladanamespace.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 fbxcolladanamespace.h
  9. #ifndef _FBXSDK_FILEIO_COLLADA_NAMESPACE_H_
  10. #define _FBXSDK_FILEIO_COLLADA_NAMESPACE_H_
  11. #include <fbxsdk.h>
  12. #include <components/libxml2-2.7.8/include/libxml/globals.h>
  13. #include <fbxsdk/fbxsdk_nsbegin.h>
  14. /** Containing the valid parameter definition and modification in local scope.
  15. */
  16. struct FbxColladaNamespace
  17. {
  18. public:
  19. /** Push the newparam and setparam elements found in this element.
  20. * Call this method at the beginning of importing an element.
  21. * \param pElement The specific element.
  22. */
  23. void Push(xmlNode * pElement);
  24. /** Pop the newparam and setparam elements found in this element.
  25. * Call this method at the end of importing an element.
  26. */
  27. void Pop();
  28. /** Find the specific newparam element with given SID.
  29. * \param pSID The given SID.
  30. * \return Return the found element or NULL if fail.
  31. */
  32. xmlNode * FindParamDefinition(const char * pSID) const;
  33. /** Find the specific setparam element with given SID.
  34. * \param pSID The given SID.
  35. * \return Return the found element or NULL if fail.
  36. */
  37. xmlNode * FindParamModification(const char * pSID) const;
  38. /** Get the count of all the setparam elements in local scope.
  39. * \return The count.
  40. */
  41. int GetParamModificationCount() const;
  42. /** Get the setparam element with given index.
  43. * \param pIndex The given index.
  44. * \return The element.
  45. */
  46. xmlNode * GetParamModification(int pIndex) const;
  47. private:
  48. FbxArray<xmlNode*> mParamDefinition;
  49. FbxArray<int> mParamDefinitionCount;
  50. FbxArray<xmlNode*> mParamModification;
  51. FbxArray<int> mParamModificationCount;
  52. };
  53. #include <fbxsdk/fbxsdk_nsend.h>
  54. #endif /* _FBXSDK_FILEIO_COLLADA_NAMESPACE_H_ */