UnmodifiableRule.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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/std/string/string.h>
  11. #include <SceneAPI/SceneCore/DataTypes/Rules/IUnmodifiableRule.h>
  12. #include <SceneAPI/SceneData/SceneDataConfiguration.h>
  13. namespace AZ
  14. {
  15. class ReflectContext;
  16. namespace SceneAPI
  17. {
  18. namespace SceneData
  19. {
  20. // Disables UI interaction for the node and children of the node with this rule.
  21. class SCENE_DATA_CLASS UnmodifiableRule : public DataTypes::IUnmodifiableRule
  22. {
  23. public:
  24. AZ_RTTI(UnmodifiableRule, "{6527EBC2-60DF-4E5A-98B4-106F050A186C}", DataTypes::IUnmodifiableRule);
  25. AZ_CLASS_ALLOCATOR(UnmodifiableRule, AZ::SystemAllocator)
  26. SCENE_DATA_API ~UnmodifiableRule() override = default;
  27. SCENE_DATA_API bool ModifyTooltip(AZStd::string& tooltip) override;
  28. static void Reflect(ReflectContext* context);
  29. };
  30. } // namespace DataTypes
  31. } // namespace SceneAPI
  32. } // namespace AZ