AssImpSkinWeightsImporter.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <assimp/scene.h>
  10. #include <AzCore/std/containers/vector.h>
  11. #include <SceneAPI/SceneBuilder/ImportContexts/AssImpImportContexts.h>
  12. #include <SceneAPI/SceneCore/Components/LoadingComponent.h>
  13. #include <SceneAPI/SceneCore/DataTypes/GraphData/ISkinWeightData.h>
  14. namespace AZ
  15. {
  16. namespace SceneData
  17. {
  18. namespace GraphData
  19. {
  20. class SkinWeightData;
  21. }
  22. }
  23. namespace SceneAPI
  24. {
  25. namespace Events
  26. {
  27. class PostImportEventContext;
  28. }
  29. namespace SceneBuilder
  30. {
  31. class AssImpSkinWeightsImporter
  32. : public SceneCore::LoadingComponent
  33. {
  34. public:
  35. AZ_COMPONENT(AssImpSkinWeightsImporter, "{79B5E863-C155-473A-BC0D-B85F8D8303EB}", SceneCore::LoadingComponent);
  36. AssImpSkinWeightsImporter();
  37. ~AssImpSkinWeightsImporter() override = default;
  38. static void Reflect(ReflectContext* context);
  39. Events::ProcessingResult ImportSkinWeights(AssImpSceneNodeAppendedContext& context);
  40. protected:
  41. static const AZStd::string s_skinWeightName;
  42. };
  43. } // namespace SceneBuilder
  44. } // namespace SceneAPI
  45. } // namespace AZ