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]
91 lines
2.4 KiB
C++
91 lines
2.4 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
#include "Misc/AssertionMacros.h"
|
|
#include "MuR/MutableMath.h"
|
|
#include "MuR/Parameters.h"
|
|
#include "MuR/Ptr.h"
|
|
#include "MuR/RefCounted.h"
|
|
#include "MuT/Node.h"
|
|
#include "MuT/NodePrivate.h"
|
|
#include "MuT/NodeProjector.h"
|
|
#include "MuT/NodeProjectorPrivate.h"
|
|
#include "MuT/NodeRange.h"
|
|
|
|
|
|
namespace mu
|
|
{
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
// Static initialisation
|
|
//---------------------------------------------------------------------------------------------
|
|
FNodeType NodeProjectorParameter::Private::s_type = FNodeType(Node::EType::ProjectorParameter, NodeProjector::GetStaticType() );
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
//!
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
MUTABLE_IMPLEMENT_NODE( NodeProjectorParameter )
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
// Own Interface
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeProjectorParameter::SetName( const FString& strName )
|
|
{
|
|
m_pD->m_name = strName;
|
|
}
|
|
|
|
|
|
const FString& NodeProjectorParameter::GetUid() const
|
|
{
|
|
return m_pD->m_uid;
|
|
}
|
|
|
|
|
|
void NodeProjectorParameter::SetUid( const FString& strUid )
|
|
{
|
|
m_pD->m_uid = strUid;
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeProjectorParameter::SetDefaultValue( PROJECTOR_TYPE type,
|
|
FVector3f pos,
|
|
FVector3f dir,
|
|
FVector3f up,
|
|
FVector3f scale,
|
|
float projectionAngle )
|
|
{
|
|
m_pD->m_type = type;
|
|
m_pD->m_position = pos;
|
|
m_pD->m_direction = dir;
|
|
m_pD->m_up = up;
|
|
m_pD->m_scale = scale;
|
|
m_pD->m_projectionAngle = projectionAngle;
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeProjectorParameter::SetRangeCount( int i )
|
|
{
|
|
check(i>=0);
|
|
m_pD->m_ranges.SetNum(i);
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
void NodeProjectorParameter::SetRange( int i, NodeRangePtr pRange )
|
|
{
|
|
check( i>=0 && i<m_pD->m_ranges.Num() );
|
|
if ( i>=0 && i<m_pD->m_ranges.Num() )
|
|
{
|
|
m_pD->m_ranges[i] = pRange;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|