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/NodeImageFormat.h"
|
2022-10-02 10:56:02 -04:00
|
|
|
|
|
|
|
|
#include "Misc/AssertionMacros.h"
|
2022-10-01 02:04:57 -04:00
|
|
|
#include "MuT/NodeImageFormatPrivate.h"
|
2022-10-02 10:56:02 -04:00
|
|
|
#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 NodeImageFormat::Private::s_type = FNodeType(Node::EType::ImageFormat, NodeImage::GetStaticType() );
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
//!
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
|
2024-06-10 04:10:54 -04:00
|
|
|
MUTABLE_IMPLEMENT_NODE( NodeImageFormat )
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
// Own Interface
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
EImageFormat NodeImageFormat::GetFormat() const
|
|
|
|
|
{
|
|
|
|
|
return m_pD->m_format;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
void NodeImageFormat::SetFormat(EImageFormat format, EImageFormat formatIfAlpha )
|
|
|
|
|
{
|
|
|
|
|
m_pD->m_format = format;
|
|
|
|
|
m_pD->m_formatIfAlpha = formatIfAlpha;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
NodeImagePtr NodeImageFormat::GetSource() const
|
|
|
|
|
{
|
|
|
|
|
return m_pD->m_source.get();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
void NodeImageFormat::SetSource(NodeImagePtr pNode )
|
|
|
|
|
{
|
|
|
|
|
m_pD->m_source = pNode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|