42 lines
770 B
C++
42 lines
770 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "MuR/Ptr.h"
|
|
#include "MuR/RefCounted.h"
|
|
#include "MuT/Node.h"
|
|
#include "MuT/NodeImage.h"
|
|
|
|
namespace mu
|
|
{
|
|
|
|
/** This node changes the colours of a selectd part of the image, applying a colour map from
|
|
* conteined in another image.
|
|
*/
|
|
class MUTABLETOOLS_API NodeImageColourMap : public NodeImage
|
|
{
|
|
public:
|
|
|
|
Ptr<NodeImage> Base;
|
|
Ptr<NodeImage> Mask;
|
|
Ptr<NodeImage> Map;
|
|
|
|
public:
|
|
|
|
// Node Interface
|
|
virtual const FNodeType* GetType() const override { return &StaticType; }
|
|
static const FNodeType* GetStaticType() { return &StaticType; }
|
|
|
|
protected:
|
|
|
|
/** Forbidden. Manage with the Ptr<> template. */
|
|
~NodeImageColourMap() {}
|
|
|
|
private:
|
|
|
|
static FNodeType StaticType;
|
|
|
|
};
|
|
|
|
}
|