Files
UnrealEngineUWP/Engine/Source/Developer/RigVMDeveloper/Public/RigVMModel/Nodes/RigVMSelectNode.h
sara schvartzman ed571628f5 Control Rig: Filtered permutations for template nodes
#jira na
#rb helge.mathee
#preflight https://horde.devtools.epicgames.com/job/62769cbe75268b4ace10dc69

[CL 20101111 by sara schvartzman in ue5-main branch]
2022-05-09 07:34:28 -04:00

46 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "RigVMTemplateNode.h"
#include "RigVMSelectNode.generated.h"
/**
* A select node is used to select between multiple values
*/
UCLASS(BlueprintType)
class RIGVMDEVELOPER_API URigVMSelectNode : public URigVMTemplateNode
{
GENERATED_BODY()
public:
// Override from URigVMTemplateNode
virtual FName GetNotation() const override;
virtual const FRigVMTemplate* GetTemplate() const override;
virtual bool IsSingleton() const override { return false; }
// Override from URigVMNode
virtual FString GetNodeTitle() const override { return SelectName; }
virtual FLinearColor GetNodeColor() const override { return FLinearColor::Black; }
protected:
virtual bool AllowsLinksOn(const URigVMPin* InPin) const override;
private:
static const FString SelectName;
static const FString IndexName;
static const FString ValueName;
static const FString ResultName;
friend class URigVMController;
friend class URigVMCompiler;
friend struct FRigVMAddSelectNodeAction;
friend class UControlRigSelectNodeSpawner;
friend class FRigVMParserAST;
friend class FRigVMSelectExprAST;
};