123456789101112131415161718192021222324252627282930313233343536373839 |
- /*
- * 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 <Source/Components/Connections/ConnectionComponent.h>
- namespace GraphCanvas
- {
- class DataConnectionComponent
- : public ConnectionComponent
- , public ConnectionNotificationBus::Handler
- , public SceneMemberNotificationBus::Handler
- {
- public:
- AZ_COMPONENT(DataConnectionComponent, "{ECC6A4D9-E8CD-451B-93BE-409F04A9A52B}", ConnectionComponent);
- static void Reflect(AZ::ReflectContext* context);
- static AZ::Entity* CreateDataConnection(const Endpoint& sourceEndpoint, const Endpoint& targetEndpoint, bool createModelConnection, const AZStd::string& substyle = "");
- DataConnectionComponent() = default;
- DataConnectionComponent(const Endpoint& sourceEndpoint,const Endpoint& targetEndpoint, bool createModelConnection = true);
- ~DataConnectionComponent() override = default;
- // ConnectionComponent
- bool AllowNodeCreation() const override;
- ////
- protected:
- DataConnectionComponent(const DataConnectionComponent&) = delete;
- const DataConnectionComponent& operator=(const DataConnectionComponent&) = delete;
- ConnectionMoveResult OnConnectionMoveComplete(const QPointF& scenePos, const QPoint& screenPos, AZ::EntityId groupTarget) override;
- };
- }
|