Navigation
API > API/Editor > API/Editor/GraphEditor
Inheritance Hierarchy
- FConnectionDrawingPolicy
- FAIGraphConnectionDrawingPolicy
- FConversationGraphConnectionDrawingPolicy
- FDataflowConnectionDrawingPolicy
- FKismetConnectionDrawingPolicy
- FRigVMEdGraphConnectionDrawingPolicy
- FNiagaraConnectionDrawingPolicy
- FSoundSubmixGraphConnectionDrawingPolicy
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 FSlateBrush * | ArrowImage | ||
| int32 | ArrowLayerID | ||
| FVector2D | ArrowRadius | ||
| const FSlateBrush * | BubbleImage | ||
| const FSlateRect & | ClippingRect | ||
| FSlateWindowElementList & | DrawElementsList | ||
| float | HoverDeemphasisDarkFraction | ||
| TSet< FEdGraphPinReference > | HoveredPins | ||
| double | LastHoverTimeEvent | ||
| FVector2D | LocalMousePosition | ||
| const FSlateBrush * | MidpointImage | ||
| FVector2D | MidpointRadius | ||
| TMap< TSharedRef< SWidget >, FArrangedWidget > * | PinGeometries | ||
| TMap< UEdGraphPin *, TSharedPtr< SGraphPin > > | PinToPinWidgetMap | ||
| TArray< FRelinkConnection > | RelinkConnections | List of currently relinked connections. | |
| TArray< UEdGraphNode * > | SelectedGraphNodes | Selected nodes in the graph panel. | |
| const UGraphEditorSettings * | Settings | ||
| FGraphSplineOverlapResult | SplineOverlapResult | ||
| int32 | WireLayerID | ||
| float | ZoomFactor |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FConnectionDrawingPolicy
(
int32 InBackLayerID, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyHoverDeemphasis
(
UEdGraphPin* OutputPin, |
||
| void | BuildPinToPinWidgetMap
(
TMap< TSharedRef< SWidget >, FArrangedWidget >& InPinGeometries |
Helper function used by Draw(). Called before DrawPinGeometries to populate PinToPinWidgetMap. | |
| FVector2D | ComputeSplineTangent
(
const FVector2D& Start, |
||
| void | DetermineLinkGeometry
(
FArrangedChildren& ArrangedNodes, |
||
| void | DetermineWiringStyle
(
UEdGraphPin* OutputPin, |
Give specific editor modes a chance to highlight this connection or darken non-interesting connections. | |
| void | Draw
(
TMap< TSharedRef< SWidget >, FArrangedWidget >& InPinGeometries, |
||
| void | DrawConnection
(
int32 LayerId, |
||
| void | DrawPinGeometries
(
TMap< TSharedRef< SWidget >, FArrangedWidget >& InPinGeometries, |
Helper function used by Draw(). Iterates over the pin geometries, drawing connections between them. | |
| void | DrawPreviewConnector
(
const FGeometry& PinGeometry, |
||
| void | DrawSplineWithArrow
(
const FVector2D& StartPoint, |
||
| void | DrawSplineWithArrow
(
const FGeometry& StartGeom, |
||
| bool | IsConnectionCulled
(
const FArrangedWidget& StartLink, |
||
| float | MakeSplineReparamTable
(
const FVector2D& P0, |
Util to make a 'distance->alpha' table and also return spline length | |
| void | ResetIncompatiblePinDrawState
(
const TSet< TSharedRef< SWidget > >& VisiblePins |
||
| void | SetHoveredPins
(
const TSet< FEdGraphPinReference >& InHoveredPins, |
Update the drawing policy with the set of hovered pins (which can be empty) | |
| void | SetIncompatiblePinDrawState
(
const TSharedPtr< SGraphPin >& StartPin, |
||
| 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 >& Connections |
Set the list of currently relinked connections. | |
| void | SetSelectedNodes
(
const TArray< UEdGraphNode* >& InSelectedNodes |
Set the selected nodes from the graph panel. | |
| bool | Choose whether we want to cache the pins draw state to avoid resetting it for every tick. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FRelinkConnection | Handle for a currently relinked connection. |