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. namespace ROS2
  12. {
  13. /// Editor system component for ROS2 camera simulation.
  14. class ROS2EditorCameraSystemComponent
  15. : public ROS2SystemCameraComponent
  16. , private AzToolsFramework::EditorEntityContextNotificationBus::Handler
  17. {
  18. using BaseSystemComponent = ROS2SystemCameraComponent;
  19. public:
  20. AZ_COMPONENT(ROS2EditorCameraSystemComponent, "{407f51c0-92c9-11ee-b9d1-0242ac120002}", BaseSystemComponent);
  21. static void Reflect(AZ::ReflectContext* context);
  22. private:
  23. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  24. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  25. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  26. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  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