TSwitchNode

[TSwitchNode](API\Plugins\GeometryFlowCore\BaseNodes\TSwitchNode) selects one of N inputs and provides it as an Output.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FNode

TSwitchNode

References

Module

GeometryFlowCore

Header

/Engine/Plugins/Experimental/GeometryFlow/Source/GeometryFlowCore/Public/BaseNodes/SwitchNode.h

Include

#include "BaseNodes/SwitchNode.h"

Syntax

template<typename T, int NumInputs, int StorageTypeIdentifier>
class TSwitchNode : public UE::GeometryFlow::FNode

Remarks

TSwitchNode selects one of N inputs and provides it as an Output. This allows for a minimal amount of branching / control-flow in a fixed GeometryFlow Graph. Only the active Input is evaluated.

The number of inputs is defined in the template type, eg TSwitchNode<FDynamicMesh3, 3, (int)EMeshProcessingDataTypes::DynamicMesh> is a switch node with 3 possible inputs. Dynamic number of inputs cannot be easily supported without changes at the graph evaluation level.

Use UpdateSwitchValue() to select the active switch Input

Variables

Name Description

Protected variable

int32

 

SwitchIndex

Constructors

Name Description

Public function

TSwitchNode()

Functions

Name Description

Public function Static

const FStrin...

 

InParamValue

(
    int32 InputNum
)

Public function Static

const FStrin...

 

OutParamValue()

Public function Virtual

void

 

UpdateSwitchInputIndex

(
    const int32& NewSwitchIndex
)

This function is used to update the Input Index, ie select which Output will be provided.

Overridden from FNode

Name Description

Public function Virtual

void

 

CollectRequirements

(
    const TArray< FString >& Outputs,
    TArray< FEvalRequirement >& Requir...
)

Determine which Inputs are required for the desired Output.

Public function Virtual

void

 

Evaluate

(
    const FNamedDataMap& DatasIn,
    FNamedDataMap& DatasOut,
    TUniquePtr< FEvaluationInfo >& Eva...
)

Typedefs

Name

Description

DataContainerType