Navigation
API > API/Editor > API/Editor/GraphEditor
Inheritance Hierarchy
- TSharedFromThis< FGraphActionNode >
- 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 | |
---|---|---|---|
![]() |
TSharedPtr< FEdGraphSchemaAction > const | Action | An action to execute when this node is picked from a menu |
![]() |
TArray< TSharedPtr< FEdGraphSchemaAction > > const | Actions | |
![]() |
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
Type | Name | Description | |
---|---|---|---|
![]() |
PRAGMA_DISABLE_DEPRECATION_WARNINGS | FGraphActionNode
(
const FGraphActionNode& Node |
We need to declare our copy constructors so that we can disable deprecation warnings around them for ClangEditor - when all of the deprecated members are deleted we can remove these: |
![]() |
FGraphActionNode
(
FGraphActionNode&& Node |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
PRAGMA_DISABLE_DEPRECATION_WARNINGS TSharedPtr< FGraphActionNode > | AddChild
(
FGraphActionListBuilderBase::ActionGroup const& ActionSet |
|
![]() |
TSharedPtr< FGraphActionNode > | AddChild
(
const TSharedPtr< FEdGraphSchemaAction >& Action |
Inserts a new action node (and any accompanying category nodes) based off the provided Action. |
![]() |
PRAGMA_ENABLE_DEPRECATION_WARNINGS TSharedPtr< FGraphActionNode > | AddChildAlphabetical
(
const TSharedPtr< FEdGraphSchemaAction >& Action |
Inserts a new action node (and any required category nodes) based off the provided Action. |
![]() |
PRAGMA_DISABLE_DEPRECATION_WARNINGS TSharedPtr< FGraphActionNode > | AddChildAlphabetical
(
FGraphActionListBuilderBase::ActionGroup const& ActionSet |
|
![]() |
PRAGMA_ENABLE_DEPRECATION_WARNINGS 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 | GetAllActionNodes
(
TArray< TSharedPtr< FGraphActionNode > >& OutNodeArray |
Recursively collects all child/grandchild/decendent action nodes. |
![]() ![]() |
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). |
![]() ![]() |
int32 | GetLinearizedIndex
(
TSharedPtr< FGraphActionNode > Node |
Returns the 'linearized' index of the node, including category nodes, useful for getting displayed position |
![]() ![]() |
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. | |
![]() ![]() |
int32 | Returns the number of leaf nodes | |
![]() ![]() |
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). |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FGraphActionNode & | operator=
(
const FGraphActionNode& Node |
|
![]() |
FGraphActionNode & | operator=
(
FGraphActionNode&& Node |
Constants
Name | Description |
---|---|
INVALID_SECTION_ID |