October3d55/M/PICOOpen7991a2a23d57V5/Source/PICOOpenXRMR/Public/PICO_SpatialMeshComponent.h

32 lines
1.1 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.
#pragma once
#include "CoreMinimal.h"
#include "MRMeshComponent.h"
#include "PICO_MRTypes.h"
#include "PICO_SpatialMeshComponent.generated.h"
UCLASS(hidecategories = (Object, LOD), meta = (BlueprintSpawnableComponent), ClassGroup = Rendering)
class USpatialMeshComponentPICO : public UMRMeshComponent
{
GENERATED_BODY()
public:
USpatialMeshComponentPICO(const FObjectInitializer& ObjectInitializer);
UFUNCTION(BlueprintPure, Category = "PICO|MR")
ESemanticLabelPICO GetSemanticByIndex(int32 Index);
void AddAnchorToSceneLabel(int32 Index,ESemanticLabelPICO SceneLabel);
void SetUpdateTime(uint64 Time);
int64 GetUpdateTime() const;
protected:
TMap<int32,ESemanticLabelPICO> IndexToAnchorSceneLabelMap; //Index ->SceneLabel
uint64 LastUpdateTime = 0;
};