Navigation
API > API/Editor > API/Editor/GraphEditor
Inheritance Hierarchy
- TSharedFromThis
- FGraphActionNode
References
| Module | GraphEditor |
| Header | /Engine/Source/Editor/GraphEditor/Public/GraphActionNode.h |
| Include | #include "GraphActionNode.h" |
Syntax
struct FGraphActionNode : public TSharedFromThis< FGraphActionNode >
Remarks
Utility class for building menus of graph actions.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TSharedPtr< FEdGraphSchemaAction > > const | Actions | A set of actions to execute when this node is picked from a menu | |
| TMap< FString, TSharedPtr< FGraphActionNode > > | CategoryNodes | Lookup table for category nodes, used to speed up menu construction | |
| TArray< TSharedPtr< FGraphActionNode > > | Children | ||
| int32 const | Grouping | Identifies the menu group that this node belongs to (defaults to zero) | |
| int32 const | SectionID | Identifies the named section that this node belongs to, if any (defaults to INVALID_SECTION_ID) |
Constructors
No constructors are accessible with public or protected access.
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< FGraphActionNode > | AddChild
(
FGraphActionListBuilderBase::ActionGroup const& ActionSet |
Inserts a new action node (and any accompanying category nodes) based off the provided ActionSet. | |
| void | AddChildAlphabetical
(
FGraphActionListBuilderBase::ActionGroup const& ActionSet |
Inserts a new action node (and any required category nodes) based off the provided ActionSet. | |
| TSharedPtr< FGraphActionNode > | AddSection
(
int32 Grouping, |
||
| bool | Executes the node's RenameRequestEvent if it is bound. | ||
| void | Clears all children (not recursively... the TSharedPtrs should clean up appropriately). | ||
| void | ExpandAllChildren
(
TSharedPtr< STreeView< TSharedPtr< FGraphActionNode > > > TreeView, |
Takes the tree view and expands its elements for each child. | |
| void | GetAllNodes
(
TArray< TSharedPtr< FGraphActionNode > >& OutNodeArray |
Recursively collects all child/grandchild/decendent nodes. | |
| FText | Walks the node chain backwards, constructing a category path (delimited by '|' characters). | ||
| FText const & | Retrieves this node's display name (for category and action nodes). | ||
| void | GetLeafNodes
(
TArray< TSharedPtr< FGraphActionNode > >& OutLeafArray |
Recursively collects all decendent action/separator nodes (leaves out branching category-nodes). | |
| TWeakPtr< FGraphActionNode > | Returns a WeakPtr to the Parent Node | ||
| TSharedPtr< FEdGraphSchemaAction > | Looks through this node's Actions array, and returns the first valid action it finds. | ||
| bool | Checks to see if this node contains at least one valid action. | ||
| bool | IsActionNode () |
||
| bool | |||
| bool | |||
| bool | Sometimes a call to BroadcastRenameRequest() is made before the RenameRequestEvent has been bound. | ||
| bool | IsRootNode () |
Query to determine this node's type (there are five distinguishable node types: root, section heading, category, action, & group-divider). | |
| bool | |||
| bool | IsSeparator () |
Determines if this node is a menu separator of some kind (either a "group-divider" or a "section heading"). | |
| TSharedPtr< FGraphActionNode > | NewRootNode () |
Static allocator for a new root node (so external users have a starting point to build graph action trees from). | |
| FOnRenameRequestActionNode & | Accessor to the node's RenameRequestEvent (for binding purposes). | ||
| void | SortChildren
(
bool bAlphabetically, |
Sorts all child nodes by section, group, and type (additionally, can sort alphabetically if wanted). |
Constants
| Name | Description |
|---|---|
| INVALID_SECTION_ID |