You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904 #ROBOMERGE-BOT: (v613-10869866) [CL 10870586 by ryan durand in Main branch]
73 lines
2.2 KiB
C++
73 lines
2.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Layout/ArrangedWidget.h"
|
|
#include "Widgets/SWidget.h"
|
|
#include "EdGraphUtilities.h"
|
|
#include "ConnectionDrawingPolicy.h"
|
|
|
|
class FSlateWindowElementList;
|
|
class UEdGraph;
|
|
|
|
struct FSoundCueGraphConnectionDrawingPolicyFactory : public FGraphPanelPinConnectionFactory
|
|
{
|
|
public:
|
|
virtual ~FSoundCueGraphConnectionDrawingPolicyFactory() {}
|
|
|
|
// FGraphPanelPinConnectionFactory
|
|
virtual class FConnectionDrawingPolicy* CreateConnectionPolicy(const class UEdGraphSchema* Schema, int32 InBackLayerID, int32 InFrontLayerID, float ZoomFactor, const class FSlateRect& InClippingRect, class FSlateWindowElementList& InDrawElements, class UEdGraph* InGraphObj) const override;
|
|
// ~FGraphPanelPinConnectionFactory
|
|
|
|
};
|
|
|
|
|
|
class FSlateWindowElementList;
|
|
class UEdGraph;
|
|
|
|
/////////////////////////////////////////////////////
|
|
// FSoundCueGraphConnectionDrawingPolicy
|
|
|
|
// This class draws the connections for an UEdGraph using a SoundCue schema
|
|
class FSoundCueGraphConnectionDrawingPolicy : public FConnectionDrawingPolicy
|
|
{
|
|
protected:
|
|
// Times for one execution pair within the current graph
|
|
struct FTimePair
|
|
{
|
|
double PredExecTime;
|
|
double ThisExecTime;
|
|
|
|
FTimePair()
|
|
: PredExecTime(0.0)
|
|
, ThisExecTime(0.0)
|
|
{
|
|
}
|
|
};
|
|
|
|
// Map of pairings
|
|
typedef TMap<UEdGraphNode*, FTimePair> FExecPairingMap;
|
|
|
|
// Map of nodes that preceeded before a given node in the execution sequence (one entry for each pairing)
|
|
TMap<UEdGraphNode*, FExecPairingMap> PredecessorNodes;
|
|
|
|
UEdGraph* GraphObj;
|
|
|
|
FLinearColor ActiveColor;
|
|
FLinearColor InactiveColor;
|
|
|
|
float ActiveWireThickness;
|
|
float InactiveWireThickness;
|
|
|
|
public:
|
|
FSoundCueGraphConnectionDrawingPolicy(int32 InBackLayerID, int32 InFrontLayerID, float ZoomFactor, const FSlateRect& InClippingRect, FSlateWindowElementList& InDrawElements, UEdGraph* InGraphObj);
|
|
|
|
void BuildAudioFlowRoadmap();
|
|
|
|
// FConnectionDrawingPolicy interface
|
|
virtual void DetermineWiringStyle(UEdGraphPin* OutputPin, UEdGraphPin* InputPin, /*inout*/ FConnectionParams& Params) override;
|
|
virtual void Draw(TMap<TSharedRef<SWidget>, FArrangedWidget>& PinGeometries, FArrangedChildren& ArrangedNodes) override;
|
|
// End of FConnectionDrawingPolicy interface
|
|
};
|