NodeWrapper.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0 OR MIT
  5. *
  6. */
  7. #pragma once
  8. #include <AzCore/RTTI/RTTI.h>
  9. struct aiNode;
  10. namespace AZ
  11. {
  12. namespace SDKNode
  13. {
  14. class NodeWrapper
  15. {
  16. public:
  17. AZ_RTTI(NodeWrapper, "{5EB0897B-9728-44B7-B056-BA34AAF14715}");
  18. NodeWrapper() = default;
  19. NodeWrapper(aiNode* aiNode);
  20. virtual ~NodeWrapper();
  21. enum CurveNodeComponent
  22. {
  23. Component_X,
  24. Component_Y,
  25. Component_Z
  26. };
  27. aiNode* GetAssImpNode();
  28. virtual const char* GetName() const;
  29. virtual AZ::u64 GetUniqueId() const;
  30. virtual int GetMaterialCount() const;
  31. virtual int GetChildCount()const;
  32. virtual const std::shared_ptr<NodeWrapper> GetChild(int childIndex) const;
  33. aiNode* m_assImpNode = nullptr;
  34. };
  35. } //namespace Node
  36. } //namespace AZ