engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | Protected 属性 | 所有成员列表
FMovieSceneChannelData结构体 参考

Base class channel data utility that provides a consistent interface to a sorted array of times and handles. 更多...

#include <MovieSceneChannelData.h>

+ 类 FMovieSceneChannelData 继承关系图:

Public 成员函数

void ChangeFrameResolution (FFrameRate SourceRate, FFrameRate DestinationRate)
 Convert the frame resolution of a movie scene channel by moving the key times to the equivalent frame time 更多...
 
int32 FindKey (FFrameNumber InTime, FFrameNumber InTolerance=0)
 Attempt to find a key at a given time and tolerance 更多...
 
void FindKeys (FFrameNumber InTime, int32 MaxNum, int32 &OutMinIndex, int32 &OutMaxIndex, int32 InTolerance)
 Find the range of keys that fall around InTime +/- InTolerance up to a maximum 更多...
 
FKeyHandle GetHandle (int32 Index)
 Retrieve a key handle for the specified key time index 更多...
 
int32 GetIndex (FKeyHandle Handle)
 Attempt to retrieve the index of key from its handle 更多...
 
void GetKeys (const TRange< FFrameNumber > &WithinRange, TArray< FFrameNumber > *OutKeyTimes, TArray< FKeyHandle > *OutKeyHandles)
 Get all the keys in the given range. 更多...
 
void GetKeyTimes (TArrayView< const FKeyHandle > InHandles, TArrayView< FFrameNumber > OutKeyTimes)
 Get key times for a number of keys in the channel data 更多...
 
FORCEINLINE TArrayView< FFrameNumber > GetTimes ()
 Mutable access to this channel's key times. 更多...
 
FORCEINLINE TArrayView< const FFrameNumber > GetTimes () const
 Read-only access to this channel's key times.
 
TRange< FFrameNumber > GetTotalRange () const
 Compute the total time range of the channel data. 更多...
 
void Offset (FFrameNumber DeltaTime)
 Offset the channel data by a given delta time 更多...
 

Protected 成员函数

int32 AddKeyInternal (FFrameNumber InTime)
 Add a new key at the specified time 更多...
 
 FMovieSceneChannelData (TArray< FFrameNumber > *InTimes, FKeyHandleLookupTable *InKeyHandles)
 Constructor that takes a non-owning pointer to an array of times and a key handle map 更多...
 
int32 MoveKeyInternal (int32 KeyIndex, FFrameNumber InNewTime)
 Move the key at index KeyIndex to a new time 更多...
 

Protected 属性

FKeyHandleLookupTable * KeyHandles
 Pointer to an external key handle map
 
TArray< FFrameNumber > * Times
 Pointer to an external array of sorted times. 更多...
 

详细描述

Base class channel data utility that provides a consistent interface to a sorted array of times and handles.

Complete access should be through TMovieSceneChannelData that allows mutation of the data

构造及析构函数说明

◆ FMovieSceneChannelData()

FMovieSceneChannelData::FMovieSceneChannelData ( TArray< FFrameNumber > *  InTimes,
FKeyHandleLookupTable *  InKeyHandles 
)
protected

Constructor that takes a non-owning pointer to an array of times and a key handle map

参数
InTimesA pointer to an array that should be operated on by this class. Externally owned.
InKeyHandlesA key handle map used for persistent, order independent identification of keys

成员函数说明

◆ AddKeyInternal()

int32 FMovieSceneChannelData::AddKeyInternal ( FFrameNumber  InTime)
protected

Add a new key at the specified time

返回
The index of the key in its new position

◆ ChangeFrameResolution()

void FMovieSceneChannelData::ChangeFrameResolution ( FFrameRate  SourceRate,
FFrameRate  DestinationRate 
)

Convert the frame resolution of a movie scene channel by moving the key times to the equivalent frame time

参数
SourceRateThe frame rate the channel is currently in
DestinationRateThe new frame rate to convert the channel to

◆ FindKey()

int32 FMovieSceneChannelData::FindKey ( FFrameNumber  InTime,
FFrameNumber  InTolerance = 0 
)

Attempt to find a key at a given time and tolerance

参数
InTimeThe time at which to search
InToleranceA tolerance of frame numbers to allow either side of the specified time
返回
The index of the key closest to InTime and within InTolerance, or INDEX_NONE

◆ FindKeys()

void FMovieSceneChannelData::FindKeys ( FFrameNumber  InTime,
int32  MaxNum,
int32 &  OutMinIndex,
int32 &  OutMaxIndex,
int32  InTolerance 
)

Find the range of keys that fall around InTime +/- InTolerance up to a maximum

参数
InTimeThe time around which to search
MaxNumA maximum number of times to find, starting with those closest to the predicate time
OutMinThe earliest index that met the conditions of the search
OutMaxThe latest index that met the conditions of the search
InToleranceThe tolerance range to search around PredicateTime with

◆ GetHandle()

FKeyHandle FMovieSceneChannelData::GetHandle ( int32  Index)

Retrieve a key handle for the specified key time index

参数
IndexThe index to retrieve
返回
A key handle that identifies the key at the specified index, regardless of re-ordering

◆ GetIndex()

int32 FMovieSceneChannelData::GetIndex ( FKeyHandle  Handle)

Attempt to retrieve the index of key from its handle

参数
HandleThe handle to retrieve
返回
The index of the key, or INDEX_NONE

◆ GetKeys()

void FMovieSceneChannelData::GetKeys ( const TRange< FFrameNumber > &  WithinRange,
TArray< FFrameNumber > *  OutKeyTimes,
TArray< FKeyHandle > *  OutKeyHandles 
)

Get all the keys in the given range.

Resulting arrays must be the same size where indices correspond to both arrays.

参数
WithinRangeThe bounds to get keys for
OutKeyTimesArray to receive all key times within the given range
OutKeyHandlesArray to receive all key handles within the given range

◆ GetKeyTimes()

void FMovieSceneChannelData::GetKeyTimes ( TArrayView< const FKeyHandle >  InHandles,
TArrayView< FFrameNumber >  OutKeyTimes 
)

Get key times for a number of keys in the channel data

参数
InHandlesArray of key handles that should have their times set
OutKeyTimesArray of times that should be set for each key handle. Must be exactly the size of InHandles

◆ GetTimes()

FORCEINLINE TArrayView< FFrameNumber > FMovieSceneChannelData::GetTimes ( )
inline

Mutable access to this channel's key times.

注解
: Warning: any usage must keep times sorted. Any reordering of times will not be reflected in the values array.

◆ GetTotalRange()

TRange< FFrameNumber > FMovieSceneChannelData::GetTotalRange ( ) const

Compute the total time range of the channel data.

返回
The range of this channel data

◆ MoveKeyInternal()

int32 FMovieSceneChannelData::MoveKeyInternal ( int32  KeyIndex,
FFrameNumber  InNewTime 
)
protected

Move the key at index KeyIndex to a new time

返回
The index of the key in its new position

◆ Offset()

void FMovieSceneChannelData::Offset ( FFrameNumber  DeltaTime)

Offset the channel data by a given delta time

参数
DeltaTimeThe time to offset by

类成员变量说明

◆ Times

TArray<FFrameNumber>* FMovieSceneChannelData::Times
protected

Pointer to an external array of sorted times.

Must be kept in sync with a corresponding value array.


该结构体的文档由以下文件生成: