![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MovieSceneChannelData.h>
Inheritance diagram for FMovieSceneChannelData:Public Member Functions | |
| TArrayView< const FFrameNumber > | GetTimes () const |
| TArrayView< FFrameNumber > | GetTimes () |
| MOVIESCENE_API FKeyHandle | GetHandle (int32 Index) |
| MOVIESCENE_API int32 | GetIndex (FKeyHandle Handle) |
| MOVIESCENE_API int32 | FindKey (FFrameNumber InTime, FFrameNumber InTolerance=0) |
| MOVIESCENE_API void | FindKeys (FFrameNumber InTime, int32 MaxNum, int32 &OutMinIndex, int32 &OutMaxIndex, int32 InTolerance) |
| MOVIESCENE_API TRange< FFrameNumber > | GetTotalRange () const |
| MOVIESCENE_API void | ChangeFrameResolution (FFrameRate SourceRate, FFrameRate DestinationRate) |
| MOVIESCENE_API void | GetKeys (const TRange< FFrameNumber > &WithinRange, TArray< FFrameNumber > *OutKeyTimes, TArray< FKeyHandle > *OutKeyHandles) |
| MOVIESCENE_API void | GetKeyTimes (TArrayView< const FKeyHandle > InHandles, TArrayView< FFrameNumber > OutKeyTimes) |
| MOVIESCENE_API void | Offset (FFrameNumber DeltaTime) |
Protected Member Functions | |
| MOVIESCENE_API | FMovieSceneChannelData (FMovieSceneChannel *InChannel, TArray< FFrameNumber > *InTimes, FKeyHandleLookupTable *InKeyHandles) |
| MOVIESCENE_API | FMovieSceneChannelData (TArray< FFrameNumber > *InTimes, FKeyHandleLookupTable *InKeyHandles, FMovieSceneChannel *InChannel=nullptr) |
| MOVIESCENE_API int32 | MoveKeyInternal (int32 KeyIndex, FFrameNumber InNewTime) |
| MOVIESCENE_API int32 | AddKeyInternal (FFrameNumber InTime) |
| MOVIESCENE_API void | ReplaceKeyHandlesInternal (TConstArrayView< int32 > KeyIndices, TConstArrayView< FKeyHandle > NewHandles) |
Protected Attributes | |
| TArray< FFrameNumber > * | Times |
| FKeyHandleLookupTable * | KeyHandles |
| FMovieSceneChannel * | OwningChannel |
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
|
protected |
Constructor that takes a non-owning pointer to an array of times and a key handle map
| InTimes | A pointer to an array that should be operated on by this class. Externally owned. |
| InKeyHandles | A key handle map used for persistent, order independent identification of keys |
| InChannel | A pointer to the owning channel. |
|
protected |
|
protected |
Add a new key at the specified time
| 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
| SourceRate | The frame rate the channel is currently in |
| DestinationRate | The new frame rate to convert the channel to |
| int32 FMovieSceneChannelData::FindKey | ( | FFrameNumber | InTime, |
| FFrameNumber | InTolerance = 0 |
||
| ) |
Attempt to find a key at a given time and tolerance
| InTime | The time at which to search |
| InTolerance | A tolerance of frame numbers to allow either side of the specified time |
| 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
| InTime | The time around which to search |
| MaxNum | A maximum number of times to find, starting with those closest to the predicate time |
| OutMin | The earliest index that met the conditions of the search |
| OutMax | The latest index that met the conditions of the search |
| InTolerance | The tolerance range to search around PredicateTime with |
| FKeyHandle FMovieSceneChannelData::GetHandle | ( | int32 | Index | ) |
Retrieve a key handle for the specified key time index
| Index | The index to retrieve |
| int32 FMovieSceneChannelData::GetIndex | ( | FKeyHandle | Handle | ) |
Attempt to retrieve the index of key from its handle
| Handle | The handle to retrieve |
| 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.
| WithinRange | The bounds to get keys for |
| OutKeyTimes | Array to receive all key times within the given range |
| OutKeyHandles | Array to receive all key handles within the given range |
| void FMovieSceneChannelData::GetKeyTimes | ( | TArrayView< const FKeyHandle > | InHandles, |
| TArrayView< FFrameNumber > | OutKeyTimes | ||
| ) |
Get key times for a number of keys in the channel data
| InHandles | Array of key handles that should have their times set |
| OutKeyTimes | Array of times that should be set for each key handle. Must be exactly the size of InHandles |
|
inline |
Mutable access to this channel's key times.
|
inline |
Read-only access to this channel's key times.
| TRange< FFrameNumber > FMovieSceneChannelData::GetTotalRange | ( | ) | const |
Compute the total time range of the channel data.
|
protected |
Move the key at index KeyIndex to a new time
| void FMovieSceneChannelData::Offset | ( | FFrameNumber | DeltaTime | ) |
Offset the channel data by a given delta time
| DeltaTime | The time to offset by |
|
protected |
Replaces the key handle at the given Index with NewHandle. Fails if the handle is already in use.
| KeyIndices | The index of the key to replace |
| NewHandles | The key handle instance that should be at the given index. |
|
protected |
Pointer to an external key handle map
|
protected |
Optional Pointer to the owning FMovieSceneChannel, should be set if the add,move, and delete callbacks are needed
|
protected |
Pointer to an external array of sorted times. Must be kept in sync with a corresponding value array.