FConnectionDrawingPolicy

This class draws the connections for an [UEdGraph](API\Runtime\Engine\EdGraph\UEdGraph) composed of pins and nodes.

Unreal Engine C++ API Reference > Editor > GraphEditor

Inheritance Hierarchy

  • FConnectionDrawingPolicy

References

   
Module GraphEditor
Header /Engine/Source/Editor/GraphEditor/Public/ConnectionDrawingPolicy.h
Include #include "ConnectionDrawingPolicy.h"

Syntax

class FConnectionDrawingPolicy  

Remarks

This class draws the connections for an UEdGraph composed of pins and nodes.

Variables

Type Name Description
const FSlateBru... ArrowImage  
int32 ArrowLayerID  
FVector2D ArrowRadius  
const FSlateBru... BubbleImage  
const FSlateRec... ClippingRect  
FSlateWindowEle... DrawElementsList  
float HoverDeemphasisDarkFraction  
TSet< FEdGraphP... HoveredPins  
double LastHoverTimeEvent  
FVector2D LocalMousePosition  
const FSlateBru... MidpointImage  
FVector2D MidpointRadius  
TMap< TSharedRe... PinGeometries  
TMap< UEdGraphP... PinToPinWidgetMap  
TArray< FRelink... RelinkConnections List of currently relinked connections.
TArray< UEdGrap... SelectedGraphNodes Selected nodes in the graph panel.
const UGraphEdi... Settings  
FGraphSplineOve... SplineOverlapResult  
int32 WireLayerID  
float ZoomFactor  

Constructors

Type Name Description
  FConnectionDrawingPolicy ( int32 InBackLayerID, int32 InFrontLayerID, float InZoomFactor, const FSlateRect& InClippingRect, FSlateWindowElementList& InDrawEle... )  

Destructors

Type Name Description
  ~FConnectionDrawingPolicy ()  

Functions

Type Name Description
void ApplyHoverDeemphasis ( UEdGraphPin* OutputPin, UEdGraphPin* InputPin, float& Thickness, FLinearColor& WireColor )  
void BuildPinToPinWidgetMap ( TMap< TSharedRef< SWidget >, FArran... ) Helper function used by Draw(). Called before DrawPinGeometries to populate PinToPinWidgetMap.
FVector2D ComputeSplineTangent ( const FVector2D& Start, const FVector2D& End )  
void DetermineLinkGeometry ( FArrangedChildren& ArrangedNodes, TSharedRef< SWidget >& OutputPinWi..., UEdGraphPin* OutputPin, UEdGraphPin* InputPin, FArrangedWidget*& StartWidgetG..., FArrangedWidget*& EndWidgetGeo... )  
void DetermineWiringStyle ( UEdGraphPin* OutputPin, UEdGraphPin* InputPin, FConnectionParams& Params ) Give specific editor modes a chance to highlight this connection or darken non-interesting connections.
void Draw ( TMap< TSharedRef< SWidget >, FArran..., FArrangedChildren& ArrangedNodes )  
void DrawConnection ( int32 LayerId, const FVector2D& Start, const FVector2D& End, const FConnectionParams& Params )  
void DrawPinGeometries ( TMap< TSharedRef< SWidget >, FArran..., FArrangedChildren& ArrangedNodes ) Helper function used by Draw(). Iterates over the pin geometries, drawing connections between them.
void DrawPreviewConnector ( const FGeometry& PinGeometry, const FVector2D& StartPoint, const FVector2D& EndPoint, UEdGraphPin* Pin )  
void DrawSplineWithArrow ( const FVector2D& StartPoint, const FVector2D& EndPoint, const FConnectionParams& Params )  
void DrawSplineWithArrow ( const FGeometry& StartGeom, const FGeometry& EndGeom, const FConnectionParams& Params )  
bool IsConnectionCulled ( const FArrangedWidget& StartLink, const FArrangedWidget& EndLink )  
float MakeSplineReparamTable ( const FVector2D& P0, const FVector2D& P0Tangent, const FVector2D& P1, const FVector2D& P1Tangent, FInterpCurve< float >& OutReparamT... ) Util to make a 'distance->alpha' table and also return spline length
void ResetIncompatiblePinDrawState ( const TSet< TSharedRef< SWidget > >... )  
void SetHoveredPins ( const TSet< FEdGraphPinReference > ..., const TArray< TSharedPtr< SGraphPin..., double HoverTime ) Update the drawing policy with the set of hovered pins (which can be empty)
void SetIncompatiblePinDrawState ( const TSharedPtr< SGraphPin >& Sta..., const TSet< TSharedRef< SWidget > >... )  
void SetMarkedPin ( TWeakPtr< SGraphPin > InMarkedPin ) Update the drawing policy with the marked pin (which may not be valid)
void SetMousePosition ( const FVector2D& InMousePos )  
void SetRelinkConnections ( const TArray< FRelinkConnection >&... ) Set the list of currently relinked connections.
void SetSelectedNodes ( const TArray< UEdGraphNode* > ... ) Set the selected nodes from the graph panel.
bool UseDrawStateCaching () Choose whether we want to cache the pins draw state to avoid resetting it for every tick.

Classes

Type Name Description
Public struct FRelinkConnection Handle for a currently relinked connection.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library