Templated channel data utility class that provides a consistent interface for interacting with a channel's keys and values.
更多...
|
| 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 更多...
|
| |
| 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 更多...
|
| |
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.