ImporterUtilities.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 <SceneAPI/SceneBuilder/ImportContexts/ImportContexts.h>
  10. #include <SceneAPI/SceneCore/Containers/Scene.h>
  11. #include <SceneAPI/SceneCore/Containers/SceneGraph.h>
  12. #include <SceneAPI/SceneCore/DataTypes/MatrixType.h>
  13. #include <SceneAPI/SceneCore/Events/CallProcessorBus.h>
  14. namespace AZ
  15. {
  16. struct Uuid;
  17. namespace SceneAPI
  18. {
  19. namespace SceneBuilder
  20. {
  21. struct SceneImportContext;
  22. using CoreScene = Containers::Scene;
  23. using CoreSceneGraph = Containers::SceneGraph;
  24. using CoreGraphNodeIndex = Containers::SceneGraph::NodeIndex;
  25. using CoreProcessingResult = Events::ProcessingResult;
  26. inline bool NodeIsOfType(const CoreSceneGraph& graph, CoreGraphNodeIndex nodeIndex, const AZ::Uuid& uuid);
  27. inline bool NodeParentIsOfType(const CoreSceneGraph& graph, CoreGraphNodeIndex nodeIndex,
  28. const AZ::Uuid& uuid);
  29. inline bool NodeHasAncestorOfType(const CoreSceneGraph& graph, CoreGraphNodeIndex nodeIndex,
  30. const AZ::Uuid& uuid);
  31. CoreProcessingResult AddDataNodeWithContexts(SceneDataPopulatedContextBase& dataContext);
  32. CoreProcessingResult AddAttributeDataNodeWithContexts(SceneAttributeDataPopulatedContextBase& dataContext);
  33. bool AreSceneGraphsEqual(const CoreSceneGraph& lhsGraph, const CoreSceneGraph& rhsGraph);
  34. inline bool AreScenesEqual(const CoreScene& lhs, const CoreScene& rhs);
  35. bool IsGraphDataEqual(const AZStd::shared_ptr<const DataTypes::IGraphObject>& lhs,
  36. const AZStd::shared_ptr<const DataTypes::IGraphObject>& rhs);
  37. } // namespace SceneBuilder
  38. } // namespace SceneAPI
  39. } // namespace AZ
  40. #include <SceneAPI/SceneBuilder/Importers/ImporterUtilities.inl>