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

#include <DialogueBrowserTreeNode.h>

Inheritance diagram for FDialogueBrowserTreeGraphNode:
[legend]

Public Member Functions

 FDialogueBrowserTreeGraphNode (const FText &InDisplayText, const TSharedPtr< FDialogueBrowserTreeNode > &InParent, const TWeakObjectPtr< const UDialogueGraphNode > &InObject)
 
void AddChild (const TSharedPtr< Self > &ChildNode) override
 
void AddInlineChild (const TSharedPtr< Self > &ChildNode, bool bIsInline=false)
 
void ClearChildren () override
 
void ClearParent ()
 
bool DoesDisplayTextContains (const FString &InSearch, ESearchCase::Type SearchCase=ESearchCase::IgnoreCase)
 
void ExpandAllChildren (const TSharedPtr< STreeView< TSharedPtr< FDialogueBrowserTreeNode > > > &TreeView, bool bRecursive=true)
 
virtual void FilterPathsToNodesThatContainText (const FString &InSearch, TArray< TArray< TSharedPtr< FDialogueBrowserTreeNode > > > &OutNodes)
 
void GetAllNodes (TArray< TSharedPtr< FDialogueBrowserTreeNode > > &OutNodeArray) const
 
EDialogueTreeNodeCategoryType GetCategoryType () const
 
const TArray< TSharedPtr< FDialogueBrowserTreeNode > > & GetChildren () const
 
FText GetDisplayText () const
 
FName GetDisplayTextAsFName () const
 
const TWeakObjectPtr< const UDialogueGraphNode > & GetGraphNode () const
 
const TArray< TSharedPtr< Self > > & GetInlineChildren () const
 
TWeakPtr< FDialogueBrowserTreeNodeGetParent () const
 
virtual UClass * GetParentClass () const
 
virtual FName GetParentParticipantName () const
 
virtual FName GetParentVariableName () const
 
EDialogueTreeNodeTextType GetTextType () const
 
void GetVisibleChildren (TArray< TSharedPtr< FDialogueBrowserTreeNode > > &OutChildren)
 
bool HasChildren () const
 
bool HasInlineChildren () const
 
bool HasParent () const
 
virtual bool IsCategory () const
 
bool IsConditionText () const
 
bool IsCustomEventText () const
 
bool IsDialogueText () const
 
bool IsEdgeNodeText ()
 
bool IsEqual (const Super &Other) override
 
bool IsEventText () const
 
bool IsGraphNodeText () const
 
bool IsLeaf () const
 
bool IsRoot () const
 
virtual bool IsSeparator () const
 
virtual bool IsText () const
 
bool IsVisible () const
 
FReply OnClick () override
 
bool operator== (const Self &Other)
 
virtual void SetChildren (const TArray< TSharedPtr< FDialogueBrowserTreeNode > > &InChildren)
 
void SetDisplayText (const FText &InText)
 
void SetInlineChildren (const TArray< TSharedPtr< Self > > &InChildren)
 
void SetIsVisible (bool InIsVisible)
 
void SetParent (TWeakPtr< FDialogueBrowserTreeNode > InParentNode)
 
void SetTextType (EDialogueTreeNodeTextType InTextType)
 
FString ToString () const
 

Protected Member Functions

bool FilterDoesChildContainText (const TSharedPtr< Self > &Child, const FString &InSearch) override
 
bool FilterIsChildVisible (const TSharedPtr< Self > &GrandChild) override
 
virtual void GetPathToChildThatContainsText (const TSharedPtr< FDialogueBrowserTreeNode > &Child, const FString &InSearch, TArray< TArray< TSharedPtr< FDialogueBrowserTreeNode > > > &OutNodes)
 
void PostBuildPathToTopMostParent (const TSharedPtr< Self > &CurrentParentNode) override
 
void PostFilterPathsToNodes (const TSharedPtr< Self > &Child) override
 

Protected Attributes

bool bIsVisible
 
EDialogueTreeNodeCategoryType CategoryType = EDialogueTreeNodeCategoryType::Default
 
TArray< TSharedPtr< FDialogueBrowserTreeNode > > Children
 
FText DisplayText
 
TWeakObjectPtr< const UDialogueGraphNodeGraphNode
 
TArray< TSharedPtr< Self > > InlineChildren
 
TWeakPtr< FDialogueBrowserTreeNodeParent
 
EDialogueTreeNodeTextType TextType = EDialogueTreeNodeTextType::Default
 

Private Types

typedef FDialogueBrowserTreeGraphNode Self
 
typedef FDialogueBrowserTreeNode Super
 

Detailed Description

Definition at line 427 of file DialogueBrowserTreeNode.h.

Member Typedef Documentation

◆ Self

◆ Super

Constructor & Destructor Documentation

◆ FDialogueBrowserTreeGraphNode()

FDialogueBrowserTreeGraphNode::FDialogueBrowserTreeGraphNode ( const FText & InDisplayText,
const TSharedPtr< FDialogueBrowserTreeNode > & InParent,
const TWeakObjectPtr< const UDialogueGraphNode > & InObject )

Definition at line 212 of file DialogueBrowserTreeNode.cpp.

Member Function Documentation

◆ AddChild()

void FDialogueBrowserTreeNode::AddChild ( const TSharedPtr< Self > & ChildNode)
inlineoverridevirtualinherited

Reimplemented from FDlgTreeViewNode< FDialogueBrowserTreeNode >.

Definition at line 128 of file DialogueBrowserTreeNode.h.

Here is the call graph for this function:

◆ AddInlineChild()

void FDialogueBrowserTreeNode::AddInlineChild ( const TSharedPtr< Self > & ChildNode,
bool bIsInline = false )
inlineinherited

Definition at line 139 of file DialogueBrowserTreeNode.h.

Here is the call graph for this function:

◆ ClearChildren()

void FDialogueBrowserTreeNode::ClearChildren ( )
inlineoverridevirtualinherited

Reimplemented from FDlgTreeViewNode< FDialogueBrowserTreeNode >.

Definition at line 133 of file DialogueBrowserTreeNode.h.

Here is the call graph for this function:

◆ ClearParent()

void FDlgTreeViewNode< FDialogueBrowserTreeNode >::ClearParent ( )
inlineinherited

Definition at line 42 of file DlgTreeViewNode.h.

◆ DoesDisplayTextContains()

bool FDlgTreeViewNode< FDialogueBrowserTreeNode >::DoesDisplayTextContains ( const FString & InSearch,
ESearchCase::Type SearchCase = ESearchCase::IgnoreCase )
inlineinherited

Definition at line 33 of file DlgTreeViewNode.h.

◆ ExpandAllChildren()

void FDlgTreeViewNode< FDialogueBrowserTreeNode >::ExpandAllChildren ( const TSharedPtr< STreeView< TSharedPtr< FDialogueBrowserTreeNode > > > & TreeView,
bool bRecursive = true )
inlineinherited

Takes the tree view and expands its elements for each child.

Parameters
TreeViewThe tree responsible for visualizing this node hierarchy.
bRecursiveDetermines if you want children/descendants to expand their children as well.

Definition at line 93 of file DlgTreeViewNode.h.

◆ FilterDoesChildContainText()

bool FDialogueBrowserTreeNode::FilterDoesChildContainText ( const TSharedPtr< Self > & Child,
const FString & InSearch )
inlineoverrideprotectedvirtualinherited

Called inside GetPathToChildThatContainsText to determine if the child has the text

Reimplemented from FDlgTreeViewNode< FDialogueBrowserTreeNode >.

Definition at line 257 of file DialogueBrowserTreeNode.h.

Here is the call graph for this function:

◆ FilterIsChildVisible()

bool FDialogueBrowserTreeNode::FilterIsChildVisible ( const TSharedPtr< Self > & GrandChild)
inlineoverrideprotectedvirtualinherited

Called inside GetPathToChildThatContainsText after we got the path of the GrandChild

Reimplemented from FDlgTreeViewNode< FDialogueBrowserTreeNode >.

Definition at line 252 of file DialogueBrowserTreeNode.h.

Here is the call graph for this function:

◆ FilterPathsToNodesThatContainText()

virtual void FDlgTreeViewNode< FDialogueBrowserTreeNode >::FilterPathsToNodesThatContainText ( const FString & InSearch,
TArray< TArray< TSharedPtr< FDialogueBrowserTreeNode > > > & OutNodes )
inlinevirtualinherited

Searches the node so that the OutNodes will only contains paths to nodes that contains the specified string.

Parameters
InSearchThe string to search by
OutNodesArray of arrays, each array inside represents a node path that points to the Node that contains the InSearch

Definition at line 136 of file DlgTreeViewNode.h.

◆ GetAllNodes()

void FDlgTreeViewNode< FDialogueBrowserTreeNode >::GetAllNodes ( TArray< TSharedPtr< FDialogueBrowserTreeNode > > & OutNodeArray) const
inlineinherited

Recursively collects all child/grandchild/descendant nodes. Aka Flattened tree.

Parameters
OutNodeArrayThe array to fill out with descendant nodes.

Definition at line 122 of file DlgTreeViewNode.h.

◆ GetCategoryType()

EDialogueTreeNodeCategoryType FDialogueBrowserTreeNode::GetCategoryType ( ) const
inlineinherited

Definition at line 125 of file DialogueBrowserTreeNode.h.

◆ GetChildren()

const TArray< TSharedPtr< FDialogueBrowserTreeNode > > & FDlgTreeViewNode< FDialogueBrowserTreeNode >::GetChildren ( ) const
inlineinherited

Definition at line 46 of file DlgTreeViewNode.h.

◆ GetDisplayText()

FText FDlgTreeViewNode< FDialogueBrowserTreeNode >::GetDisplayText ( ) const
inlineinherited

Definition at line 30 of file DlgTreeViewNode.h.

◆ GetDisplayTextAsFName()

FName FDlgTreeViewNode< FDialogueBrowserTreeNode >::GetDisplayTextAsFName ( ) const
inlineinherited

Definition at line 31 of file DlgTreeViewNode.h.

◆ GetGraphNode()

const TWeakObjectPtr< const UDialogueGraphNode > & FDialogueBrowserTreeGraphNode::GetGraphNode ( ) const
inline

Definition at line 439 of file DialogueBrowserTreeNode.h.

◆ GetInlineChildren()

const TArray< TSharedPtr< Self > > & FDialogueBrowserTreeNode::GetInlineChildren ( ) const
inlineinherited

Definition at line 147 of file DialogueBrowserTreeNode.h.

◆ GetParent()

TWeakPtr< FDialogueBrowserTreeNode > FDlgTreeViewNode< FDialogueBrowserTreeNode >::GetParent ( ) const
inlineinherited

Definition at line 40 of file DlgTreeViewNode.h.

◆ GetParentClass()

UClass * FDialogueBrowserTreeNode::GetParentClass ( ) const
virtualinherited

Gets the Class that this Node belongs to if any. This could be empty in most cases.

Reimplemented in FDialogueBrowserTreeCustomObjectNode.

Definition at line 37 of file DialogueBrowserTreeNode.cpp.

◆ GetParentParticipantName()

FName FDialogueBrowserTreeNode::GetParentParticipantName ( ) const
virtualinherited

Gets the Participant Name that this Node belongs to. This must always return a valid value.

Reimplemented in FDialogueBrowserTreeParticipantNode.

Definition at line 17 of file DialogueBrowserTreeNode.cpp.

Here is the caller graph for this function:

◆ GetParentVariableName()

FName FDialogueBrowserTreeNode::GetParentVariableName ( ) const
virtualinherited

Gets the Variable name that this Node belongs to if any. This could be empty in most cases.

Reimplemented in FDialogueBrowserTreeVariableNode.

Definition at line 27 of file DialogueBrowserTreeNode.cpp.

Here is the caller graph for this function:

◆ GetPathToChildThatContainsText()

virtual void FDlgTreeViewNode< FDialogueBrowserTreeNode >::GetPathToChildThatContainsText ( const TSharedPtr< FDialogueBrowserTreeNode > & Child,
const FString & InSearch,
TArray< TArray< TSharedPtr< FDialogueBrowserTreeNode > > > & OutNodes )
inlineprotectedvirtualinherited

Definition at line 168 of file DlgTreeViewNode.h.

◆ GetTextType()

EDialogueTreeNodeTextType FDialogueBrowserTreeNode::GetTextType ( ) const
inlineinherited

Definition at line 121 of file DialogueBrowserTreeNode.h.

◆ GetVisibleChildren()

void FDlgTreeViewNode< FDialogueBrowserTreeNode >::GetVisibleChildren ( TArray< TSharedPtr< FDialogueBrowserTreeNode > > & OutChildren)
inlineinherited

Definition at line 47 of file DlgTreeViewNode.h.

◆ HasChildren()

bool FDlgTreeViewNode< FDialogueBrowserTreeNode >::HasChildren ( ) const
inlineinherited

Definition at line 45 of file DlgTreeViewNode.h.

◆ HasInlineChildren()

bool FDialogueBrowserTreeNode::HasInlineChildren ( ) const
inlineinherited

Definition at line 146 of file DialogueBrowserTreeNode.h.

◆ HasParent()

bool FDlgTreeViewNode< FDialogueBrowserTreeNode >::HasParent ( ) const
inlineinherited

Definition at line 39 of file DlgTreeViewNode.h.

◆ IsCategory()

virtual bool FDialogueBrowserTreeNode::IsCategory ( ) const
inlinevirtualinherited

◆ IsConditionText()

bool FDialogueBrowserTreeNode::IsConditionText ( ) const
inlineinherited

Definition at line 186 of file DialogueBrowserTreeNode.h.

Here is the call graph for this function:

◆ IsCustomEventText()

bool FDialogueBrowserTreeNode::IsCustomEventText ( ) const
inlineinherited

Definition at line 182 of file DialogueBrowserTreeNode.h.

Here is the call graph for this function:

◆ IsDialogueText()

bool FDialogueBrowserTreeNode::IsDialogueText ( ) const
inlineinherited

Definition at line 161 of file DialogueBrowserTreeNode.h.

Here is the call graph for this function:

◆ IsEdgeNodeText()

bool FDialogueBrowserTreeNode::IsEdgeNodeText ( )
inlineinherited

Definition at line 202 of file DialogueBrowserTreeNode.h.

Here is the call graph for this function:

◆ IsEqual()

bool FDialogueBrowserTreeGraphNode::IsEqual ( const Super & Other)
inlineoverridevirtual

Reimplemented from FDialogueBrowserTreeNode.

Definition at line 442 of file DialogueBrowserTreeNode.h.

Here is the call graph for this function:

◆ IsEventText()

bool FDialogueBrowserTreeNode::IsEventText ( ) const
inlineinherited

Definition at line 178 of file DialogueBrowserTreeNode.h.

Here is the call graph for this function:

◆ IsGraphNodeText()

bool FDialogueBrowserTreeNode::IsGraphNodeText ( ) const
inlineinherited

Definition at line 190 of file DialogueBrowserTreeNode.h.

Here is the call graph for this function:

◆ IsLeaf()

bool FDlgTreeViewNode< FDialogueBrowserTreeNode >::IsLeaf ( ) const
inlineinherited

Is this the leaf node? Aka no children.

Definition at line 85 of file DlgTreeViewNode.h.

◆ IsRoot()

bool FDlgTreeViewNode< FDialogueBrowserTreeNode >::IsRoot ( ) const
inlineinherited

Is this the root node? Aka no parent.

Definition at line 82 of file DlgTreeViewNode.h.

◆ IsSeparator()

virtual bool FDialogueBrowserTreeNode::IsSeparator ( ) const
inlinevirtualinherited

Reimplemented in FDialogueBrowserTreeSeparatorNode.

Definition at line 160 of file DialogueBrowserTreeNode.h.

Here is the caller graph for this function:

◆ IsText()

virtual bool FDialogueBrowserTreeNode::IsText ( ) const
inlinevirtualinherited

Reimplemented in FDialogueBrowserTreeSeparatorNode, FDialogueBrowserTreeCategoryNode, and FDialogueBrowserTreeCategoryParticipantNode.

Definition at line 158 of file DialogueBrowserTreeNode.h.

Here is the caller graph for this function:

◆ IsVisible()

bool FDlgTreeViewNode< FDialogueBrowserTreeNode >::IsVisible ( ) const
inlineinherited

Definition at line 78 of file DlgTreeViewNode.h.

◆ OnClick()

FReply FDialogueBrowserTreeGraphNode::OnClick ( )
overridevirtual

Reimplemented from FDlgTreeViewNode< FDialogueBrowserTreeNode >.

Definition at line 220 of file DialogueBrowserTreeNode.cpp.

Here is the call graph for this function:

◆ operator==()

bool FDialogueBrowserTreeNode::operator== ( const Self & Other)
inlineinherited

Definition at line 226 of file DialogueBrowserTreeNode.h.

Here is the call graph for this function:

◆ PostBuildPathToTopMostParent()

void FDialogueBrowserTreeNode::PostBuildPathToTopMostParent ( const TSharedPtr< Self > & CurrentParentNode)
inlineoverrideprotectedvirtualinherited

Called inside GetPathToChildThatContainsText after we advanced one parent in the path

Reimplemented from FDlgTreeViewNode< FDialogueBrowserTreeNode >.

Definition at line 246 of file DialogueBrowserTreeNode.h.

Here is the call graph for this function:

◆ PostFilterPathsToNodes()

void FDialogueBrowserTreeNode::PostFilterPathsToNodes ( const TSharedPtr< Self > & Child)
inlineoverrideprotectedvirtualinherited

Called inside FilterPathsToNodesThatContainText after we got the path for the current Child.

Reimplemented from FDlgTreeViewNode< FDialogueBrowserTreeNode >.

Definition at line 233 of file DialogueBrowserTreeNode.h.

Here is the call graph for this function:

◆ SetChildren()

virtual void FDlgTreeViewNode< FDialogueBrowserTreeNode >::SetChildren ( const TArray< TSharedPtr< FDialogueBrowserTreeNode > > & InChildren)
inlinevirtualinherited

Definition at line 63 of file DlgTreeViewNode.h.

◆ SetDisplayText()

void FDlgTreeViewNode< FDialogueBrowserTreeNode >::SetDisplayText ( const FText & InText)
inlineinherited

Definition at line 32 of file DlgTreeViewNode.h.

◆ SetInlineChildren()

void FDialogueBrowserTreeNode::SetInlineChildren ( const TArray< TSharedPtr< Self > > & InChildren)
inlineinherited

Definition at line 148 of file DialogueBrowserTreeNode.h.

◆ SetIsVisible()

void FDlgTreeViewNode< FDialogueBrowserTreeNode >::SetIsVisible ( bool InIsVisible)
inlineinherited

Definition at line 79 of file DlgTreeViewNode.h.

◆ SetParent()

void FDlgTreeViewNode< FDialogueBrowserTreeNode >::SetParent ( TWeakPtr< FDialogueBrowserTreeNode > InParentNode)
inlineinherited

Definition at line 41 of file DlgTreeViewNode.h.

◆ SetTextType()

void FDialogueBrowserTreeNode::SetTextType ( EDialogueTreeNodeTextType InTextType)
inlineinherited

Definition at line 122 of file DialogueBrowserTreeNode.h.

◆ ToString()

FString FDialogueBrowserTreeNode::ToString ( ) const
inherited

Definition at line 47 of file DialogueBrowserTreeNode.cpp.

Member Data Documentation

◆ bIsVisible

bool FDlgTreeViewNode< FDialogueBrowserTreeNode >::bIsVisible
protectedinherited

Is this node displayed?

Definition at line 226 of file DlgTreeViewNode.h.

◆ CategoryType

EDialogueTreeNodeCategoryType FDialogueBrowserTreeNode::CategoryType = EDialogueTreeNodeCategoryType::Default
protectedinherited

Definition at line 264 of file DialogueBrowserTreeNode.h.

◆ Children

TArray<TSharedPtr<FDialogueBrowserTreeNode > > FDlgTreeViewNode< FDialogueBrowserTreeNode >::Children
protectedinherited

Any children listed under this node.

Definition at line 217 of file DlgTreeViewNode.h.

◆ DisplayText

FText FDlgTreeViewNode< FDialogueBrowserTreeNode >::DisplayText
protectedinherited

The displayed text for this item.

Definition at line 223 of file DlgTreeViewNode.h.

◆ GraphNode

TWeakObjectPtr<const UDialogueGraphNode> FDialogueBrowserTreeGraphNode::GraphNode
protected

Definition at line 453 of file DialogueBrowserTreeNode.h.

◆ InlineChildren

TArray<TSharedPtr<Self> > FDialogueBrowserTreeNode::InlineChildren
protectedinherited

Definition at line 270 of file DialogueBrowserTreeNode.h.

◆ Parent

TWeakPtr<FDialogueBrowserTreeNode > FDlgTreeViewNode< FDialogueBrowserTreeNode >::Parent
protectedinherited

The node that this is a direct child of (empty if this is a root node)

Definition at line 220 of file DlgTreeViewNode.h.

◆ TextType

EDialogueTreeNodeTextType FDialogueBrowserTreeNode::TextType = EDialogueTreeNodeTextType::Default
protectedinherited

Definition at line 267 of file DialogueBrowserTreeNode.h.


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