Navigation
API > API/Runtime > API/Runtime/InterchangeCore > API/Runtime/InterchangeCore/Nodes
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UInterchangeBaseNodeContainer
References
| Module | InterchangeCore |
| Header | /Engine/Source/Runtime/Interchange/Core/Public/Nodes/InterchangeBaseNodeContainer.h |
| Include | #include "Nodes/InterchangeBaseNodeContainer.h" |
Syntax
UCLASS (BlueprintType, MinimalAPI)
class UInterchangeBaseNodeContainer : public UObject
Remarks
The Interchange UInterchangeBaseNode graph is a format used to feed factories and writers when they import, reimport, and export an asset or scene.
This container holds a flat list of all nodes that have been translated from the source data. Translators fill this container, and the import/export managers read it to execute the import/export process.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FString | AddNode
(
UInterchangeBaseNode* Node |
Add a node to the container. The node is added into a TMap. | |
| bool | BreakableIterateNodeChildren
(
const FString& NodeUniqueID, |
Recursively traverse the hierarchy starting with the specified node unique ID. | |
| void | BreakableIterateNodes
(
TFunctionRef< bool(const FString&, UInterchangeBaseNode*)> IterationLambda |
Unordered iteration of the all nodes, but can be stopped early by returning true. | |
| void | BreakableIterateNodesOfType
(
TFunctionRef< bool(const FString&, T*)> IterationLambda |
||
| void | Fill the cache of children UIDs to optimize the GetNodeChildrenUids call. | ||
| TArray< FString > * | GetCachedNodeChildrenUids
(
const FString& NodeUniqueID |
||
| UInterchangeFactoryBaseNode * | GetFactoryNode
(
const FString& NodeUniqueID |
Get a factory node pointer. | |
| bool | GetIsAncestor
(
const FString& NodeUniqueID, |
Checks if ParentNodeUID is an ancestor. | |
| const UInterchangeBaseNode * | Get a node pointer. Once added to the container, nodes are considered const. | ||
| UInterchangeBaseNode * | GetNodeChildren
(
const FString& NodeUniqueID, |
Get the nth const child of the node | |
| const UInterchangeBaseNode * | GetNodeChildren
(
const FString& NodeUniqueID, |
Get the nth const child of the node. Const version. | |
| int32 | GetNodeChildrenCount
(
const FString& NodeUniqueID |
Get the number of children the node has. | |
| TArray< FString > | GetNodeChildrenUids
(
const FString& NodeUniqueID |
Get the UIDs of all the node's children. | |
| void | Return all nodes that are of the ClassNode type. | ||
| void | Return all nodes that do not have any parent. | ||
| bool | IsNodeUidValid
(
const FString& NodeUniqueID |
Return true if the node unique ID exists in the container. | |
| void | IterateNodeChildren
(
const FString& NodeUniqueID, |
Recursively traverse the hierarchy starting with the specified node unique ID. | |
| void | IterateNodes
(
TFunctionRef< void(const FString&, UInterchangeBaseNode*)> IterationLambda |
Unordered iteration of the all nodes. | |
| void | IterateNodesOfType
(
TFunctionRef< void(const FString&, T*)> IterationLambda |
||
| void | LoadFromFile
(
const FString& Filename |
Serialize the node container from the specified file. | |
| void | ReplaceNode
(
const FString& NodeUniqueID, |
||
| void | Reset () |
Empty the container. | |
| void | Reset the cache of children UIDs. | ||
| void | SaveToFile
(
const FString& Filename |
Serialize the node container into the specified file. | |
| void | SerializeNodeContainerData
(
FArchive& Ar |
This function serializes the node container and all node sub-objects it points . | |
| bool | SetNodeParentUid
(
const FString& NodeUniqueID, |
Set the ParentUid of the node. |