You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Cleanup usage of most of STL from mutable runtime. Exception is string for now. Cleanup a lot of unused code like reference implementations, node cloning boilerplate, etc. #preflight 63441fcf7045f13c96b43bcf [REVIEW] [at]max.garcia [FYI] [at]alexei.lebedev [FYI] genis.sole [CL 22454093 by jordi rovira in ue5-main branch]
100 lines
2.9 KiB
C++
100 lines
2.9 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "MuR/Image.h"
|
|
#include "MuR/Ptr.h"
|
|
#include "MuR/RefCounted.h"
|
|
#include "MuT/Node.h"
|
|
#include "MuT/NodeImage.h"
|
|
#include "MuT/NodeRange.h"
|
|
|
|
|
|
namespace mu
|
|
{
|
|
|
|
// Forward definitions
|
|
class NodeImageMultiLayer;
|
|
typedef Ptr<NodeImageMultiLayer> NodeImageMultiLayerPtr;
|
|
typedef Ptr<const NodeImageMultiLayer> NodeImageMultiLayerPtrConst;
|
|
|
|
class InputArchive;
|
|
class OutputArchive;
|
|
|
|
|
|
//! This node applies any numbre of layer blending effect on a base image using a mask and a
|
|
//! blended image. The number of layers depends on a scalar input of this node.
|
|
//! \ingroup model
|
|
class MUTABLETOOLS_API NodeImageMultiLayer : public NodeImage
|
|
{
|
|
public:
|
|
|
|
//-----------------------------------------------------------------------------------------
|
|
// Life cycle
|
|
//-----------------------------------------------------------------------------------------
|
|
|
|
NodeImageMultiLayer();
|
|
|
|
void SerialiseWrapper(OutputArchive& arch) const override;
|
|
static void Serialise( const NodeImageMultiLayer* pNode, OutputArchive& arch );
|
|
static NodeImageMultiLayerPtr StaticUnserialise( InputArchive& arch );
|
|
|
|
|
|
//-----------------------------------------------------------------------------------------
|
|
// Node Interface
|
|
//-----------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
const NODE_TYPE* GetType() const override;
|
|
static const NODE_TYPE* GetStaticType();
|
|
|
|
virtual int GetInputCount() const override;
|
|
virtual Node* GetInputNode( int i ) const override;
|
|
void SetInputNode( int i, NodePtr pNode ) override;
|
|
|
|
//-----------------------------------------------------------------------------------------
|
|
// Own Interface
|
|
//-----------------------------------------------------------------------------------------
|
|
|
|
//! Get the node generating the base image that will have the blendeing effect applied.
|
|
NodeImagePtr GetBase() const;
|
|
void SetBase( NodeImagePtr );
|
|
|
|
//! Get the node generating the mask image controlling the weight of the effect.
|
|
NodeImagePtr GetMask() const;
|
|
void SetMask( NodeImagePtr );
|
|
|
|
//! Get the image blended on top of the base.
|
|
NodeImagePtr GetBlended() const;
|
|
void SetBlended( NodeImagePtr );
|
|
|
|
//! Get the number of layers to apply.
|
|
NodeRangePtr GetRange() const;
|
|
void SetRange( NodeRangePtr );
|
|
|
|
//!
|
|
EBlendType GetBlendType() const;
|
|
void SetBlendType(EBlendType);
|
|
|
|
//-----------------------------------------------------------------------------------------
|
|
// Interface pattern
|
|
//-----------------------------------------------------------------------------------------
|
|
class Private;
|
|
Private* GetPrivate() const;
|
|
Node::Private* GetBasePrivate() const override;
|
|
|
|
protected:
|
|
|
|
//! Forbidden. Manage with the Ptr<> template.
|
|
~NodeImageMultiLayer();
|
|
|
|
private:
|
|
|
|
Private* m_pD;
|
|
|
|
};
|
|
|
|
|
|
}
|