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.
|
pure virtual |
Create from the factory a new live link source and add it to the client.
The settings will be duplicated.
|
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.
|
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.
|
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.
|
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.
|
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.
|
pure virtual |
Get the source preset from the live link client.
The settings will be duplicated into DuplicatedObjectOuter.
|
pure virtual |
Get the time of all the frames for a specific source.
|
pure virtual |
Get the time of all the frames for a source.
|
pure virtual |
Get the subject preset from the live link client.
The settings will be duplicated into DuplicatedObjectOuter.
|
pure virtual |
Get the Settings of this subject.
|
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.
|
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.
|
pure virtual |
Push static data for a specific subject for a certain role.
This will clear all buffered frames
|
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.
|
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.
|
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.