2022-09-26 15:12:13 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
|
2022-10-01 02:04:57 -04:00
|
|
|
#include "MuT/NodeImageParameter.h"
|
2022-09-26 15:12:13 -04:00
|
|
|
|
2022-10-02 10:56:02 -04:00
|
|
|
#include "Misc/AssertionMacros.h"
|
|
|
|
|
#include "MuT/NodeImageParameterPrivate.h"
|
|
|
|
|
#include "MuT/NodePrivate.h"
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace mu
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
// Static initialisation
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
2024-06-10 04:10:54 -04:00
|
|
|
FNodeType NodeImageParameter::Private::s_type = FNodeType(Node::EType::ImageParameter, NodeImage::GetStaticType() );
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
//!
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
|
2024-06-10 04:10:54 -04:00
|
|
|
MUTABLE_IMPLEMENT_NODE( NodeImageParameter )
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
// Own Interface
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
2023-10-05 04:46:46 -04:00
|
|
|
void NodeImageParameter::SetName( const FString& Name )
|
2022-09-26 15:12:13 -04:00
|
|
|
{
|
2023-10-05 04:46:46 -04:00
|
|
|
m_pD->m_name = Name;
|
2022-09-26 15:12:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
2023-10-05 04:46:46 -04:00
|
|
|
void NodeImageParameter::SetUid(const FString& Uid)
|
2022-09-26 15:12:13 -04:00
|
|
|
{
|
2023-10-05 04:46:46 -04:00
|
|
|
m_pD->m_uid = Uid;
|
2022-09-26 15:12:13 -04:00
|
|
|
}
|
|
|
|
|
|
2023-09-07 06:34:12 -04:00
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
void NodeImageParameter::SetDefaultValue(FName Value)
|
|
|
|
|
{
|
|
|
|
|
m_pD->m_defaultValue = Value;
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-19 15:14:57 -04:00
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
void NodeImageParameter::SetRangeCount(int i)
|
|
|
|
|
{
|
|
|
|
|
check(i >= 0);
|
|
|
|
|
m_pD->m_ranges.SetNum(i);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
void NodeImageParameter::SetRange(int i, NodeRangePtr pRange)
|
|
|
|
|
{
|
|
|
|
|
check(i >= 0 && i<int(m_pD->m_ranges.Num()));
|
|
|
|
|
if (i >= 0 && i<int(m_pD->m_ranges.Num()))
|
|
|
|
|
{
|
|
|
|
|
m_pD->m_ranges[i] = pRange;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-26 15:12:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|