Files
alexei lebedev 2815323fbc [mutable] Moved the Mutable plugin out of Experimental status into Beta.
#jira UE-223488
#rb jordi.rovira
#tests Editor
#rnx

#virtualized

[CL 36035608 by alexei lebedev in ue5-main branch]
2024-09-05 07:16:19 -04:00

70 lines
2.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "MuT/NodeMeshSwitch.h"
#include "Misc/AssertionMacros.h"
#include "MuT/NodeLayout.h"
#include "MuT/NodeMeshPrivate.h"
#include "MuT/NodeMeshSwitchPrivate.h"
#include "MuT/NodePrivate.h"
#include "MuT/NodeScalar.h"
namespace mu
{
//---------------------------------------------------------------------------------------------
// Static initialisation
//---------------------------------------------------------------------------------------------
FNodeType NodeMeshSwitch::Private::s_type = FNodeType(Node::EType::MeshSwitch, NodeMesh::GetStaticType() );
//---------------------------------------------------------------------------------------------
//!
//---------------------------------------------------------------------------------------------
MUTABLE_IMPLEMENT_NODE( NodeMeshSwitch )
//---------------------------------------------------------------------------------------------
// Own Interface
//---------------------------------------------------------------------------------------------
NodeScalarPtr NodeMeshSwitch::GetParameter() const
{
return m_pD->m_pParameter.get();
}
//---------------------------------------------------------------------------------------------
void NodeMeshSwitch::SetParameter( NodeScalarPtr pNode )
{
m_pD->m_pParameter = pNode;
}
//---------------------------------------------------------------------------------------------
void NodeMeshSwitch::SetOptionCount( int t )
{
m_pD->m_options.SetNum(t);
}
//---------------------------------------------------------------------------------------------
NodeMeshPtr NodeMeshSwitch::GetOption( int t ) const
{
check( t>=0 && t<m_pD->m_options.Num() );
return m_pD->m_options[t].get();
}
//---------------------------------------------------------------------------------------------
void NodeMeshSwitch::SetOption( int t, NodeMeshPtr pNode )
{
check( t>=0 && t<m_pD->m_options.Num() );
m_pD->m_options[t] = pNode;
}
}