Navigation
API > API/Plugins > API/Plugins/TimedDataMonitor
| Name | UTimedDataMonitorSubsystem |
| Type | class |
| Header File | /Engine/Plugins/VirtualProduction/TimedDataMonitor/Source/TimedDataMonitor/Public/TimedDataMonitorSubsystem.h |
| Include Path | #include "TimedDataMonitorSubsystem.h" |
Syntax
UCLASS ()
class UTimedDataMonitorSubsystem : public UEngineSubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UDynamicSubsystem → UEngineSubsystem → UTimedDataMonitorSubsystem
Structs
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OnIdentifierListChanged_Dynamic | FTimedDataIdentifierListChangedSignature | Delegate of when an element is added or removed. | TimedDataMonitorSubsystem.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bHasStatFileLoggingStarted | bool | TimedDataMonitorSubsystem.h | ||
| bRequestSourceListRebuilt | bool | TimedDataMonitorSubsystem.h | ||
| CachedConnectionState | ETimedDataInputState | TimedDataMonitorSubsystem.h | ||
| CachedEvaluationState | ETimedDataMonitorEvaluationState | Cached system state for evaluation and connection based on each input / channel and source that caused last change | TimedDataMonitorSubsystem.h | |
| CachedTimecodeProviderFrameDelayInSeconds | float | TimedDataMonitorSubsystem.h | ||
| ChannelMap | TMap< FTimedDataMonitorChannelIdentifier, FTimeDataChannelItem > | TimedDataMonitorSubsystem.h | ||
| InputMap | TMap< FTimedDataMonitorInputIdentifier, FTimeDataInputItem > | TimedDataMonitorSubsystem.h | ||
| OnIdentifierListChanged_Delegate | FSimpleMulticastDelegate | TimedDataMonitorSubsystem.h | ||
| StatLoggingMap | TMap< FTimedDataMonitorChannelIdentifier, FChannelStatisticLogging > | TimedDataMonitorSubsystem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTimedDataMonitorTimeCorrectionResult ApplyTimeCorrection
(
const FTimedDataMonitorInputIdentifier& Identifier, |
Assume all data samples were produce at the same time and align them with the current platform's time | TimedDataMonitorSubsystem.h |
|
void BeginFrameCallback() |
Used to cache global (Engine TimecodeProvider) frame delay for the current frame. | TimedDataMonitorSubsystem.h | |
void CalibrateLatent
(
UObject* WorldContextObject, |
Change the Timecode Provider offset to align all inputs and channels. | TimedDataMonitorSubsystem.h |
|
bool DoesChannelExist
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Return true if the identifier is a valid channel. | TimedDataMonitorSubsystem.h |
|
bool DoesInputExist
(
const FTimedDataMonitorInputIdentifier& Identifier |
Return true if the identifier is a valid input. | TimedDataMonitorSubsystem.h |
|
void EndFrameCallback () |
Used to update statistics once all TimedData are processed. | TimedDataMonitorSubsystem.h | |
TArray< FTimedDataMonitorChannelIdentifier > GetAllChannels() |
Get the list of all the channels. | TimedDataMonitorSubsystem.h |
|
TArray< FTimedDataMonitorChannelIdentifier > GetAllEnabledChannels() |
Get the list of all the channels that are enabled. | TimedDataMonitorSubsystem.h |
|
TArray< FTimedDataMonitorInputIdentifier > GetAllInputs() |
Get the list of all the inputs. | TimedDataMonitorSubsystem.h |
|
int32 GetChannelBufferOverflowStat
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Returns the number of buffer overflows detected by that input since the last reset. | TimedDataMonitorSubsystem.h |
|
int32 GetChannelBufferUnderflowStat
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Returns the number of buffer underflows detected by that input since the last reset. | TimedDataMonitorSubsystem.h |
|
ETimedDataInputState GetChannelConnectionState
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Get the state the channel. | TimedDataMonitorSubsystem.h |
|
int32 GetChannelDataBufferSize
(
const FTimedDataMonitorChannelIdentifier& Identifier |
If the channel does support it, get the current maximum sample count of channel. | TimedDataMonitorSubsystem.h |
|
FText GetChannelDisplayName
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Return the display name of an input. | TimedDataMonitorSubsystem.h |
|
float GetChannelEvaluationDistanceToNewestSampleMean
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Returns the average distance, in seconds, between evaluation time and newest sample | TimedDataMonitorSubsystem.h |
|
float GetChannelEvaluationDistanceToNewestSampleStandardDeviation
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Returns the standard deviation of the distance, in seconds, between evaluation time and newest sample | TimedDataMonitorSubsystem.h |
|
float GetChannelEvaluationDistanceToOldestSampleMean
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Returns the average distance, in seconds, between evaluation time and oldest sample | TimedDataMonitorSubsystem.h |
|
float GetChannelEvaluationDistanceToOldestSampleStandardDeviation
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Returns the standard deviation of the distance, in seconds, between evaluation time and oldest sample | TimedDataMonitorSubsystem.h |
|
ETimedDataMonitorEvaluationState GetChannelEvaluationState
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Get the evaluation state of the channel. | TimedDataMonitorSubsystem.h |
|
TArray< FTimedDataChannelSampleTime > GetChannelFrameDataTimes
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Get the sample times for every frame in the channel | TimedDataMonitorSubsystem.h |
|
int32 GetChannelFrameDroppedStat
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Returns the number of frames dropped by that input since the last reset. | TimedDataMonitorSubsystem.h |
|
FTimedDataMonitorInputIdentifier GetChannelInput
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Return the input of this channel. | TimedDataMonitorSubsystem.h |
|
void GetChannelLastEvaluationDataStat
(
const FTimedDataMonitorChannelIdentifier& Identifier, |
Retrieves information about last evaluation Returns true if identifier was found | TimedDataMonitorSubsystem.h |
|
FTimedDataChannelSampleTime GetChannelNewestDataTime
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Get the channel latest sample time. | TimedDataMonitorSubsystem.h |
|
int32 GetChannelNumberOfSamples
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Get the number of data samples available. | TimedDataMonitorSubsystem.h |
|
FTimedDataChannelSampleTime GetChannelOldestDataTime
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Get the channel oldest sample time. | TimedDataMonitorSubsystem.h |
|
ETimedDataMonitorEvaluationState GetEvaluationState() |
Get the worst evaluation state of all the inputs. | TimedDataMonitorSubsystem.h |
|
float GetEvaluationTimeOffsetInSeconds
(
ETimedDataInputEvaluationType EvaluationType |
Get offset applied to global evaluation time. Only works when a Timecode Provider is used | TimedDataMonitorSubsystem.h | |
TArray< FTimedDataMonitorChannelIdentifier > GetInputChannels
(
const FTimedDataMonitorInputIdentifier& Identifier |
Return the list of all channels that are part of the input. | TimedDataMonitorSubsystem.h |
|
ETimedDataInputState GetInputConnectionState
(
const FTimedDataMonitorInputIdentifier& Identifier |
Get the worst state of all the channels of that input. | TimedDataMonitorSubsystem.h |
|
int32 GetInputDataBufferSize
(
const FTimedDataMonitorInputIdentifier& Identifier |
Get the size of the buffer used by the input. | TimedDataMonitorSubsystem.h |
|
FText GetInputDisplayName
(
const FTimedDataMonitorInputIdentifier& Identifier |
Return the display name of an input. | TimedDataMonitorSubsystem.h |
|
ETimedDataMonitorInputEnabled GetInputEnabled
(
const FTimedDataMonitorInputIdentifier& Identifier |
Is the input enabled in the monitor. | TimedDataMonitorSubsystem.h |
|
float GetInputEvaluationDistanceToNewestSampleMean
(
const FTimedDataMonitorInputIdentifier& Identifier |
Returns the max average distance, in seconds, between evaluation time and newest sample | TimedDataMonitorSubsystem.h |
|
float GetInputEvaluationDistanceToNewestSampleStandardDeviation
(
const FTimedDataMonitorInputIdentifier& Identifier |
Returns the standard deviation of the distance, in seconds, between evaluation time and newest sample | TimedDataMonitorSubsystem.h |
|
float GetInputEvaluationDistanceToOldestSampleMean
(
const FTimedDataMonitorInputIdentifier& Identifier |
Returns the min average distance, in seconds, between evaluation time and oldest sample | TimedDataMonitorSubsystem.h |
|
float GetInputEvaluationDistanceToOldestSampleStandardDeviation
(
const FTimedDataMonitorInputIdentifier& Identifier |
Returns the standard deviation of the distance, in seconds, between evaluation time and oldest sample | TimedDataMonitorSubsystem.h |
|
float GetInputEvaluationOffsetInFrames
(
const FTimedDataMonitorInputIdentifier& Identifier |
Get the offset in frames (see GetEvaluationType) used at evaluation. | TimedDataMonitorSubsystem.h |
|
float GetInputEvaluationOffsetInSeconds
(
const FTimedDataMonitorInputIdentifier& Identifier |
Get the offset in seconds or frames (see GetEvaluationType) used at evaluation. | TimedDataMonitorSubsystem.h |
|
ETimedDataMonitorEvaluationState GetInputEvaluationState
(
const FTimedDataMonitorInputIdentifier& Identifier |
Get the worst evaluation state of all the channels of that input. | TimedDataMonitorSubsystem.h |
|
ETimedDataInputEvaluationType GetInputEvaluationType
(
const FTimedDataMonitorInputIdentifier& Identifier |
Get how the input is evaluated type. | TimedDataMonitorSubsystem.h |
|
FFrameRate GetInputFrameRate
(
const FTimedDataMonitorInputIdentifier& Identifier |
Get the frame rate at which the samples is produce. | TimedDataMonitorSubsystem.h |
|
FTimedDataChannelSampleTime GetInputNewestDataTime
(
const FTimedDataMonitorInputIdentifier& Identifier |
Get the latest sample time of all the channel in this input. | TimedDataMonitorSubsystem.h |
|
FTimedDataChannelSampleTime GetInputOldestDataTime
(
const FTimedDataMonitorInputIdentifier& Identifier |
Get the oldest sample time of all the channel in this input. | TimedDataMonitorSubsystem.h |
|
ITimedDataInputChannel * GetTimedDataChannel
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Get the interface for a specific channel identifier. | TimedDataMonitorSubsystem.h | |
ITimedDataInput * GetTimedDataInput
(
const FTimedDataMonitorInputIdentifier& Identifier |
Get the interface for a specific input identifier. | TimedDataMonitorSubsystem.h | |
bool IsChannelEnabled
(
const FTimedDataMonitorChannelIdentifier& Identifier |
Is the channel enabled in the monitor. | TimedDataMonitorSubsystem.h |
|
bool IsDataBufferSizeControlledByInput
(
const FTimedDataMonitorInputIdentifier& Identifier |
Does the channel support a different buffer size than it's input. | TimedDataMonitorSubsystem.h |
|
FSimpleMulticastDelegate & OnIdentifierListChanged() |
Delegate of when an element is added or removed. | TimedDataMonitorSubsystem.h | |
void ResetAllBufferStats() |
Reset the stat of all the inputs. | TimedDataMonitorSubsystem.h |
|
void SetChannelDataBufferSize
(
const FTimedDataMonitorChannelIdentifier& Identifier, |
If the channel does support it, set the maximum sample count of the channel. | TimedDataMonitorSubsystem.h |
|
void SetChannelEnabled
(
const FTimedDataMonitorChannelIdentifier& Identifier, |
Enable or disable an input from the monitor. | TimedDataMonitorSubsystem.h |
|
void SetInputDataBufferSize
(
const FTimedDataMonitorInputIdentifier& Identifier, |
Set the size of the buffer used by the input. | TimedDataMonitorSubsystem.h |
|
void SetInputEnabled
(
const FTimedDataMonitorInputIdentifier& Identifier, |
Set all channels for the input enabled in the monitor. | TimedDataMonitorSubsystem.h |
|
void SetInputEvaluationOffsetInFrames
(
const FTimedDataMonitorInputIdentifier& Identifier, |
Set the offset in frames (see GetEvaluationType) used at evaluation. | TimedDataMonitorSubsystem.h |
|
void SetInputEvaluationOffsetInSeconds
(
const FTimedDataMonitorInputIdentifier& Identifier, |
Set the offset in seconds or frames (see GetEvaluationType) used at evaluation. | TimedDataMonitorSubsystem.h |
|
void SetInputEvaluationType
(
const FTimedDataMonitorInputIdentifier& Identifier, |
Set how the input is evaluated type. | TimedDataMonitorSubsystem.h |
|
Overridden from USubsystem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Deinitialize() |
TimedDataMonitorSubsystem.h | ||
virtual void Initialize
(
FSubsystemCollectionBase& Collection |
TimedDataMonitorSubsystem.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static double GetEvaluationTime
(
ETimedDataInputEvaluationType EvaluationType |
Get the current evaluation time. | TimedDataMonitorSubsystem.h |