UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DirectLinkStreamSource.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "DirectLinkCommon.h"
7
8
9namespace DirectLink
10{
11class FSceneSnapshot;
12class ISceneGraphNode;
13class IStreamSender;
14
15
21{
22public:
23 FStreamSource(const FString& Name, EVisibility Visibility)
25 {}
26
27 // Defines the content, which is a root node and its referenced tree.
29
30 // Snapshot the current state of the scene
31 void Snapshot();
32
33 // Link a stream to this source (via a sender)
34 void LinkSender(const TSharedPtr<IStreamSender>& Sender);
35
36private:
37 ISceneGraphNode* Root = nullptr;
38 FRWLock SendersLock;
40 FRWLock CurrentSnapshotLock;
41 TSharedPtr<FSceneSnapshot> CurrentSnapshot;
42};
43
44
45} // namespace DirectLink
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition Array.h:670
Definition SharedPointer.h:692
Definition CriticalSection.h:14
Definition Visibility.h:12