A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
UDialogueGraphNode_Edge Class Reference

UCLASS() More...

#include <DialogueGraphNode_Edge.h>

Inheritance diagram for UDialogueGraphNode_Edge:
[legend]

Public Member Functions

void AllocateDefaultPins () override
 
bool CanCreateUnderSpecifiedSchema (const UEdGraphSchema *Schema) const override
 
bool CanDuplicateNode () const override
 
virtual bool CanHaveInputConnections () const
 
virtual bool CanHaveOutputConnections () const
 
bool CanSplitPin (const UEdGraphPin *Pin) const override
 
bool CanUserDeleteNode () const override
 
virtual void CheckAll () const
 
void ClearCompilerMessage ()
 
void CreateConnections (UDialogueGraphNode *ParentNode, UDialogueGraphNode *ChildNode)
 
UDialogueGraphNodeGetChildNode () const
 
UDlgDialogueGetDialogue () const
 
FDlgEdgeGetDialogueEdge ()
 
const FDlgEdgeGetDialogueEdge () const
 
UDialogueGraphGetDialogueGraph () const
 
const UDialogueGraphSchemaGetDialogueGraphSchema () const
 
FString GetDocumentationLink () const override
 
FLinearColor GetEdgeColor (bool bIsHovered) const
 
FSlateIcon GetIconAndTint (FLinearColor &OutColor) const override
 
UEdGraphPin * GetInputPin () const
 
FLinearColor GetNodeBackgroundColor () const override
 
FText GetNodeTitle (ENodeTitleType::Type TitleType) const override
 
FLinearColor GetNodeTitleColor () const override
 
TSharedPtr< SGraphNodeGetNodeWidget () const
 
UEdGraphPin * GetOutputPin () const
 
UDialogueGraphNodeGetParentNode () const
 
virtual FIntPoint GetPosition () const
 
FText GetTooltipText () const override
 
bool HasChildNode () const
 
bool HasConditions () const
 
bool HasInputPin () const
 
virtual bool HasOutputConnectionToNode (const UEdGraphNode *TargetNode) const
 
bool HasOutputPin () const
 
bool HasParentNode () const
 
bool IsPrimaryEdge () const
 
bool Modify (bool bAlwaysMarkDirty=true) override
 
void PinConnectionListChanged (UEdGraphPin *Pin) override
 
virtual void PostCopyNode ()
 
void PostDuplicate (bool bDuplicateForPIE) override
 
void PostEditChangeProperty (FPropertyChangedEvent &PropertyChangedEvent) override
 
void PostEditImport () override
 
void PostLoad () override
 
void PostPasteNode () override
 
void PostPlacedNewNode () override
 
void PrepareForCopying () override
 
void ReconstructNode () override
 
void RemovePinAt (int32 PinIndex, EEdGraphPinDirection PinDirection) override
 
void SetCompilerWarningMessage (FString Message)
 
void SetDialogueEdge (const FDlgEdge &InEdge)
 
void SetDialogueEdgeTargetIndex (int32 InIndex)
 
void SetDialogueEdgeText (const FText &InText)
 
void SetIsPrimaryEdge (bool bValue)
 
virtual void SetPosition (int32 X, int32 Y)
 
bool ShouldDrawEdge () const
 
bool ShowPaletteIconOnNode () const override
 
bool SuperModify (bool bAlwaysMarkDirty=true)
 

Protected Member Functions

void CreateInputPin () override
 
void CreateOutputPin () override
 
virtual void OnDialoguePropertyChanged (const FPropertyChangedEvent &PropertyChangedEvent)
 
virtual void RegisterListeners ()
 

Static Protected Attributes

static constexpr int32 INDEX_PIN_Input = 0
 
static constexpr int32 INDEX_PIN_Output = 1
 

Private Member Functions

 GENERATED_BODY ()
 
FDlgEdgeGetMutableDialogueEdgeFromParentNode () const
 

Private Attributes

bool bIsPrimaryEdge = true
 UPROPERTY()
 
FDlgEdge DialogueEdge
 UPROPERTY(EditAnywhere, Category = DialogueGraphNode, Meta = (ShowOnlyInnerProperties))
 

Detailed Description

UCLASS()

Represents the graph node for edges, corresponds to the runtime FDlgEdge. Allows us to have selectable edges. This class has an additional constraint over the base class UDialogueGraphNode_Base such that the input and output pin have only one connection (aka Pin.LinkedTo.Num() == 1 at all times) otherwise this does not make sense to simulate an Edge.

Definition at line 21 of file DialogueGraphNode_Edge.h.

Member Function Documentation

◆ AllocateDefaultPins()

void UDialogueGraphNode_Edge::AllocateDefaultPins ( )
override

Allocate default pins for a given node, based only the NodeType, which should already be filled in.

Definition at line 56 of file DialogueGraphNode_Edge.cpp.

Here is the call graph for this function:

◆ CanCreateUnderSpecifiedSchema()

bool UDialogueGraphNode_Base::CanCreateUnderSpecifiedSchema ( const UEdGraphSchema * Schema) const
inlineoverrideinherited

Determine if this node can be created under the specified schema

Definition at line 79 of file DialogueGraphNode_Base.h.

◆ CanDuplicateNode()

bool UDialogueGraphNode_Base::CanDuplicateNode ( ) const
inlineoverrideinherited

Whether or not this node can be safely duplicated (via copy/paste, etc...) in the graph

Definition at line 64 of file DialogueGraphNode_Base.h.

◆ CanHaveInputConnections()

virtual bool UDialogueGraphNode_Base::CanHaveInputConnections ( ) const
inlinevirtualinherited

Checks whether an input connection can be added to this node

Reimplemented in UDialogueGraphNode.

Definition at line 112 of file DialogueGraphNode_Base.h.

Here is the caller graph for this function:

◆ CanHaveOutputConnections()

virtual bool UDialogueGraphNode_Base::CanHaveOutputConnections ( ) const
inlinevirtualinherited

Checks whether an output connection can be added from this node

Reimplemented in UDialogueGraphNode.

Definition at line 115 of file DialogueGraphNode_Base.h.

Here is the caller graph for this function:

◆ CanSplitPin()

bool UDialogueGraphNode_Base::CanSplitPin ( const UEdGraphPin * Pin) const
inlineoverrideinherited

Whether or not struct pins belonging to this node should be allowed to be split or not.

Definition at line 76 of file DialogueGraphNode_Base.h.

◆ CanUserDeleteNode()

bool UDialogueGraphNode_Base::CanUserDeleteNode ( ) const
inlineoverrideinherited

Whether or not this node can be deleted by user action

Definition at line 67 of file DialogueGraphNode_Base.h.

◆ CheckAll()

virtual void UDialogueGraphNode_Base::CheckAll ( ) const
inlinevirtualinherited

Performs all checks

Reimplemented in UDialogueGraphNode.

Definition at line 121 of file DialogueGraphNode_Base.h.

Here is the call graph for this function:

◆ ClearCompilerMessage()

void UDialogueGraphNode_Base::ClearCompilerMessage ( )
inherited

Clears the compiler messages on this node.

Definition at line 126 of file DialogueGraphNode_Base.cpp.

Here is the caller graph for this function:

◆ CreateConnections()

void UDialogueGraphNode_Edge::CreateConnections ( UDialogueGraphNode * ParentNode,
UDialogueGraphNode * ChildNode )

Creates a connection between the two provided nodes

Definition at line 141 of file DialogueGraphNode_Edge.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateInputPin()

void UDialogueGraphNode_Edge::CreateInputPin ( )
inlineoverrideprotectedvirtual

Creates the input pin for this node.

Reimplemented from UDialogueGraphNode_Base.

Definition at line 177 of file DialogueGraphNode_Edge.h.

◆ CreateOutputPin()

void UDialogueGraphNode_Edge::CreateOutputPin ( )
inlineoverrideprotectedvirtual

Creates the output pin for this node.

Reimplemented from UDialogueGraphNode_Base.

Definition at line 187 of file DialogueGraphNode_Edge.h.

◆ GENERATED_BODY()

UDialogueGraphNode_Edge::GENERATED_BODY ( )
private

◆ GetChildNode()

UDialogueGraphNode * UDialogueGraphNode_Edge::GetChildNode ( ) const
inline

Gets the child node that is connected from the output pin.

Definition at line 114 of file DialogueGraphNode_Edge.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetDialogue()

UDlgDialogue * UDialogueGraphNode_Base::GetDialogue ( ) const
inlineinherited

Definition at line 178 of file DialogueGraphNode_Base.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetDialogueEdge() [1/2]

FDlgEdge & UDialogueGraphNode_Edge::GetDialogueEdge ( )
inline

Definition at line 126 of file DialogueGraphNode_Edge.h.

◆ GetDialogueEdge() [2/2]

const FDlgEdge & UDialogueGraphNode_Edge::GetDialogueEdge ( ) const
inline

Gets the corresponding Dialogue Edge of this Node as a const.

Definition at line 125 of file DialogueGraphNode_Edge.h.

Here is the caller graph for this function:

◆ GetDialogueGraph()

UDialogueGraph * UDialogueGraphNode_Base::GetDialogueGraph ( ) const
inlineinherited

Definition at line 175 of file DialogueGraphNode_Base.h.

Here is the caller graph for this function:

◆ GetDialogueGraphSchema()

const UDialogueGraphSchema * UDialogueGraphNode_Base::GetDialogueGraphSchema ( ) const
inlineinherited

Helper method to get directly the Dialogue Graph Schema

Definition at line 182 of file DialogueGraphNode_Base.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetDocumentationLink()

FString UDialogueGraphNode_Base::GetDocumentationLink ( ) const
inlineoverrideinherited

Returns the link used for external documentation for the graph node.

Definition at line 85 of file DialogueGraphNode_Base.h.

◆ GetEdgeColor()

FLinearColor UDialogueGraphNode_Edge::GetEdgeColor ( bool bIsHovered) const

Gets the current edge color.

Definition at line 178 of file DialogueGraphNode_Edge.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetIconAndTint()

FSlateIcon UDialogueGraphNode_Edge::GetIconAndTint ( FLinearColor & OutColor) const
inlineoverride
Returns
Icon to use in menu or on node

Definition at line 68 of file DialogueGraphNode_Edge.h.

Here is the call graph for this function:

◆ GetInputPin()

UEdGraphPin * UDialogueGraphNode_Base::GetInputPin ( ) const
inlineinherited

Definition at line 161 of file DialogueGraphNode_Base.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMutableDialogueEdgeFromParentNode()

FDlgEdge * UDialogueGraphNode_Edge::GetMutableDialogueEdgeFromParentNode ( ) const
private

Gets the corresponding FDlgEdge that this Node actually represents from the ParentNode

Definition at line 202 of file DialogueGraphNode_Edge.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNodeBackgroundColor()

FLinearColor UDialogueGraphNode_Edge::GetNodeBackgroundColor ( ) const
inlineoverridevirtual

Gets the background color of this node.

Reimplemented from UDialogueGraphNode_Base.

Definition at line 77 of file DialogueGraphNode_Edge.h.

Here is the caller graph for this function:

◆ GetNodeTitle()

FText UDialogueGraphNode_Edge::GetNodeTitle ( ENodeTitleType::Type TitleType) const
override

Gets the name of this node, shown in title bar

Definition at line 63 of file DialogueGraphNode_Edge.cpp.

◆ GetNodeTitleColor()

FLinearColor UDialogueGraphNode_Base::GetNodeTitleColor ( ) const
inlineoverrideinherited

Gets the draw color of a node's title bar.

Definition at line 91 of file DialogueGraphNode_Base.h.

Here is the call graph for this function:

◆ GetNodeWidget()

TSharedPtr< SGraphNode > UDialogueGraphNode_Base::GetNodeWidget ( ) const
inlineinherited

Widget representing this node if it exists

Definition at line 185 of file DialogueGraphNode_Base.h.

Here is the caller graph for this function:

◆ GetOutputPin()

UEdGraphPin * UDialogueGraphNode_Base::GetOutputPin ( ) const
inlineinherited

Definition at line 168 of file DialogueGraphNode_Base.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetParentNode()

UDialogueGraphNode * UDialogueGraphNode_Edge::GetParentNode ( ) const
inline

Gets the parent node that is connected to the input pin.

Definition at line 107 of file DialogueGraphNode_Edge.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetPosition()

virtual FIntPoint UDialogueGraphNode_Base::GetPosition ( ) const
inlinevirtualinherited

Gets the position in the Graph canvas of this node.

Definition at line 130 of file DialogueGraphNode_Base.h.

Here is the caller graph for this function:

◆ GetTooltipText()

FText UDialogueGraphNode_Edge::GetTooltipText ( ) const
override

Gets the tooltip to display when over the node

Definition at line 68 of file DialogueGraphNode_Edge.cpp.

Here is the call graph for this function:

◆ HasChildNode()

bool UDialogueGraphNode_Edge::HasChildNode ( ) const
inline

Does this edge has a child edge?

Definition at line 94 of file DialogueGraphNode_Edge.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HasConditions()

bool UDialogueGraphNode_Edge::HasConditions ( ) const
inline

Tells us if this edge has any conditions set.

Definition at line 141 of file DialogueGraphNode_Edge.h.

Here is the caller graph for this function:

◆ HasInputPin()

bool UDialogueGraphNode_Base::HasInputPin ( ) const
inlineinherited

Is the Input pin initialized?

Definition at line 147 of file DialogueGraphNode_Base.h.

Here is the caller graph for this function:

◆ HasOutputConnectionToNode()

bool UDialogueGraphNode_Base::HasOutputConnectionToNode ( const UEdGraphNode * TargetNode) const
virtualinherited

Checks if this node has a output connection to the TargetNode.

Reimplemented in UDialogueGraphNode.

Definition at line 113 of file DialogueGraphNode_Base.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HasOutputPin()

bool UDialogueGraphNode_Base::HasOutputPin ( ) const
inlineinherited

Is the Output pin initialized?

Definition at line 154 of file DialogueGraphNode_Base.h.

Here is the caller graph for this function:

◆ HasParentNode()

bool UDialogueGraphNode_Edge::HasParentNode ( ) const
inline

Does this edge have a parent node?

Definition at line 81 of file DialogueGraphNode_Edge.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsPrimaryEdge()

bool UDialogueGraphNode_Edge::IsPrimaryEdge ( ) const
inline

Is this node a primary edge?

Definition at line 147 of file DialogueGraphNode_Edge.h.

Here is the caller graph for this function:

◆ Modify()

bool UDialogueGraphNode_Edge::Modify ( bool bAlwaysMarkDirty = true)
override

Note that the object will be modified. If we are currently recording into the transaction buffer (undo/redo), save a copy of this object into the buffer and marks the package as needing to be saved.

Parameters
bAlwaysMarkDirtyif true, marks the package dirty even if we aren't currently recording an active undo/redo transaction
Returns
true if the object was saved to the transaction buffer

Definition at line 35 of file DialogueGraphNode_Edge.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnDialoguePropertyChanged()

virtual void UDialogueGraphNode_Base::OnDialoguePropertyChanged ( const FPropertyChangedEvent & PropertyChangedEvent)
inlineprotectedvirtualinherited

This function is called after one of the properties of the Dialogue are changed.

Reimplemented in UDialogueGraphNode_Root.

Definition at line 196 of file DialogueGraphNode_Base.h.

Here is the caller graph for this function:

◆ PinConnectionListChanged()

void UDialogueGraphNode_Edge::PinConnectionListChanged ( UEdGraphPin * Pin)
override

Called when the connection list of one of the pins of this node is changed in the editor

Definition at line 75 of file DialogueGraphNode_Edge.cpp.

Here is the call graph for this function:

◆ PostCopyNode()

virtual void UDialogueGraphNode_Base::PostCopyNode ( )
inlinevirtualinherited

Perform any fixups (deep copies of associated data, etc...) necessary after a node has been copied in the editor.

Reimplemented in UDialogueGraphNode.

Definition at line 106 of file DialogueGraphNode_Base.h.

◆ PostDuplicate()

void UDialogueGraphNode_Base::PostDuplicate ( bool bDuplicateForPIE)
overrideinherited

Called after duplication & serialization and before PostLoad. Used to e.g. make sure UStaticMesh's UModel gets copied as well. Note: NOT called on components on actor duplication (alt-drag or copy-paste). Use PostEditImport as well to cover that case.

Definition at line 14 of file DialogueGraphNode_Base.cpp.

◆ PostEditChangeProperty()

void UDialogueGraphNode_Edge::PostEditChangeProperty ( FPropertyChangedEvent & PropertyChangedEvent)
override

Called when a property on this object has been modified externally

Parameters
PropertyChangedEventthe property that was modified

Definition at line 10 of file DialogueGraphNode_Edge.cpp.

Here is the call graph for this function:

◆ PostEditImport()

void UDialogueGraphNode_Base::PostEditImport ( )
overrideinherited

Called after importing property values for this object (paste, duplicate or .t3d import) Allow the object to perform any cleanup for properties which shouldn't be duplicated or are unsupported by the script serialization

Definition at line 24 of file DialogueGraphNode_Base.cpp.

Here is the call graph for this function:

◆ PostLoad()

void UDialogueGraphNode_Base::PostLoad ( )
overrideinherited

Do any object-specific cleanup required immediately after loading an object, and immediately after any undo/redo.

Definition at line 8 of file DialogueGraphNode_Base.cpp.

Here is the call graph for this function:

◆ PostPasteNode()

void UDialogueGraphNode_Edge::PostPasteNode ( )
override

Perform any fixups (deep copies of associated data, etc...) necessary after a node has been pasted in the editor

Definition at line 122 of file DialogueGraphNode_Edge.cpp.

◆ PostPlacedNewNode()

void UDialogueGraphNode_Base::PostPlacedNewNode ( )
inlineoverrideinherited

A chance to initialize a new node; called just once when a new node is created, before AutowireNewNode or AllocateDefaultPins is called. This method is not called when a node is reconstructed, etc...

Definition at line 55 of file DialogueGraphNode_Base.h.

Here is the call graph for this function:

◆ PrepareForCopying()

void UDialogueGraphNode_Base::PrepareForCopying ( )
inlineoverrideinherited

Perform any steps necessary prior to copying a node into the paste buffer

Definition at line 70 of file DialogueGraphNode_Base.h.

◆ ReconstructNode()

void UDialogueGraphNode_Base::ReconstructNode ( )
overrideinherited

Refresh the connectors on a node, preserving as many connections as it can.

Definition at line 43 of file DialogueGraphNode_Base.cpp.

Here is the call graph for this function:

◆ RegisterListeners()

void UDialogueGraphNode_Base::RegisterListeners ( )
protectedvirtualinherited

Registers all the listener this class listens to.

Reimplemented in UDialogueGraphNode.

Definition at line 140 of file DialogueGraphNode_Base.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RemovePinAt()

void UDialogueGraphNode_Base::RemovePinAt ( int32 PinIndex,
EEdGraphPinDirection PinDirection )
inlineoverrideinherited

IGNORED. Removes the specified pin from the node, preserving remaining pin ordering.

Definition at line 73 of file DialogueGraphNode_Base.h.

◆ SetCompilerWarningMessage()

void UDialogueGraphNode_Base::SetCompilerWarningMessage ( FString Message)
inherited

Sets a compiler message of type warning.

Definition at line 133 of file DialogueGraphNode_Base.cpp.

Here is the caller graph for this function:

◆ SetDialogueEdge()

void UDialogueGraphNode_Edge::SetDialogueEdge ( const FDlgEdge & InEdge)
inline

Sets the corresponding Dialogue Edge of this Node.

Definition at line 129 of file DialogueGraphNode_Edge.h.

Here is the caller graph for this function:

◆ SetDialogueEdgeTargetIndex()

void UDialogueGraphNode_Edge::SetDialogueEdgeTargetIndex ( int32 InIndex)
inline

Sets the DialogueEdge.TargetIndex

Definition at line 132 of file DialogueGraphNode_Edge.h.

◆ SetDialogueEdgeText()

void UDialogueGraphNode_Edge::SetDialogueEdgeText ( const FText & InText)
inline

Sets the DialogueEdge.Text

Definition at line 135 of file DialogueGraphNode_Edge.h.

Here is the call graph for this function:

◆ SetIsPrimaryEdge()

void UDialogueGraphNode_Edge::SetIsPrimaryEdge ( bool bValue)
inline

Sets the primary edge status of this Node.

Definition at line 150 of file DialogueGraphNode_Edge.h.

◆ SetPosition()

virtual void UDialogueGraphNode_Base::SetPosition ( int32 X,
int32 Y )
inlinevirtualinherited

Sets the position in the Graph canvas of this node.

Definition at line 133 of file DialogueGraphNode_Base.h.

Here is the caller graph for this function:

◆ ShouldDrawEdge()

bool UDialogueGraphNode_Edge::ShouldDrawEdge ( ) const
inline

Should this edge be drawn?

Definition at line 153 of file DialogueGraphNode_Edge.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ShowPaletteIconOnNode()

bool UDialogueGraphNode_Base::ShowPaletteIconOnNode ( ) const
inlineoverrideinherited

Should we show the Palette Icon for this node on the node title

Definition at line 88 of file DialogueGraphNode_Base.h.

◆ SuperModify()

bool UDialogueGraphNode_Edge::SuperModify ( bool bAlwaysMarkDirty = true)
inline

Same as the above method but it only calls the base class. Useful to not make an infinite loop when Modify is called from the ParentNode

Definition at line 49 of file DialogueGraphNode_Edge.h.

Member Data Documentation

◆ bIsPrimaryEdge

bool UDialogueGraphNode_Edge::bIsPrimaryEdge = true
private

UPROPERTY()

Is this a primary edge? Aka does this edge lead to a unique path to the ChildNode. This is only set after the graph is compiled.

Definition at line 216 of file DialogueGraphNode_Edge.h.

◆ DialogueEdge

FDlgEdge UDialogueGraphNode_Edge::DialogueEdge
privateEditAnywhere

UPROPERTY(EditAnywhere, Category = DialogueGraphNode, Meta = (ShowOnlyInnerProperties))

The copy Dialogue Edge corresponding to this graph node. This belongs to the the Node of the Input Pin (GetParentNode)

Definition at line 207 of file DialogueGraphNode_Edge.h.

◆ INDEX_PIN_Input

constexpr int32 UDialogueGraphNode_Base::INDEX_PIN_Input = 0
staticconstexprprotectedinherited

Definition at line 203 of file DialogueGraphNode_Base.h.

◆ INDEX_PIN_Output

constexpr int32 UDialogueGraphNode_Base::INDEX_PIN_Output = 1
staticconstexprprotectedinherited

Definition at line 204 of file DialogueGraphNode_Base.h.


The documentation for this class was generated from the following files: