You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.5 KiB
C++
39 lines
1.5 KiB
C++
/*
|
|
* 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;
|
|
};
|
|
}
|