Navigation
API > API/Plugins > API/Plugins/GeometryFlowCore
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 GeometryFlowGraph. Only the active Input is evaluated.
The number of inputs is defined in the template type, eg TSwitchNode
Use UpdateSwitchValue() to select the active switch Input
| Name | TSwitchNode |
| Type | class |
| Header File | /Engine/Plugins/Experimental/GeometryFlow/Source/GeometryFlowCore/Public/BaseNodes/SwitchNode.h |
| Include Path | #include "BaseNodes/SwitchNode.h" |
Syntax
template<typename T, int NumInputs, int StorageTypeIdentifier>
class TSwitchNode : public UE::GeometryFlow::FNode
Inheritance Hierarchy
- FNode → TSwitchNode
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSwitchNode() |
BaseNodes/SwitchNode.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DataContainerType | TMovableData< T, StorageTypeIdentifier > | BaseNodes/SwitchNode.h | |
| Super | FNode | BaseNodes/SwitchNode.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| NodeVersion | int | BaseNodes/SwitchNode.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void UpdateSwitchInputIndex
(
const int32& NewSwitchIndex |
This function is used to update the Input Index, ie select which Output will be provided. | BaseNodes/SwitchNode.h |
Overridden from FNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CollectRequirements
(
const TArray< FString >& Outputs, |
Determine which Inputs are required for the desired Output. | BaseNodes/SwitchNode.h | |
virtual void Evaluate
(
const FNamedDataMap& DatasIn, |
BaseNodes/SwitchNode.h | ||
virtual FName GetType() |
BaseNodes/SwitchNode.h | ||
virtual int32 GetVersionID() |
Version number used for serialization - to allow for changes in node data. | BaseNodes/SwitchNode.h | |
virtual bool IsA
(
FName InType |
BaseNodes/SwitchNode.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const FString InParamValue
(
int32 InputNum |
BaseNodes/SwitchNode.h | ||
static const FString OutParamValue() |
BaseNodes/SwitchNode.h | ||
static FName StaticType() |
BaseNodes/SwitchNode.h |