engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | 所有成员列表
TKeyFrameManipulator< TimeType > 模板类 参考

Templated key frame manipulator that knows how to add, remove and (re)arrange key times. 更多...

#include <KeyFrameManipulator.h>

+ 类 TKeyFrameManipulator< TimeType > 继承关系图:

Public 成员函数

FKeyHandle AddKey (TimeTypeRef InTime)
 Add a new key time to the data structure 更多...
 
TOptional< FKeyHandle > FindKey (const TFunctionRef< bool(TimeTypeRef)> &InPredicate) const
 Attempt to find a key using a custom predicate 更多...
 
TOptional< TimeType > GetKeyTime (FKeyHandle KeyHandle) const
 Get the time that corresponds to the specified key handle 更多...
 
TKeyTimeIterator< TimeType > IterateKeys () const
 Iterate the times stored in the external data structure 更多...
 
void RemoveKey (FKeyHandle KeyHandle)
 Remove a key that corresponds to the specified key handle 更多...
 
void Reset ()
 Removes all keys.
 
void SetKeyTime (FKeyHandle KeyHandle, TimeTypeRef NewTime)
 Set the time for a key that corresponds to the specified key handle 更多...
 
 TKeyFrameManipulator (TArray< TimeType > *KeyTimesParam, FKeyHandleLookupTable *ExternalKeyHandleLUT=nullptr)
 Construction from an externally owned array of times
 

Protected 成员函数

int32 ComputeInsertIndex (TimeTypeRef InTime, int32 StartAtIndex=0) const
 Calculate the index at which to insert the given time such that the container remains sorted
 
int32 GetIndex (FKeyHandle KeyHandle) const
 Get the index that corresponds to the specified key handle
 
FKeyHandle GetKeyHandleFromIndex (int32 Index) const
 Get the handle that corresponds to the specified index
 
TimeType GetKeyTimeChecked (int32 KeyIndex) const
 Get the time of the specified key index. 更多...
 
FKeyHandle InsertKeyImpl (TimeTypeRef Time, int32 InsertIndex) const
 Insert the specified time into our container at the specified index
 
void RelocateKeyImpl (int32 OldIndex, int32 NewIndex)
 Move a key from one index to another
 

详细描述

template<typename TimeType>
class TKeyFrameManipulator< TimeType >

Templated key frame manipulator that knows how to add, remove and (re)arrange key times.

Guarantees that any manipulation of a previously sorted time array, will remain sorted.

成员函数说明

◆ AddKey()

template<typename TimeType >
FKeyHandle TKeyFrameManipulator< TimeType >::AddKey ( TimeTypeRef  InTime)
inline

Add a new key time to the data structure

参数
InTimeThe value of the time to add
返回
A key handle for the new key

◆ FindKey()

template<typename TimeType >
TOptional< FKeyHandle > TKeyFrameManipulator< TimeType >::FindKey ( const TFunctionRef< bool(TimeTypeRef)> &  InPredicate) const
inline

Attempt to find a key using a custom predicate

参数
InPredicatePredicate function to use when searching
返回
The key's handle if found, or an empty container if not

◆ GetKeyTime()

template<typename TimeType >
TOptional< TimeType > TKeyFrameManipulator< TimeType >::GetKeyTime ( FKeyHandle  KeyHandle) const
inline

Get the time that corresponds to the specified key handle

参数
KeyHandleHandle to the key to get the time for.
返回
The time that this key exists at, or an empty container if it was not found

◆ GetKeyTimeChecked()

template<typename TimeType >
TimeType TKeyFrameManipulator< TimeType >::GetKeyTimeChecked ( int32  KeyIndex) const
inlineprotected

Get the time of the specified key index.

Index is assumed to be valid.

◆ IterateKeys()

template<typename TimeType >
TKeyTimeIterator< TimeType > TKeyFrameManipulator< TimeType >::IterateKeys ( ) const
inline

Iterate the times stored in the external data structure

返回
An iterator that iterates the keys in order, and can optionally supply handles

◆ RemoveKey()

template<typename TimeType >
void TKeyFrameManipulator< TimeType >::RemoveKey ( FKeyHandle  KeyHandle)
inline

Remove a key that corresponds to the specified key handle

参数
KeyHandleHandle to the key to remove

◆ SetKeyTime()

template<typename TimeType >
void TKeyFrameManipulator< TimeType >::SetKeyTime ( FKeyHandle  KeyHandle,
TimeTypeRef  NewTime 
)
inline

Set the time for a key that corresponds to the specified key handle

参数
KeyHandleHandle to the key to set the time for
NewTimeThe time to assign to this key

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