You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-223488 #rb jordi.rovira #tests Editor #rnx #virtualized [CL 36035608 by alexei lebedev in ue5-main branch]
78 lines
2.2 KiB
C++
78 lines
2.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
#include "MuT/NodeImageInterpolate.h"
|
|
|
|
#include "Misc/AssertionMacros.h"
|
|
#include "MuT/NodeImageInterpolatePrivate.h"
|
|
#include "MuT/NodePrivate.h"
|
|
#include "MuT/NodeScalar.h"
|
|
|
|
|
|
namespace mu
|
|
{
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
// Static initialisation
|
|
//---------------------------------------------------------------------------------------------
|
|
FNodeType NodeImageInterpolate::Private::s_type = FNodeType(Node::EType::ImageInterpolate, NodeImage::GetStaticType() );
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
//!
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
MUTABLE_IMPLEMENT_NODE( NodeImageInterpolate )
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
// Own Interface
|
|
//---------------------------------------------------------------------------------------------
|
|
NodeScalarPtr NodeImageInterpolate::GetFactor() const
|
|
{
|
|
return m_pD->m_pFactor.get();
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeImageInterpolate::SetFactor( NodeScalarPtr pNode )
|
|
{
|
|
m_pD->m_pFactor = pNode;
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
NodeImagePtr NodeImageInterpolate::GetTarget( int t ) const
|
|
{
|
|
check( t>=0 && t<(int)m_pD->m_targets.Num() );
|
|
return m_pD->m_targets[t].get();
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeImageInterpolate::SetTarget( int t, NodeImagePtr pNode )
|
|
{
|
|
check( t>=0 && t<(int)m_pD->m_targets.Num() );
|
|
m_pD->m_targets[t] = pNode;
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeImageInterpolate::SetTargetCount( int t )
|
|
{
|
|
m_pD->m_targets.SetNum(t);
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
int NodeImageInterpolate::GetTargetCount() const
|
|
{
|
|
return int(m_pD->m_targets.Num());
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|