EditorVignetteComponent.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 <Atom/Feature/PostProcess/DepthOfField/DepthOfFieldConstants.h>
  10. #include <AzToolsFramework/ToolsComponents/EditorComponentAdapter.h>
  11. #include <PostProcess/Vignette/VignetteComponent.h>
  12. namespace AZ
  13. {
  14. namespace Render
  15. {
  16. namespace Vignette
  17. {
  18. static constexpr const char* const EditorVignetteComponentTypeId = "{8E362EA9-76D8-4EBC-B73D-400DF3DF8B4A}";
  19. }
  20. class EditorVignetteComponent final
  21. : public AzToolsFramework::Components::
  22. EditorComponentAdapter<VignetteComponentController, VignetteComponent, VignetteComponentConfig>
  23. {
  24. public:
  25. using BaseClass = AzToolsFramework::Components::
  26. EditorComponentAdapter<VignetteComponentController, VignetteComponent, VignetteComponentConfig>;
  27. AZ_EDITOR_COMPONENT(AZ::Render::EditorVignetteComponent, Vignette::EditorVignetteComponentTypeId, BaseClass);
  28. static void Reflect(AZ::ReflectContext* context);
  29. EditorVignetteComponent() = default;
  30. EditorVignetteComponent(const VignetteComponentConfig& config);
  31. //! EditorRenderComponentAdapter overrides...
  32. AZ::u32 OnConfigurationChanged() override;
  33. };
  34. } // namespace Render
  35. } // namespace AZ