You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Headers are updated to contain any missing #includes needed to compile and #includes are sorted. Nothing is removed. #ushell-cherrypick of 21065896 by bryan.sefcik #preflight 62d4b1a5a6141b6adfb0c892 #jira #ROBOMERGE-OWNER: Bryan.sefcik #ROBOMERGE-AUTHOR: bryan.sefcik #ROBOMERGE-SOURCE: CL 21150156 via CL 21151754 via CL 21154719 #ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824) #ROBOMERGE-CONFLICT from-shelf [CL 21181076 by Bryan sefcik in ue5-main branch]
53 lines
1.8 KiB
C++
53 lines
1.8 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "CoreTypes.h"
|
|
#include "LiveLinkRole.h"
|
|
#include "LiveLinkTypes.h"
|
|
#include "Misc/AssertionMacros.h"
|
|
#include "Templates/SharedPointer.h"
|
|
#include "Templates/SubclassOf.h"
|
|
#include "UObject/Object.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "UObject/UObjectGlobals.h"
|
|
|
|
#include "LiveLinkFrameTranslator.generated.h"
|
|
|
|
class ULiveLinkRole;
|
|
|
|
|
|
/**
|
|
* Basic object to translate data from one role to another
|
|
* @note It can be called from any thread
|
|
*/
|
|
class LIVELINKINTERFACE_API ILiveLinkFrameTranslatorWorker
|
|
{
|
|
public:
|
|
bool CanTranslate(TSubclassOf<ULiveLinkRole> ToRole) const;
|
|
virtual TSubclassOf<ULiveLinkRole> GetFromRole() const = 0;
|
|
virtual TSubclassOf<ULiveLinkRole> GetToRole() const = 0;
|
|
virtual bool Translate(const FLiveLinkStaticDataStruct& InStaticData, const FLiveLinkFrameDataStruct& InFrameData, FLiveLinkSubjectFrameData& OutTranslatedFrame) const = 0;
|
|
};
|
|
|
|
|
|
/**
|
|
* Basic object to translate data from one role to another
|
|
* @note It can only be used on the Game Thread. See ILiveLinkFrameTranslatorWorker for the any thread implementation.
|
|
*/
|
|
UCLASS(Abstract, editinlinenew, ClassGroup = (LiveLink))
|
|
class LIVELINKINTERFACE_API ULiveLinkFrameTranslator : public UObject
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
using FWorkerSharedPtr = TSharedPtr<ILiveLinkFrameTranslatorWorker, ESPMode::ThreadSafe>;
|
|
|
|
bool CanTranslate(TSubclassOf<ULiveLinkRole> ToRole) const;
|
|
|
|
virtual TSubclassOf<ULiveLinkRole> GetFromRole() const PURE_VIRTUAL(ULiveLinkFrameTranslator::GetFromRole, return TSubclassOf<ULiveLinkRole>(););
|
|
virtual TSubclassOf<ULiveLinkRole> GetToRole() const PURE_VIRTUAL(ULiveLinkFrameTranslator::GetToRole, return TSubclassOf<ULiveLinkRole>(););
|
|
virtual FWorkerSharedPtr FetchWorker() PURE_VIRTUAL(ULiveLinkFrameTranslator::FetchWorker, return FWorkerSharedPtr(););
|
|
};
|