12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- #include <Atom/RPI.Public/Pass/PassSystemInterface.h>
- #include <AzCore/Component/Component.h>
- namespace ROS2
- {
- //! System Component for Camera simulation in ROS 2.
- class ROS2SystemCameraComponent
- : public AZ::Component
- {
- public:
- AZ_COMPONENT(ROS2SystemCameraComponent, "{b4665d39-78fd-40de-8518-2f6bd345a831}");
- static void Reflect(AZ::ReflectContext* context);
- static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
- static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
- static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
- static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
- void InitPassTemplateMappingsHandler();
- protected:
- ////////////////////////////////////////////////////////////////////////
- // AZ::Component override
- void Activate() override;
- void Deactivate() override;
- ////////////////////////////////////////////////////////////////////////
- private:
- //! Load the pass templates of the ROS 2 Camera.
- void LoadPassTemplateMappings();
- AZ::RPI::PassSystemInterface::OnReadyLoadTemplatesEvent::Handler m_loadTemplatesHandler;
- };
- } // namespace ROS2
|