58 lines
1.1 KiB
C++
58 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Containers/Map.h"
|
|
#include "HAL/Platform.h"
|
|
#include "MuR/Ptr.h"
|
|
#include "MuR/RefCounted.h"
|
|
#include "MuT/NodeRange.h"
|
|
#include "MuT/NodeMaterial.h"
|
|
#include "MuT/NodeImage.h"
|
|
|
|
|
|
#define UE_API MUTABLETOOLS_API
|
|
|
|
namespace UE::Mutable::Private
|
|
{
|
|
|
|
/** NodeMaterialParameter class. */
|
|
class NodeMaterialParameter : public NodeMaterial
|
|
{
|
|
public:
|
|
|
|
/** Name of the parameter */
|
|
FString Name;
|
|
|
|
/** User provided ID to identify the parameter. */
|
|
FString UID;
|
|
|
|
/** Ranges for the parameter in case it is multidimensional. */
|
|
TArray<Ptr<NodeRange>> Ranges;
|
|
|
|
TArray<FString> ColorParameterNames;
|
|
TArray<FString> ScalarParameterNames;
|
|
TMap<FString, Ptr<NodeImage>> ImageParameterNodes;
|
|
|
|
public:
|
|
|
|
// Node Interface
|
|
virtual const FNodeType* GetType() const override { return &StaticType; }
|
|
static const FNodeType* GetStaticType() { return &StaticType; }
|
|
|
|
protected:
|
|
|
|
// Forbidden. Manage with the Ptr<> template.
|
|
inline ~NodeMaterialParameter() {}
|
|
|
|
private:
|
|
|
|
static UE_API FNodeType StaticType;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
#undef UE_API
|