FKismetConnectionDrawingPolicy

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

Unreal Engine C++ API Reference > Editor > GraphEditor

Inheritance Hierarchy

References

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

Syntax

class FKismetConnectionDrawingPolicy : public [FConnectionDrawingPolicy](API\Editor\GraphEditor\FConnectionDrawingPolicy)  

Remarks

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

Variables

Type Name Description
FLinearColor AttackColor  
float AttackHoldPeriod  
float AttackWireThickness  
double CurrentTime  
float DecayExponent  
float DecayPeriod  
float DefaultDataWireThickness  
float DefaultExecutionWireThickness  
UEdGraph * GraphObj  
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.
double LatestTimeDiscovered  
TMap< UEdGraphN... PredecessorPins Map of executed nodes, and the execution pins that lead to them being ran.
FLinearColor ReleaseColor  
float ReleaseExponent  
float ReleasePeriod  
float ReleaseWireThickness  
FLinearColor SustainColor  
float SustainHoldPeriod  
float SustainWireThickness  
float TracePositionBonusPeriod  
float TracePositionExponent  

Constructors

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

Functions

Type Name Description
bool AreNodesGraphicallySequential ( UEdGraphNode* InputNode, UEdGraphNode* OutputNode ) Checks that the specified nodes are connected in the graph directly by an exec pin.
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).
void BuildExecutionRoadmap ()  
void CalculateEnvelopeAlphas ( double ExecutionTime, float& AttackAlpha, float& SustainAlpha )  
bool CanBuildRoadmap ()  
bool CanBuildRoadmap ( UBlueprint* TargetBP ) Determines if the given Blueprint context has a valid object for debugging.
void DetermineStyleOfExecWire ( float& Thickness, FLinearColor& WireColor, bool& bDrawBubbles, const FTimePair& Times )  
bool FindPinCenter ( UEdGraphPin* Pin, FVector2D& OutCenter )  
bool GetAverageConnectedPosition ( UK2Node_Knot* Knot, EEdGraphPinDirection Direction, FVector2D& OutPos )  
UBlueprint &... GetTargetBlueprint () Determines the target Blueprint for querying the active debugging context.
bool ShouldChangeTangentForKnot ( UK2Node_Knot* Knot )  
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

Type Name Description
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 ResetIncompatiblePinDrawState ( const TSet< TSharedRef< SWidget > >... )  
void SetIncompatiblePinDrawState ( const TSharedPtr< SGraphPin >& Sta..., const TSet< TSharedRef< SWidget > >... )  

Classes

Type 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)...

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library