Navigation
API > API/Plugins > API/Plugins/MetasoundFrontend
Inheritance Hierarchy
- TSharedFromThis
- IDocumentAccessor
- IGraphController
References
| Module | MetasoundFrontend |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Public/MetasoundFrontendController.h |
| Include | #include "MetasoundFrontendController.h" |
Syntax
class IGraphController :
public TSharedFromThis< IGraphController >,
public Metasound::Frontend::IDocumentAccessor
Remarks
An IGraphController provides methods for querying and manipulating a Metasound graph.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FNodeHandle | AddDuplicateNode
(
const INodeController& InNodeController |
Add a new node to this graph by duplicating the supplied node. | |
| FNodeHandle | AddInputVertex
(
const FMetasoundFrontendClassInput& InDescription |
Add a new input node using the input description. | |
| FNodeHandle | AddNode
(
const FMetasoundFrontendClassMetadata& InClassMetadata, |
Add a new node to this graph. | |
| FNodeHandle | AddNode
(
const FNodeRegistryKey& InKey, |
Add a new node to this graph from the node registry. | |
| FNodeHandle | AddOutputVertex
(
const FMetasoundFrontendClassOutput& InDescription |
Add a new output node using the output description. | |
| FNodeHandle | AddOutputVertex
(
const FVertexName& InName, |
||
| FNodeHandle | AddTemplateNode
(
const FNodeRegistryKey& InKey, |
Add a new template node to this graph, providing the defined interface as expected by the caller. | |
| FVariableHandle | AddVariable
(
const FName& InDataTypeName |
Adds a new variable to the graph | |
| FNodeHandle | AddVariableAccessorNode
(
const FGuid& InVariableID |
Creates and returns a variable accessor node. | |
| FNodeHandle | AddVariableDeferredAccessorNode
(
const FGuid& InVariableID |
Creates and returns a variable deferred accessor node. | |
| TUniquePtr< IOperator > | BuildOperator
(
const FOperatorSettings& InSettings, |
Creates a runtime operator for the given graph. | |
| void | ClearGraph () |
Clears the graph, its associated interface, and synchronizes removed dependencies with the owning graph. | |
| bool | ClearLiteralForInput
(
const FVertexName& InInputName, |
Clear the current literal for a given input. | |
| bool | ContainsInputVertex
(
const FVertexName& InName, |
Returns true if an input vertex with the given Name exists. | |
| bool | ContainsInputVertexWithName
(
const FVertexName& InName |
Returns true if an input vertex with the given Name exists. | |
| bool | ContainsOutputVertex
(
const FVertexName& InName, |
Returns true if an output vertex with the given Name exists. | |
| bool | ContainsOutputVertexWithName
(
const FVertexName& InName |
Returns true if an output vertex with the given Name exists. | |
| FNodeHandle | CreateEmptySubgraph
(
const FMetasoundFrontendClassMetadata& InInfo |
Creates and inserts a new subgraph into this graph using the given metadata. | |
| FConstClassInputAccessPtr | FindClassInputWithName
(
const FVertexName& InName |
||
| FConstClassOutputAccessPtr | FindClassOutputWithName
(
const FVertexName& InName |
||
| FNodeHandle | FindOrAddVariableMutatorNode
(
const FGuid& InVariableID |
Returns the variable mutator node. If none exist, one is created. | |
| FConstVariableHandle | FindVariable
(
const FGuid& InVariableID |
Finds a variable by ID. | |
| FVariableHandle | FindVariable
(
const FGuid& InVariableID |
Finds a variable by ID. | |
| FConstVariableHandle | FindVariableContainingNode
(
const FGuid& InNodeID |
Finds a variable inspecting the nodes associated with the variable. | |
| FVariableHandle | FindVariableContainingNode
(
const FGuid& InNodeID |
Finds a variable inspecting the nodes associated with the variable. | |
| FGuid | GetClassID () |
Returns the ClassID associated with this graph. | |
| TArray< FConstNodeHandle > | Returns all input nodes in the graph. | ||
| TArray< FConstNodeHandle > | Returns all nodes in the graph. | ||
| TArray< FConstNodeHandle > | Returns all output nodes in the graph. | ||
| FMetasoundFrontendLiteral | GetDefaultInput
(
const FGuid& InVertexID |
||
| FText | Return the display name of the graph. | ||
| const FMetasoundFrontendClassMetadata & | Return the metadata for the current graph. | ||
| const FMetasoundFrontendGraphClassPresetOptions & | Return the preset options for the current graph. | ||
| const FMetasoundFrontendGraphStyle & | Returns graph style. | ||
| const FText & | GetInputDescription
(
const FVertexName& InName |
Get the description for the input with the given name. | |
| TArray< FNodeHandle > | Returns all input nodes in the graph. | ||
| FNodeHandle | GetInputNodeWithName
(
const FVertexName& InName |
Returns a handle to an existing input node for the given graph input name. | |
| FConstNodeHandle | GetInputNodeWithName
(
const FVertexName& InName |
Returns a handle to an existing input node for the given graph input name. | |
| const TSet< FName > & | Returns a set of all input names that are managed | ||
| const FMetasoundFrontendInterfaceStyle & | |||
| TArray< FVertexName > | |||
| FGraphHandle | |||
| TArray< FNodeHandle > | GetNodes () |
Returns all nodes in the graph. | |
| FNodeHandle | GetNodeWithID
(
FGuid InNodeID |
Returns a node by NodeID. If the node does not exist, an invalid handle is returned. | |
| FConstNodeHandle | GetNodeWithID
(
FGuid InNodeID |
Returns a node by NodeID. If the node does not exist, an invalid handle is returned. | |
| const FText & | GetOutputDescription
(
const FVertexName& InName |
Get the description for the output with the given name. | |
| TArray< FNodeHandle > | Returns all output nodes in the graph. | ||
| FConstNodeHandle | GetOutputNodeWithName
(
const FVertexName& InName |
Returns a handle to an existing output node for the given graph output name. | |
| FNodeHandle | GetOutputNodeWithName
(
const FVertexName& InName |
Returns a handle to an existing output node for the given graph output name. | |
| const FMetasoundFrontendInterfaceStyle & | |||
| TArray< FVertexName > | |||
| FDocumentHandle | Returns a handle to the document owning this graph. | ||
| FConstDocumentHandle | Returns a handle to the document owning this graph. | ||
| ELiteralType | GetPreferredLiteralTypeForInputVertex
(
const FVertexName& InInputName |
Returns the preferred literal argument type for a given input. | |
| int32 | GetSortOrderIndexForInput
(
const FVertexName& InName |
Returns the sort order index for the input with the given name. Returns 0 if not found or unset. | |
| int32 | GetSortOrderIndexForOutput
(
const FVertexName& InName |
Returns the sort order index for the input with the given name. Returns 0 if not found or unset. | |
| UClass * | GetSupportedClassForInputVertex
(
const FVertexName& InInputName |
Return the UObject class corresponding an input. | |
| TArray< FConstVariableHandle > | GetVariables () |
Returns an array of all variables associated with the graph. | |
| TArray< FVariableHandle > | GetVariables () |
Returns an array of all variables associated with the graph. | |
| FGuid | GetVertexIDForInputVertex
(
const FVertexName& InInputName |
||
| FGuid | GetVertexIDForOutputVertex
(
const FVertexName& InOutputName |
||
| bool | IsValid () |
Returns true if the controller is in a valid state. | |
| void | IterateConstNodes
(
TFunctionRef< void(FConstNodeHandle)> InFunction, |
Iterate over all nodes with the given function. | |
| void | IterateNodes
(
TFunctionRef< void(FNodeHandle)> InFunction, |
Iterate over all input nodes with the given function. | |
| bool | RemoveInputVertex
(
const FVertexName& InputName |
Remove the input with the given name. Returns true if successfully removed, false otherwise. | |
| bool | RemoveNode
(
INodeController& InNode |
Remove the node corresponding to this node handle. | |
| bool | RemoveOutputVertex
(
const FVertexName& OutputName |
Remove the output with the given name. Returns true if successfully removed, false otherwise. | |
| bool | RemoveVariable
(
const FGuid& InVariableID |
Removes the variable with the given ID. | |
| bool | SetDefaultInput
(
const FGuid& InVertexID, |
||
| bool | SetDefaultInputToDefaultLiteralOfType
(
const FGuid& InVertexID |
Set the default value for the graph input. | |
| void | SetGraphMetadata
(
const FMetasoundFrontendClassMetadata& InMetadata |
Sets the metadata for the current graph. | |
| void | SetGraphPresetOptions
(
const FMetasoundFrontendGraphClassPresetOptions& InPresetOptions |
Sets the preset options for the current graph. | |
| void | SetGraphStyle
(
const FMetasoundFrontendGraphStyle& InStyle |
Sets graph style. | |
| void | SetInputDescription
(
const FVertexName& InName, |
Set the description for the input with the given name. | |
| void | SetInputDisplayName
(
const FVertexName& InName, |
Set the display name for the input with the given name. | |
| bool | SetInputInheritsDefault
(
FName InName, |
If true, adds an item to the set of all input names that are managed. | |
| void | SetInputsInheritingDefault
(
TSet< FName >&& InNames |
Sets managed input names | |
| void | SetInputStyle
(
const FMetasoundFrontendInterfaceStyle& InStyle |
Sets the input style for the graph. | |
| void | SetOutputDescription
(
const FVertexName& InName, |
Set the description for the output with the given name. | |
| void | SetOutputDisplayName
(
const FVertexName& InName, |
Set the display name for the output with the given name. | |
| void | SetOutputStyle
(
const FMetasoundFrontendInterfaceStyle& InStyle |
Sets the output style for the graph. | |
| void | SetSortOrderIndexForInput
(
const FVertexName& InName, |
Sets the sort order index for the input with the given name. No-ops if input not found. | |
| void | SetSortOrderIndexForOutput
(
const FVertexName& InName, |
Sets the sort order index for the output with the given name. No-ops if output not found. | |
| void | Updates the ChangeID for the class interface, which signals AutoUpdate to attempt to patch class references at runtime even if the graph class has not been versioned. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| FNodeHandle | AddInputVertex
(
const FVertexName& InName, |
Use AddInputVertex method which specifies EMetasoundFrontendVertexAccessType |