50 lines
891 B
C++
50 lines
891 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "MuT/Node.h"
|
|
#include "MuT/NodeImage.h"
|
|
#include "MuT/NodeScalar.h"
|
|
#include "MuR/ImageTypes.h"
|
|
#include "MuR/Ptr.h"
|
|
|
|
namespace mu
|
|
{
|
|
|
|
/** */
|
|
class MUTABLETOOLS_API NodeImageTransform : public NodeImage
|
|
{
|
|
public:
|
|
|
|
Ptr<NodeImage> Base;
|
|
Ptr<NodeScalar> OffsetX;
|
|
Ptr<NodeScalar> OffsetY;
|
|
Ptr<NodeScalar> ScaleX;
|
|
Ptr<NodeScalar> ScaleY;
|
|
Ptr<NodeScalar> Rotation;
|
|
|
|
EAddressMode AddressMode = EAddressMode::Wrap;
|
|
uint32 SizeX = 0;
|
|
uint32 SizeY = 0;
|
|
|
|
bool bKeepAspectRatio = false;
|
|
|
|
public:
|
|
|
|
// Node Interface
|
|
virtual const FNodeType* GetType() const override { return &StaticType; }
|
|
static const FNodeType* GetStaticType() { return &StaticType; }
|
|
|
|
protected:
|
|
|
|
/** Forbidden. Manage with the Ptr<> template. */
|
|
~NodeImageTransform() {}
|
|
|
|
private:
|
|
|
|
static FNodeType StaticType;
|
|
|
|
};
|
|
|
|
}
|