EditorOcclusionCullingPlaneComponent.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 <AzFramework/Entity/EntityDebugDisplayBus.h>
  10. #include <AzToolsFramework/API/ComponentEntitySelectionBus.h>
  11. #include <OcclusionCullingPlane/OcclusionCullingPlaneComponent.h>
  12. #include <OcclusionCullingPlane/OcclusionCullingPlaneComponentConstants.h>
  13. #include <Atom/Feature/Utils/EditorRenderComponentAdapter.h>
  14. namespace AZ
  15. {
  16. namespace Render
  17. {
  18. class EditorOcclusionCullingPlaneComponent final
  19. : public EditorRenderComponentAdapter<OcclusionCullingPlaneComponentController, OcclusionCullingPlaneComponent, OcclusionCullingPlaneComponentConfig>
  20. , private AzFramework::EntityDebugDisplayEventBus::Handler
  21. {
  22. public:
  23. using BaseClass = EditorRenderComponentAdapter<OcclusionCullingPlaneComponentController, OcclusionCullingPlaneComponent, OcclusionCullingPlaneComponentConfig>;
  24. AZ_EDITOR_COMPONENT(AZ::Render::EditorOcclusionCullingPlaneComponent, EditorOcclusionCullingPlaneComponentTypeId, BaseClass);
  25. static void Reflect(AZ::ReflectContext* context);
  26. EditorOcclusionCullingPlaneComponent();
  27. EditorOcclusionCullingPlaneComponent(const OcclusionCullingPlaneComponentConfig& config);
  28. // AZ::Component overrides
  29. void Activate() override;
  30. void Deactivate() override;
  31. };
  32. } // namespace Render
  33. } // namespace AZ