Navigation
API > API/Plugins > API/Plugins/MetasoundFrontend
Inheritance Hierarchy
- TSharedFromThis
- IDocumentAccessor
- INodeController
References
| Module | MetasoundFrontend |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Public/MetasoundFrontendController.h |
| Include | #include "MetasoundFrontendController.h" |
Syntax
class INodeController :
public TSharedFromThis< INodeController >,
public Metasound::Frontend::IDocumentAccessor
Remarks
An INodeController provides methods for querying and manipulating a Metasound node.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FInputHandle | AddInput
(
const FVertexName& InVertexName, |
||
| FInputHandle | AddOutput
(
const FVertexName& InVertexName, |
||
| FConstGraphHandle | AsGraph () |
If the node is also a graph, this returns a graph handle. | |
| FGraphHandle | AsGraph () |
If the node is also a graph, this returns a graph handle. | |
| bool | CanAddInput
(
const FVertexName& InVertexName |
||
| bool | CanAddOutput
(
const FVertexName& InVertexName |
||
| bool | CanAutoUpdate
(
FClassInterfaceUpdates& OutInterfaceUpdates |
Returns whether the node is eligible for auto-updating (i.e. has undergone minor revision or the interface has changed, but no higher major revision is available). | |
| bool | ClearInputLiteral
(
FGuid InVertexID |
Clears an input's default literal. | |
| bool | DiffAgainstRegistryInterface
(
FClassInterfaceUpdates& OutInterfaceUpdates, |
Fills out the provided ClassInterfaceUpdate struct with the differences between the registry's version of the class interface and that of the node. | |
| FGuid | GetClassID () |
Returns the ID associated with the node class. | |
| const FMetasoundFrontendClassInterface & | |||
| const FMetasoundFrontendClassMetadata & | |||
| const FMetasoundFrontendClassStyle & | |||
| TArray< FConstInputHandle > | Returns all node inputs. | ||
| FConstInputHandle | GetConstInputWithVertexName
(
const FVertexName& InName |
||
| TArray< FConstOutputHandle > | Returns all node outputs. | ||
| FConstOutputHandle | GetConstOutputWithVertexName
(
const FVertexName& InName |
||
| const FText & | Description of the given node. | ||
| FText | Returns the display name of the given node (what to distinguish and label in visual arrays, such as context menus). | ||
| const FText & | Returns the title of the given node (what to label when displayed as visual node). | ||
| FGuid | GetID () |
Returns the ID associated with this node. | |
| const FMetasoundFrontendLiteral * | GetInputLiteral
(
const FGuid& InVertexID |
Returns an input's default literal if set, null if not. | |
| TArray< FInputHandle > | GetInputs () |
Returns all node inputs. | |
| const FMetasoundFrontendInterfaceStyle & | |||
| FConstInputHandle | GetInputWithID
(
FGuid InVertexID |
Returns an input with the given name. | |
| FInputHandle | GetInputWithID
(
FGuid InVertexID |
Returns an input with the given id.If the input does not exist, an invalid handle is returned. | |
| FInputHandle | GetInputWithVertexName
(
const FVertexName& InName |
||
| const FMetasoundFrontendVersion & | Returns interface version if node is a required member of a given interface, otherwise returns invalid version. | ||
| FNodeHandle | |||
| const FMetasoundFrontendNodeInterface & | Returns the node interface, which may be different than the class interface if the class supports dynamic input/output behavior (ex. Templates). | ||
| const FVertexName & | GetNodeName () |
Returns the name of this node. | |
| const FMetasoundFrontendNodeStyle & | GetNodeStyle () |
||
| int32 | GetNumInputs () |
Returns number of node inputs. | |
| int32 | Returns number of node outputs. | ||
| TArray< FOutputHandle > | GetOutputs () |
Returns all node outputs. | |
| const FMetasoundFrontendInterfaceStyle & | Returns associated node class data | ||
| FConstOutputHandle | GetOutputWithID
(
FGuid InVertexID |
Returns an output with the given name. | |
| FOutputHandle | GetOutputWithID
(
FGuid InVertexID |
Returns an output with the given name. | |
| FOutputHandle | GetOutputWithVertexName
(
const FVertexName& InName |
||
| FGraphHandle | Returns the graph which owns this node. | ||
| FConstGraphHandle | Returns the graph which owns this node. | ||
| FGuid | Returns the class ID of the metasound class which owns this node. | ||
| bool | Returns true if node is required to satisfy a document interface. | ||
| bool | IsValid () |
Returns true if the controller is in a valid state. | |
| void | IterateConstInputs
(
TUniqueFunction< void(FConstInputHandle)> InFunction |
||
| void | IterateConstOutputs
(
TUniqueFunction< void(FConstOutputHandle)> InFunction |
||
| void | IterateInputs
(
TUniqueFunction< void(FInputHandle)> InFunction |
Iterate over inputs | |
| void | IterateOutputs
(
TUniqueFunction< void(FOutputHandle)> InFunction |
Iterate over outputs | |
| bool | RemoveInput
(
FGuid InVertexID |
||
| bool | RemoveOutput
(
FGuid InVertexID |
||
| FNodeHandle | ReplaceWithVersion
(
const FMetasoundFrontendVersionNumber& InNewVersion, |
Replaces this node with a new node of the provided version number, and attempts to rebuild edges where possible with matching vertex names that share the same DataType. | |
| void | SetDescription
(
const FText& InDescription |
Sets the description of the node. | |
| void | SetDisplayName
(
const FText& InDisplayName |
Sets the display name of the node. | |
| void | SetInputLiteral
(
const FMetasoundFrontendVertexLiteral& InVertexLiteral |
Sets an input's default literal. | |
| void | SetNodeName
(
const FVertexName& InName |
||
| void | SetNodeStyle
(
const FMetasoundFrontendNodeStyle& InStyle |
Typedefs
| Name | Description |
|---|---|
| FVertexNameAndType |