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 | |
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.
|
inline |
Add a new key time to the data structure
| InTime | The value of the time to add |
|
inline |
Attempt to find a key using a custom predicate
| InPredicate | Predicate function to use when searching |
|
inline |
Get the time that corresponds to the specified key handle
| KeyHandle | Handle to the key to get the time for. |
|
inlineprotected |
Get the time of the specified key index.
Index is assumed to be valid.
|
inline |
Iterate the times stored in the external data structure
|
inline |
Remove a key that corresponds to the specified key handle
| KeyHandle | Handle to the key to remove |
|
inline |
Set the time for a key that corresponds to the specified key handle
| KeyHandle | Handle to the key to set the time for |
| NewTime | The time to assign to this key |