Files
UnrealEngine/Engine/Plugins/Runtime/nDisplay/Source/DisplayClusterMedia/Private/Common/DisplayClusterMediaCameraCommon.h
2025-05-18 13:04:45 +08:00

33 lines
750 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
class UDisplayClusterICVFXCameraComponent;
/**
* Common camera logic for media
*/
class FDisplayClusterMediaCameraCommon
{
public:
FDisplayClusterMediaCameraCommon(const FString& CameraId);
virtual ~FDisplayClusterMediaCameraCommon() = default;
protected:
/** Finds an ICVFX camera component by name, otherwise nullptr */
UDisplayClusterICVFXCameraComponent* GetCameraComponent() const;
/** Returns late OCIO parameters of the current camera */
void GetLateOCIOParameters(bool& bOutLateOCIOEnabled, bool& bOutTransferPQ) const;
private:
/** Holds ICVFX camera component name associated with this media adapter */
const FString CameraId;
};