Navigation
API > API/Plugins > API/Plugins/MetasoundGraphCore
Inheritance Hierarchy
- INodeBase
- INode
- IGraph
- FGraph
- FFrontendGraph
References
| Module | MetasoundGraphCore |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundGraphCore/Public/MetasoundGraph.h |
| Include | #include "MetasoundGraph.h" |
Syntax
class FGraph : public Metasound::IGraph
Remarks
FGraph contains the edges between nodes as well as input and output vertices. FGraph does not maintain ownership over any node. Nodes used within the graph must be valid for the lifetime of the graph.
Constructors
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FGraph () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddDataEdge
(
const INode& FromNode, |
Add an edge to the graph, connecting two vertices from two nodes. | |
| void | AddDataEdge
(
const FDataEdge& InEdge |
Add an edge to the graph. | |
| bool | AddInputDataDestination
(
const INode& InNode, |
Add an input data destination to describe how data provided outside this graph should be routed internally. | |
| void | AddInputDataDestination
(
const FInputDataDestination& InDestination |
Add an input data destination to describe how data provided outside this graph should be routed internally. | |
| void | AddNode
(
const FGuid& InNodeID, |
Store a node on this graph. | |
| void | AddOutputDataSource
(
const FOutputDataSource& InSource |
Add an output data source which describes routing of data which is owned this graph and exposed externally. | |
| bool | AddOutputDataSource
(
const INode& InNode, |
Add an output data source which describes routing of data which is owned this graph and exposed externally. | |
| const INode * | Retrieve node by node ID. | ||
| int32 | FindUnconnectedNodes
(
TArray< TPair< FGuid, const INode* >>& OutUnconnectedNodes |
Populates an array with all nodes which exist in the graph but do not have any connections. | |
| bool | RemoveDataEdge
(
const INode& FromNode, |
Remove the given data edge. | |
| void | RemoveDataEdgesWithNode
(
const INode& InNode |
Removes all edges with connected to the node. | |
| bool | RemoveInputDataDestination
(
const FVertexName& InVertexName |
Remove an input data destination by vertex name | |
| bool | RemoveNode
(
const FGuid& InNodeID, |
Removes node from graph. | |
| bool | RemoveOutputDataSource
(
const FVertexName& InVertexName |
Remove an output data source by vertex name |
Overridden from IGraph
| Type | Name | Description | |
|---|---|---|---|
| const TArray< FDataEdge > & | GetDataEdges () |
Retrieve all the edges associated with a graph. | |
| const FInputDataDestinationCollection & | Get vertices which contain input parameters. | ||
| const FOutputDataSourceCollection & | Get vertices which contain output parameters. |
Overridden from INode
| Type | Name | Description | |
|---|---|---|---|
| FOperatorFactorySharedRef | Return a reference to the default operator factory. |
Overridden from INodeBase
| Type | Name | Description | |
|---|---|---|---|
| const FGuid & | Return the ID of this specific instance of the node class. | ||
| const FVertexName & | Return the name of this specific instance of the node class. | ||
| const FNodeClassMetadata & | GetMetadata () |
Return metadata about this graph. | |
| const FVertexInterface & | Return the current vertex interface. | ||
| bool | IsVertexInterfaceSupported
(
const FVertexInterface& InInterface |
Expresses whether a specific vertex interface is supported. | |
| bool | SetVertexInterface
(
const FVertexInterface& InInterface |
Set the vertex interface. If the vertex was successfully changed, returns true. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | RemoveDataEdgeByPredicate
(
const PredicateType& Predicate |
Removing data edges by predicate is no longer supported |