MeshGroup.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 <AzCore/Memory/Memory.h>
  10. #include <AzCore/Memory/SystemAllocator.h>
  11. #include <AzCore/std/containers/vector.h>
  12. #include <AzCore/std/smart_ptr/shared_ptr.h>
  13. #include <SceneAPI/SceneCore/Containers/RuleContainer.h>
  14. #include <SceneAPI/SceneCore/DataTypes/Groups/IMeshGroup.h>
  15. #include <SceneAPI/SceneData/ManifestBase/SceneNodeSelectionList.h>
  16. namespace AZ
  17. {
  18. class ReflectContext;
  19. namespace SceneAPI
  20. {
  21. namespace Containers
  22. {
  23. class Scene;
  24. }
  25. namespace SceneData
  26. {
  27. class SCENE_DATA_CLASS MeshGroup
  28. : public DataTypes::IMeshGroup
  29. {
  30. public:
  31. AZ_RTTI(MeshGroup, "{07B356B7-3635-40B5-878A-FAC4EFD5AD86}", DataTypes::IMeshGroup);
  32. AZ_CLASS_ALLOCATOR(MeshGroup, SystemAllocator);
  33. SCENE_DATA_API MeshGroup();
  34. SCENE_DATA_API ~MeshGroup() override = default;
  35. SCENE_DATA_API const AZStd::string& GetName() const override;
  36. SCENE_DATA_API void SetName(const AZStd::string& name);
  37. SCENE_DATA_API void SetName(AZStd::string&& name) override;
  38. SCENE_DATA_API const Uuid& GetId() const override;
  39. SCENE_DATA_API void OverrideId(const Uuid& id) override;
  40. SCENE_DATA_API Containers::RuleContainer& GetRuleContainer() override;
  41. SCENE_DATA_API const Containers::RuleContainer& GetRuleContainerConst() const override;
  42. SCENE_DATA_API DataTypes::ISceneNodeSelectionList& GetSceneNodeSelectionList() override;
  43. SCENE_DATA_API const DataTypes::ISceneNodeSelectionList& GetSceneNodeSelectionList() const override;
  44. static void Reflect(AZ::ReflectContext* context);
  45. static bool VersionConverter(SerializeContext& context, SerializeContext::DataElementNode& classElement);
  46. protected:
  47. SceneNodeSelectionList m_nodeSelectionList;
  48. Containers::RuleContainer m_rules;
  49. AZStd::string m_name;
  50. Uuid m_id;
  51. };
  52. } // SceneData
  53. } // SceneAPI
  54. } // AZ