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]
98 lines
2.8 KiB
C++
98 lines
2.8 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
#include "MuT/NodeMeshInterpolate.h"
|
|
|
|
#include "Misc/AssertionMacros.h"
|
|
#include "MuT/NodeLayout.h"
|
|
#include "MuT/NodeMeshInterpolatePrivate.h"
|
|
#include "MuT/NodeMeshPrivate.h"
|
|
#include "MuT/NodePrivate.h"
|
|
#include "MuT/NodeScalar.h"
|
|
|
|
|
|
namespace mu
|
|
{
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
// Static initialisation
|
|
//---------------------------------------------------------------------------------------------
|
|
FNodeType NodeMeshInterpolate::Private::s_type = FNodeType(Node::EType::MeshInterpolate, NodeMesh::GetStaticType() );
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
//!
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
MUTABLE_IMPLEMENT_NODE( NodeMeshInterpolate )
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
// Own Interface
|
|
//---------------------------------------------------------------------------------------------
|
|
NodeScalarPtr NodeMeshInterpolate::GetFactor() const
|
|
{
|
|
return m_pD->m_pFactor.get();
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeMeshInterpolate::SetFactor( NodeScalarPtr pNode )
|
|
{
|
|
m_pD->m_pFactor = pNode;
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
NodeMeshPtr NodeMeshInterpolate::GetTarget( int t ) const
|
|
{
|
|
check( t>=0 && t<(int)m_pD->m_targets.Num() );
|
|
|
|
return m_pD->m_targets[t].get();
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeMeshInterpolate::SetTarget( int t, NodeMeshPtr pNode )
|
|
{
|
|
check( t>=0 && t<(int)m_pD->m_targets.Num() );
|
|
m_pD->m_targets[t] = pNode;
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeMeshInterpolate::SetTargetCount( int t )
|
|
{
|
|
m_pD->m_targets.SetNum(t);
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
int NodeMeshInterpolate::GetTargetCount() const
|
|
{
|
|
return m_pD->m_targets.Num();
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeMeshInterpolate::SetChannelCount( int t )
|
|
{
|
|
m_pD->m_channels.SetNum(t);
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeMeshInterpolate::SetChannel( int i, EMeshBufferSemantic semantic, int semanticIndex )
|
|
{
|
|
check( i>=0 && i<m_pD->m_channels.Num() );
|
|
|
|
if ( i>=0 && i<m_pD->m_channels.Num() )
|
|
{
|
|
m_pD->m_channels[i].semantic = semantic;
|
|
m_pD->m_channels[i].semanticIndex = semanticIndex;
|
|
}
|
|
}
|
|
|
|
|
|
}
|