ROS2EditorCameraSystemComponent.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 "ROS2CameraSystemComponent.h"
  10. #include <AzToolsFramework/Entity/EditorEntityContextBus.h>
  11. #include <ROS2Sensors/ROS2SensorsTypeIds.h>
  12. namespace ROS2
  13. {
  14. /// Editor system component for ROS2 camera simulation.
  15. class ROS2EditorCameraSystemComponent
  16. : public ROS2SystemCameraComponent
  17. , private AzToolsFramework::EditorEntityContextNotificationBus::Handler
  18. {
  19. using BaseSystemComponent = ROS2SystemCameraComponent;
  20. public:
  21. AZ_COMPONENT(ROS2EditorCameraSystemComponent, ROS2Sensors::ROS2EditorCameraSystemComponentTypeId, BaseSystemComponent);
  22. static void Reflect(AZ::ReflectContext* context);
  23. private:
  24. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  25. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  26. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  27. //////////////////////////////////////////////////////////////////////////
  28. // Component overrides
  29. void Activate() override;
  30. void Deactivate() override;
  31. //////////////////////////////////////////////////////////////////////////
  32. //////////////////////////////////////////////////////////////////////////
  33. // EditorEntityContextNotificationBus overrides
  34. void OnStartPlayInEditorBegin() override;
  35. void OnStopPlayInEditor() override;
  36. //////////////////////////////////////////////////////////////////////////
  37. };
  38. } // namespace ROS2