October3d55/M/PICOOpen7991a2a23d57V5/Source/PICOOpenXRMR/Private/PICO_SpatialMeshComponent.cpp

32 lines
1.0 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Copyright® 2015-2023 PICO Technology Co., Ltd. All rights reserved.
// This plugin incorporates portions of the Unreal® Engine. Unreal® is a trademark or registered trademark of Epic Games, Inc. in the United States of America and elsewhere.
// Unreal® Engine, Copyright 1998 2023, Epic Games, Inc. All rights reserved.
#include "PICO_SpatialMeshComponent.h"
#include "PICO_MRTypes.h"
USpatialMeshComponentPICO::USpatialMeshComponentPICO(const FObjectInitializer& ObjectInitializer):
Super(ObjectInitializer)
{
}
ESemanticLabelPICO USpatialMeshComponentPICO::GetSemanticByIndex(int32 Index)
{
return IndexToAnchorSceneLabelMap.Find(Index)?IndexToAnchorSceneLabelMap[Index]:ESemanticLabelPICO::Unknown;
}
void USpatialMeshComponentPICO::AddAnchorToSceneLabel(int32 Index, ESemanticLabelPICO SceneLabel)
{
IndexToAnchorSceneLabelMap.Emplace(Index,SceneLabel);
}
void USpatialMeshComponentPICO::SetUpdateTime(uint64 Time)
{
LastUpdateTime=Time;
}
int64 USpatialMeshComponentPICO::GetUpdateTime() const
{
return static_cast<int64>(LastUpdateTime);
}