engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
ILiveLinkClient类 参考abstract

Interface for streaming and consuming data from external sources into UE4. 更多...

#include <ILiveLinkClient.h>

继承自 ILiveLinkClient_Base_DEPRECATED .

Public 成员函数

virtual FGuid AddSource (TSharedPtr< ILiveLinkSource > Source)=0
 Add a new live link source to the client
 
virtual bool AddVirtualSubject (const FLiveLinkSubjectKey &VirtualSubjectKey, TSubclassOf< ULiveLinkVirtualSubject > VirtualSubjectClass)=0
 Add a new virtual subject to the client
 
virtual FGuid AddVirtualSubjectSource (FName SourceName)=0
 Add a new live link VirtualSubject source to the client
 
virtual void ClearAllSubjectsFrames_AnyThread ()=0
 Clear all subjects frames
 
virtual void ClearSubjectsFrames_AnyThread (const FLiveLinkSubjectKey &SubjectKey)=0
 Clear the stored frames associated with the subject
 
virtual void ClearSubjectsFrames_AnyThread (FLiveLinkSubjectName SubjectName)=0
 Clear the stored frames associated with the enabled subject
 
virtual bool CreateSource (const FLiveLinkSourcePreset &SourcePreset)=0
 Create from the factory a new live link source and add it to the client. 更多...
 
virtual bool CreateSubject (const FLiveLinkSubjectPreset &SubjectPreset)=0
 Create and add a new live link subject to the client
 
virtual bool DoesSubjectSupportsRole (const FLiveLinkSubjectKey &SubjectKey, TSubclassOf< ULiveLinkRole > SupportedRole) const =0
 Whether a subject support a particular role, either directly or through a translator
 
virtual bool DoesSubjectSupportsRole (FLiveLinkSubjectName SubjectName, TSubclassOf< ULiveLinkRole > SupportedRole) const =0
 Whether a subject support a particular role, either directly or through a translator
 
virtual bool EvaluateFrame_AnyThread (FLiveLinkSubjectName SubjectName, TSubclassOf< ULiveLinkRole > Role, FLiveLinkSubjectFrameData &OutFrame)=0
 Return the evaluated subject snapshot for a specific role. 更多...
 
virtual bool EvaluateFrameAtSceneTime_AnyThread (FLiveLinkSubjectName SubjectName, const FQualifiedFrameTime &SceneTime, TSubclassOf< ULiveLinkRole > DesiredRole, FLiveLinkSubjectFrameData &OutFrame)=0
 Evaluates a subject for a specific role at a scene time. 更多...
 
virtual bool EvaluateFrameAtWorldTime_AnyThread (FLiveLinkSubjectName SubjectName, double WorldTime, TSubclassOf< ULiveLinkRole > DesiredRole, FLiveLinkSubjectFrameData &OutFrame)=0
 Evaluates a subject for a specific role. 更多...
 
virtual bool EvaluateFrameFromSource_AnyThread (const FLiveLinkSubjectKey &SubjectKey, TSubclassOf< ULiveLinkRole > Role, FLiveLinkSubjectFrameData &OutFrame)=0
 Return the evaluated subject from a specific source snapshot for a specific role. 更多...
 
virtual void ForceTick ()=0
 Performs an internal Tick(). 更多...
 
virtual FLiveLinkSourcePreset GetSourcePreset (FGuid SourceGuid, UObject *DuplicatedObjectOuter) const =0
 Get the source preset from the live link client. 更多...
 
virtual TArray< FGuid > GetSources () const =0
 Get a list of all the sources
 
virtual ULiveLinkSourceSettings * GetSourceSettings (const FGuid &SourceKey) const =0
 Get the Settings of this source.
 
virtual FText GetSourceType (FGuid SourceGuid) const =0
 Get the type of a source
 
virtual TArray< FLiveLinkTime > GetSubjectFrameTimes (const FLiveLinkSubjectKey &SubjectKey) const =0
 Get the time of all the frames for a specific source. 更多...
 
virtual TArray< FLiveLinkTime > GetSubjectFrameTimes (FLiveLinkSubjectName SubjectName) const =0
 Get the time of all the frames for a source. 更多...
 
virtual FLiveLinkSubjectPreset GetSubjectPreset (const FLiveLinkSubjectKey &SubjectKey, UObject *DuplicatedObjectOuter) const =0
 Get the subject preset from the live link client. 更多...
 
virtual TSubclassOf< ULiveLinkRole > GetSubjectRole (const FLiveLinkSubjectKey &SubjectKey) const =0
 Get the role of a subject from a specific source
 
virtual TSubclassOf< ULiveLinkRole > GetSubjectRole (FLiveLinkSubjectName SubjectName) const =0
 Get the role of the subject with this name
 
virtual TArray< FLiveLinkSubjectKey > GetSubjects (bool bIncludeDisabledSubject, bool bIncludeVirtualSubject) const =0
 Get a list of all subjects
 
virtual UObject * GetSubjectSettings (const FLiveLinkSubjectKey &SubjectKey) const =0
 Get the Settings of this subject. 更多...
 
virtual TArray< FLiveLinkSubjectKey > GetSubjectsSupportingRole (TSubclassOf< ULiveLinkRole > SupportedRole, bool bIncludeDisabledSubject, bool bIncludeVirtualSubject) const =0
 Get a list of name of subjects supporting a certain role
 
virtual TArray< FGuid > GetVirtualSources () const =0
 Get a list of all the VirtualSubjects sources
 
virtual bool HasSourceBeenAdded (TSharedPtr< ILiveLinkSource > Source) const =0
 Is the source been added
 
virtual bool IsSubjectEnabled (const FLiveLinkSubjectKey &SubjectKey, bool bForThisFrame) const =0
 Whether or not a subject from the specific source is the enabled subject. 更多...
 
virtual bool IsSubjectEnabled (FLiveLinkSubjectName SubjectName) const =0
 Whether or not the client has a subject with this name enabled Only 1 subject with the same name can be enabled. 更多...
 
virtual bool IsSubjectTimeSynchronized (const FLiveLinkSubjectKey &SubjectKey) const =0
 Whether or not the subject's data, from a specific source, is time synchronized or not
 
virtual bool IsSubjectTimeSynchronized (FLiveLinkSubjectName SubjectName) const =0
 Whether or not the subject's data is time synchronized or not
 
virtual bool IsSubjectValid (const FLiveLinkSubjectKey &SubjectKey) const =0
 Whether or not a subject from a specific source is valid and has valid snapshot data
 
virtual bool IsSubjectValid (FLiveLinkSubjectName SubjectName) const =0
 Whether or not the client has a subject with this name that is valid and has valid snapshot data
 
virtual FOnLiveLinkSourceChangedDelegate & OnLiveLinkSourceAdded ()=0
 Notify when a new source has been added
 
virtual FOnLiveLinkSourceChangedDelegate & OnLiveLinkSourceRemoved ()=0
 Notify when a source has been removed
 
virtual FSimpleMulticastDelegate & OnLiveLinkSourcesChanged ()=0
 Notify when the list of sources has changed.
 
virtual FOnLiveLinkSubjectChangedDelegate & OnLiveLinkSubjectAdded ()=0
 Notify when a new subject has been added
 
virtual FOnLiveLinkSubjectChangedDelegate & OnLiveLinkSubjectRemoved ()=0
 Notify when a subject has been removed
 
virtual FSimpleMulticastDelegate & OnLiveLinkSubjectsChanged ()=0
 Notify when the list of subject has changed.
 
virtual FSimpleMulticastDelegate & OnLiveLinkTicked ()=0
 Notify when the LiveLinkClient has ticked.
 
virtual void PushSubjectFrameData_AnyThread (const FLiveLinkSubjectKey &SubjectKey, FLiveLinkFrameDataStruct &&FrameData)=0
 Push frame data for a specific subject for a certain role
 
virtual void PushSubjectStaticData_AnyThread (const FLiveLinkSubjectKey &SubjectKey, TSubclassOf< ULiveLinkRole > Role, FLiveLinkStaticDataStruct &&StaticData)=0
 Push static data for a specific subject for a certain role. 更多...
 
virtual void RegisterForFrameDataReceived (const FLiveLinkSubjectKey &InSubjectKey, const FOnLiveLinkSubjectStaticDataReceived::FDelegate &OnStaticDataReceived_AnyThread, const FOnLiveLinkSubjectFrameDataReceived::FDelegate &OnFrameDataReceived_AnyThread, FDelegateHandle &OutStaticDataReceivedHandle, FDelegateHandle &OutFrameDataReceivedHandleconst)=0
 Register for when a frame data was received. 更多...
 
virtual bool RegisterForSubjectFrames (FLiveLinkSubjectName SubjectName, const FOnLiveLinkSubjectStaticDataAdded::FDelegate &OnStaticDataAdded, const FOnLiveLinkSubjectFrameDataAdded::FDelegate &OnFrameDataAddedd, FDelegateHandle &OutStaticDataAddedHandle, FDelegateHandle &OutFrameDataAddeddHandle, TSubclassOf< ULiveLinkRole > &OutSubjectRole, FLiveLinkStaticDataStruct *OutStaticData=nullptr)=0
 Register for when a frame has been validated, added and ready to be used. 更多...
 
virtual void RemoveSource (FGuid SourceGuid)=0
 Remove the source specified by the source Id from the live link client
 
virtual void RemoveSource (TSharedPtr< ILiveLinkSource > Source)=0
 Remove the specified source from the live link client
 
virtual void RemoveSubject_AnyThread (const FLiveLinkSubjectKey &SubjectName)=0
 Clear the subject from the specific source
 
virtual void RemoveVirtualSubject (const FLiveLinkSubjectKey &VirtualSubjectKey)=0
 Removes a virtual subject from the client
 
virtual void SetSubjectEnabled (const FLiveLinkSubjectKey &SubjectKey, bool bEnabled)=0
 Set the subject's from a specific source to enabled, disabling the other in the process. 更多...
 
virtual void UnregisterForFrameDataReceived (const FLiveLinkSubjectKey &InSubjectKey, FDelegateHandle InStaticDataReceivedHandle, FDelegateHandle InFrameDataReceivedHandle)=0
 Unregister delegate registered with RegisterForFrameDataReceived.
 
virtual void UnregisterSubjectFramesHandle (FLiveLinkSubjectName SubjectName, FDelegateHandle StaticDataAddedHandle, FDelegateHandle FrameDataAddedHandle)=0
 Unregister delegates registered with RegisterForSubjectFrames.
 

详细描述

Interface for streaming and consuming data from external sources into UE4.

A LiveLinkSource, may stream multiple LiveLinkSubject. Pushing and evaluating data can be executed on any thread. The other functions must be executed on the Game Thread. Subject may shared name between sources, but only 1 of those subjects may be enabled.

成员函数说明

◆ CreateSource()

virtual bool ILiveLinkClient::CreateSource ( const FLiveLinkSourcePreset &  SourcePreset)
pure virtual

Create from the factory a new live link source and add it to the client.

The settings will be duplicated.

◆ EvaluateFrame_AnyThread()

virtual bool ILiveLinkClient::EvaluateFrame_AnyThread ( FLiveLinkSubjectName  SubjectName,
TSubclassOf< ULiveLinkRole >  Role,
FLiveLinkSubjectFrameData &  OutFrame 
)
pure virtual

Return the evaluated subject snapshot for a specific role.

The subject may go through a translator to get the desired role's frame data.

返回
True if the snapshot is valid.
注解
This will always return the same value for a specific frame.
参见
ULiveLinkSourceSettings

◆ EvaluateFrameAtSceneTime_AnyThread()

virtual bool ILiveLinkClient::EvaluateFrameAtSceneTime_AnyThread ( FLiveLinkSubjectName  SubjectName,
const FQualifiedFrameTime &  SceneTime,
TSubclassOf< ULiveLinkRole >  DesiredRole,
FLiveLinkSubjectFrameData &  OutFrame 
)
pure virtual

Evaluates a subject for a specific role at a scene time.

The subject may go through a translator to get the desired role's frame data. If it's a virtual subject EvaluateFrame_AnyThread will be used instead.

返回
True if a frame data was calculated.
注解
This value is not cached.
参见
ULiveLinkSourceSettings

◆ EvaluateFrameAtWorldTime_AnyThread()

virtual bool ILiveLinkClient::EvaluateFrameAtWorldTime_AnyThread ( FLiveLinkSubjectName  SubjectName,
double  WorldTime,
TSubclassOf< ULiveLinkRole >  DesiredRole,
FLiveLinkSubjectFrameData &  OutFrame 
)
pure virtual

Evaluates a subject for a specific role.

The subject may go through a translator to get the desired role's frame data. If it's a virtual subject EvaluateFrame_AnyThread will be used instead.

返回
True if a frame data was calculated.
注解
This value is not cached.
参见
ULiveLinkSourceSettings

◆ EvaluateFrameFromSource_AnyThread()

virtual bool ILiveLinkClient::EvaluateFrameFromSource_AnyThread ( const FLiveLinkSubjectKey &  SubjectKey,
TSubclassOf< ULiveLinkRole >  Role,
FLiveLinkSubjectFrameData &  OutFrame 
)
pure virtual

Return the evaluated subject from a specific source snapshot for a specific role.

A subject could have to go through a translator to output in the desired role.

注解
This will always return the same value for a specific frame.
The prefer method is EvaluateFrame_AnyThread this method should be used for diagnostic or replication.

◆ ForceTick()

virtual void ILiveLinkClient::ForceTick ( )
pure virtual

Performs an internal Tick().

This is to be used when we want to run live link outside of the normal engine tick workflow, for example when we need to export data that requires live link evaluation during the export process.

◆ GetSourcePreset()

virtual FLiveLinkSourcePreset ILiveLinkClient::GetSourcePreset ( FGuid  SourceGuid,
UObject *  DuplicatedObjectOuter 
) const
pure virtual

Get the source preset from the live link client.

The settings will be duplicated into DuplicatedObjectOuter.

◆ GetSubjectFrameTimes() [1/2]

virtual TArray< FLiveLinkTime > ILiveLinkClient::GetSubjectFrameTimes ( const FLiveLinkSubjectKey &  SubjectKey) const
pure virtual

Get the time of all the frames for a specific source.

注解
Use for debugging purposes.

◆ GetSubjectFrameTimes() [2/2]

virtual TArray< FLiveLinkTime > ILiveLinkClient::GetSubjectFrameTimes ( FLiveLinkSubjectName  SubjectName) const
pure virtual

Get the time of all the frames for a source.

注解
Use for debugging purposes.

◆ GetSubjectPreset()

virtual FLiveLinkSubjectPreset ILiveLinkClient::GetSubjectPreset ( const FLiveLinkSubjectKey &  SubjectKey,
UObject *  DuplicatedObjectOuter 
) const
pure virtual

Get the subject preset from the live link client.

The settings will be duplicated into DuplicatedObjectOuter.

◆ GetSubjectSettings()

virtual UObject * ILiveLinkClient::GetSubjectSettings ( const FLiveLinkSubjectKey &  SubjectKey) const
pure virtual

Get the Settings of this subject.

注解
If subject is a VirtualSubject, the VirtualSubject itself is returned.

◆ IsSubjectEnabled() [1/2]

virtual bool ILiveLinkClient::IsSubjectEnabled ( const FLiveLinkSubjectKey &  SubjectKey,
bool  bForThisFrame 
) const
pure virtual

Whether or not a subject from the specific source is the enabled subject.

Only 1 subject with the same name can be enabled. At the start of the frame, a snapshot of the enabled subjects will be made. That snapshot dictate which subject will be used for the duration of that frame.

◆ IsSubjectEnabled() [2/2]

virtual bool ILiveLinkClient::IsSubjectEnabled ( FLiveLinkSubjectName  SubjectName) const
pure virtual

Whether or not the client has a subject with this name enabled Only 1 subject with the same name can be enabled.

At the start of the frame, a snapshot of the enabled subjects will be made. That snapshot dictate which subject will be used for the duration of that frame.

◆ PushSubjectStaticData_AnyThread()

virtual void ILiveLinkClient::PushSubjectStaticData_AnyThread ( const FLiveLinkSubjectKey &  SubjectKey,
TSubclassOf< ULiveLinkRole >  Role,
FLiveLinkStaticDataStruct &&  StaticData 
)
pure virtual

Push static data for a specific subject for a certain role.

This will clear all buffered frames

◆ RegisterForFrameDataReceived()

virtual void ILiveLinkClient::RegisterForFrameDataReceived ( const FLiveLinkSubjectKey &  InSubjectKey,
const FOnLiveLinkSubjectStaticDataReceived::FDelegate &  OnStaticDataReceived_AnyThread,
const FOnLiveLinkSubjectFrameDataReceived::FDelegate &  OnFrameDataReceived_AnyThread,
FDelegateHandle &  OutStaticDataReceivedHandle,
FDelegateHandle &  OutFrameDataReceivedHandleconst 
)
pure virtual

Register for when a frame data was received.

This will be called as soon as it is received. It has not been validated or added. The frame is not ready to be used. The callback may be call on any thread.

◆ RegisterForSubjectFrames()

virtual bool ILiveLinkClient::RegisterForSubjectFrames ( FLiveLinkSubjectName  SubjectName,
const FOnLiveLinkSubjectStaticDataAdded::FDelegate &  OnStaticDataAdded,
const FOnLiveLinkSubjectFrameDataAdded::FDelegate &  OnFrameDataAddedd,
FDelegateHandle &  OutStaticDataAddedHandle,
FDelegateHandle &  OutFrameDataAddeddHandle,
TSubclassOf< ULiveLinkRole > &  OutSubjectRole,
FLiveLinkStaticDataStruct *  OutStaticData = nullptr 
)
pure virtual

Register for when a frame has been validated, added and ready to be used.

If provided, OutStaticData may be invalid if the Subject has not received Static Data, or if the static data has not been processed yet.

返回
True if the subject was found and the delegates were registered. False otherwise.

◆ SetSubjectEnabled()

virtual void ILiveLinkClient::SetSubjectEnabled ( const FLiveLinkSubjectKey &  SubjectKey,
bool  bEnabled 
)
pure virtual

Set the subject's from a specific source to enabled, disabling the other in the process.

Only 1 subject with the same name can be enabled. At the start of the frame, a snapshot of the enabled subjects will be made. That snapshot dictate which subject will be used for the duration of that frame. SetSubjectEnabled will take effect on the next frame.


该类的文档由以下文件生成: