engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TMovieSceneChannelData< ValueType > 模板结构体 参考

Templated channel data utility class that provides a consistent interface for interacting with a channel's keys and values. 更多...

#include <MovieSceneChannelData.h>

+ 类 TMovieSceneChannelData< ValueType > 继承关系图:

Public 成员函数

int32 AddKey (FFrameNumber InTime, ParamType InValue)
 Add a new key at a given time 更多...
 
void DeleteKeys (TArrayView< const FKeyHandle > InHandles)
 Delete a number of keys from this channel data 更多...
 
void DeleteKeysFrom (FFrameNumber InTime, bool bDeleteKeysBefore)
 Delete keys before or after a specified time 更多...
 
void DuplicateKeys (TArrayView< const FKeyHandle > InHandles, TArrayView< FKeyHandle > OutNewHandles)
 Duplicate a number of keys within this channel data 更多...
 
FORCEINLINE TArrayView< ValueType > GetValues ()
 Mutable access to this channel's values
 
FORCEINLINE TArrayView< const ValueType > GetValues () const
 Read-only access to this channel's values
 
int32 MoveKey (int32 KeyIndex, FFrameNumber NewTime)
 Move the key at index KeyIndex to a new time 更多...
 
 operator TMovieSceneChannelData< const ValueType > ()
 Conversion to a constant version of this class
 
void RemoveKey (int32 KeyIndex)
 Remove the key at a given index 更多...
 
void Reset ()
 Remove all the keys from this channel
 
int32 SetKeyTime (int32 KeyIndex, FFrameNumber InNewTime)
 Move the key at index KeyIndex to a new time 更多...
 
void SetKeyTimes (TArrayView< const FKeyHandle > InHandles, TArrayView< const FFrameNumber > InKeyTimes)
 Set key times for a number of keys in this channel data 更多...
 
 TMovieSceneChannelData (TArray< FFrameNumber > *InTimes, TArray< ValueType > *InValues, FKeyHandleLookupTable *InKeyHandles)
 Constructor that takes a non-owning pointer to an array of times and values, and a key handle map 更多...
 
FKeyHandle UpdateOrAddKey (FFrameNumber InTime, ParamType InValue)
 Set the value of the key at InTime to InValue, adding a new key if necessary 更多...
 
- Public 成员函数 继承自 FMovieSceneChannelData
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 成员函数 继承自 FMovieSceneChannelData
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 属性 继承自 FMovieSceneChannelData
FKeyHandleLookupTable * KeyHandles
 Pointer to an external key handle map
 
TArray< FFrameNumber > * Times
 Pointer to an external array of sorted times. 更多...
 

详细描述

template<typename ValueType>
struct TMovieSceneChannelData< ValueType >

Templated channel data utility class that provides a consistent interface for interacting with a channel's keys and values.

Assumes that the supplied time and value arrays are already sorted ascendingly by time and are the same size. This class will maintain those invariants throughout its lifetime.

构造及析构函数说明

◆ TMovieSceneChannelData()

template<typename ValueType >
TMovieSceneChannelData< ValueType >::TMovieSceneChannelData ( TArray< FFrameNumber > *  InTimes,
TArray< ValueType > *  InValues,
FKeyHandleLookupTable *  InKeyHandles 
)
inline

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

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

成员函数说明

◆ AddKey()

template<typename ValueType >
int32 TMovieSceneChannelData< ValueType >::AddKey ( FFrameNumber  InTime,
ParamType  InValue 
)
inline

Add a new key at a given time

参数
InTimeThe time at which to add the new key
InValueThe value of the new key
返回
The index of the newly added key

◆ DeleteKeys()

template<typename ValueType >
void TMovieSceneChannelData< ValueType >::DeleteKeys ( TArrayView< const FKeyHandle >  InHandles)
inline

Delete a number of keys from this channel data

参数
InHandlesArray of key handles that should be deleted

◆ DeleteKeysFrom()

template<typename ValueType >
void TMovieSceneChannelData< ValueType >::DeleteKeysFrom ( FFrameNumber  InTime,
bool  bDeleteKeysBefore 
)
inline

Delete keys before or after a specified time

参数
InTimeDelete keys after this time
bDeleteKeysBeforeWhether to delete keys before the specified time

◆ DuplicateKeys()

template<typename ValueType >
void TMovieSceneChannelData< ValueType >::DuplicateKeys ( TArrayView< const FKeyHandle >  InHandles,
TArrayView< FKeyHandle >  OutNewHandles 
)
inline

Duplicate a number of keys within this channel data

参数
InHandlesArray of key handles that should be duplicated
OutNewHandlesArray view to receive key handles for each duplicated key. Must exactly mathc the size of InHandles.

◆ MoveKey()

template<typename ValueType >
int32 TMovieSceneChannelData< ValueType >::MoveKey ( int32  KeyIndex,
FFrameNumber  NewTime 
)
inline

Move the key at index KeyIndex to a new time

参数
KeyIndexThe index of the key to move
NewTimeThe time to move the key to
返回
The index of the key in its new position

◆ RemoveKey()

template<typename ValueType >
void TMovieSceneChannelData< ValueType >::RemoveKey ( int32  KeyIndex)
inline

Remove the key at a given index

参数
KeyIndexThe index of the key to remove

◆ SetKeyTime()

template<typename ValueType >
int32 TMovieSceneChannelData< ValueType >::SetKeyTime ( int32  KeyIndex,
FFrameNumber  InNewTime 
)
inline

Move the key at index KeyIndex to a new time

参数
KeyIndexThe index of the key to move
NewTimeThe time to move the key to
返回
The index of the key in its new position

◆ SetKeyTimes()

template<typename ValueType >
void TMovieSceneChannelData< ValueType >::SetKeyTimes ( TArrayView< const FKeyHandle >  InHandles,
TArrayView< const FFrameNumber >  InKeyTimes 
)
inline

Set key times for a number of keys in this channel data

参数
InHandlesArray of key handles that should have their times set
InKeyTimesArray of new times for each handle of the above array

◆ UpdateOrAddKey()

template<typename ValueType >
FKeyHandle TMovieSceneChannelData< ValueType >::UpdateOrAddKey ( FFrameNumber  InTime,
ParamType  InValue 
)
inline

Set the value of the key at InTime to InValue, adding a new key if necessary

参数
InTimeThe time at which to add the new key
InValueThe value of the new key
返回
The handle of the key

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