39 lines
693 B
C++
39 lines
693 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "MuR/Ptr.h"
|
|
#include "MuT/NodeMesh.h"
|
|
#include "MuT/NodeScalar.h"
|
|
|
|
namespace mu
|
|
{
|
|
|
|
/** This node selects an output Mesh from a set of input Meshs based on a parameter. */
|
|
class MUTABLETOOLS_API NodeMeshSwitch : public NodeMesh
|
|
{
|
|
public:
|
|
|
|
Ptr<NodeScalar> Parameter;
|
|
|
|
TArray<Ptr<NodeMesh>> Options;
|
|
|
|
public:
|
|
|
|
// Node Interface
|
|
virtual const FNodeType* GetType() const override { return &StaticType; }
|
|
static const FNodeType* GetStaticType() { return &StaticType; }
|
|
|
|
protected:
|
|
|
|
/** Forbidden. Manage with the Ptr<> template. */
|
|
~NodeMeshSwitch() {}
|
|
|
|
private:
|
|
|
|
static FNodeType StaticType;
|
|
|
|
};
|
|
|
|
}
|