FKismetConnectionDrawingPolicy

This class draws the connections for an [UEdGraph](API\Runtime\Engine\EdGraph\UEdGraph) using a K2-based schema.

Windows
MacOS
Linux

Inheritance Hierarchy

FConnectionDrawingPolicy

FKismetConnectionDrawingPolicy

References

Module

GraphEditor

Header

/Engine/Source/Editor/GraphEditor/Public/BlueprintConnectionDrawingPolicy.h

Include

#include "BlueprintConnectionDrawingPolicy.h"

Syntax

class FKismetConnectionDrawingPolicy : public FConnectionDrawingPolicy

Remarks

This class draws the connections for an UEdGraph using a K2-based schema.

Variables

Name Description

Protected variable

FLinearColor

 

AttackColor

Protected variable

float

 

AttackHoldPeriod

Protected variable

float

 

AttackWireThickness

Protected variable

double

 

CurrentTime

Protected variable

float

 

DecayExponent

Protected variable

float

 

DecayPeriod

Protected variable

float

 

DefaultDataWireThickness

Protected variable

float

 

DefaultExecutionWireThickness

Protected variable

UEdGraph *

 

GraphObj

Protected variable

TMap< class UK2...

 

KnotToReversedDirectionMap

Each time a knot is encountered, input geometry is compared to output geometry to see if the pins on the knot need to be reversed.

Protected variable

double

 

LatestTimeDiscovered

Protected variable

TMap< UEdGraphN...

 

PredecessorPins

Map of executed nodes, and the execution pins that lead to them being ran.

Protected variable

FLinearColor

 

ReleaseColor

Protected variable

float

 

ReleaseExponent

Protected variable

float

 

ReleasePeriod

Protected variable

float

 

ReleaseWireThickness

Protected variable

FLinearColor

 

SustainColor

Protected variable

float

 

SustainHoldPeriod

Protected variable

float

 

SustainWireThickness

Protected variable

float

 

TracePositionBonusPeriod

Protected variable

float

 

TracePositionExponent

Constructors

Name Description

Public function

FKismetConnectionDrawingPolicy

(
    int32 InBackLayerID,
    int32 InFrontLayerID,
    float ZoomFactor,
    const FSlateRect& InClippingRect,
    FSlateWindowElementList& InDrawEle...,
    UEdGraph* InGraphObj
)

Functions

Name Description

Protected function Const

bool

 

AreNodesGraphicallySequential

(
    UEdGraphNode* InputNode,
    UEdGraphNode* OutputNode
)

Checks that the specified nodes are connected in the graph directly by an exec pin.

Protected function

FTimePair co...

 

BackTraceExecPath

(
    UEdGraphPin const*const Output...,
    FExecPairingMap const*const No...
)

With the introduction of "reroute" (UK2Node_Knot) nodes, we have to backtrace to find a node that was actually executed before the one in question (knot nodes are removed at compile time, and therefore never executed).

Public function Virtual

void

 

BuildExecutionRoadmap()

Public function Const

void

 

CalculateEnvelopeAlphas

(
    double ExecutionTime,
    float& AttackAlpha,
    float& SustainAlpha
)

Public function Virtual Const

bool

 

CanBuildRoadmap()

Protected function Const

bool

 

CanBuildRoadmap

(
    UBlueprint* TargetBP
)

Determines if the given Blueprint context has a valid object for debugging.

Public function Virtual

void

 

DetermineStyleOfExecWire

(
    float& Thickness,
    FLinearColor& WireColor,
    bool& bDrawBubbles,
    const FTimePair& Times
)

Protected function Const

bool

 

FindPinCenter

(
    UEdGraphPin* Pin,
    FVector2D& OutCenter
)

Protected function Const

bool

 

GetAverageConnectedPosition

(
    UK2Node_Knot* Knot,
    EEdGraphPinDirection Direction,
    FVector2D& OutPos
)

Protected function Const

UBlueprint &...

 

GetTargetBlueprint()

Determines the target Blueprint for querying the active debugging context.

Protected function

bool

 

ShouldChangeTangentForKnot

(
    UK2Node_Knot* Knot
)

Protected function Virtual Const

bool

 

TreatWireAsExecutionPin

(
    UEdGraphPin* InputPin,
    UEdGraphPin* OutputPin
)

Should this wire be treated as an execution pin, querying the execution trace for connected nodes to draw it differently?

Overridden from FConnectionDrawingPolicy

Name Description

Public function Virtual

void

 

DetermineWiringStyle

(
    UEdGraphPin* OutputPin,
    UEdGraphPin* InputPin,
    FConnectionParams& Params
)

Give specific editor modes a chance to highlight this connection or darken non-interesting connections.

Public function Virtual

void

 

Draw

(
    TMap< TSharedRef< SWidget >, FArran...,
    FArrangedChildren& ArrangedNodes
)

Public function Virtual

void

 

ResetIncompatiblePinDrawState

(
    const TSet< TSharedRef< SWidget > >...
)

Public function Virtual

void

 

SetIncompatiblePinDrawState

(
    const TSharedPtr< SGraphPin >& Sta...,
    const TSet< TSharedRef< SWidget > >...
)

Classes

Name

Description

Protected struct

FTimePair

Times for one execution pair within the current graph.

Typedefs

Name

Description

FExecPairingMap

Map of exec-pins to a pair of execution times (holds timing info for the owning-node, paired with a time of execution for the linked node)...

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss