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/NodeMeshTransform.h"
|
2022-10-02 10:56:02 -04:00
|
|
|
|
|
|
|
|
#include "HAL/PlatformString.h"
|
|
|
|
|
#include "Misc/AssertionMacros.h"
|
|
|
|
|
#include "MuR/MutableMath.h"
|
|
|
|
|
#include "MuT/NodeLayout.h"
|
|
|
|
|
#include "MuT/NodeMeshPrivate.h"
|
2022-10-01 02:04:57 -04:00
|
|
|
#include "MuT/NodeMeshTransformPrivate.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 NodeMeshTransform::Private::s_type = FNodeType(Node::EType::MeshTransform, NodeMesh::GetStaticType() );
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
//!
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
|
2024-06-10 04:10:54 -04:00
|
|
|
MUTABLE_IMPLEMENT_NODE( NodeMeshTransform )
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
// Own Interface
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
NodeMeshPtr NodeMeshTransform::GetSource() const
|
|
|
|
|
{
|
2024-03-18 04:26:21 -04:00
|
|
|
return m_pD->Source;
|
2022-09-26 15:12:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
void NodeMeshTransform::SetSource( NodeMesh* p )
|
|
|
|
|
{
|
2024-03-18 04:26:21 -04:00
|
|
|
m_pD->Source = p;
|
2022-09-26 15:12:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
2024-03-18 04:26:21 -04:00
|
|
|
void NodeMeshTransform::SetTransform( const FMatrix44f& Value )
|
2022-09-26 15:12:13 -04:00
|
|
|
{
|
2024-03-18 04:26:21 -04:00
|
|
|
m_pD->Transform = Value;
|
2022-09-26 15:12:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
2024-03-18 04:26:21 -04:00
|
|
|
const FMatrix44f& NodeMeshTransform::GetTransform() const
|
2022-09-26 15:12:13 -04:00
|
|
|
{
|
2024-03-18 04:26:21 -04:00
|
|
|
return m_pD->Transform;
|
2022-09-26 15:12:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|