Base class channel data utility that provides a consistent interface to a sorted array of times and handles.
更多...
#include <MovieSceneChannelData.h>
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
◆ FMovieSceneChannelData()
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 |
◆ AddKeyInternal()
| int32 FMovieSceneChannelData::AddKeyInternal |
( |
FFrameNumber |
InTime | ) |
|
|
protected |
Add a new key at the specified time
- 返回
- The index of the key in its new position
◆ ChangeFrameResolution()
| 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 |
◆ FindKey()
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 |
- 返回
- The index of the key closest to InTime and within InTolerance, or INDEX_NONE
◆ FindKeys()
| 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 |
◆ GetHandle()
| FKeyHandle FMovieSceneChannelData::GetHandle |
( |
int32 |
Index | ) |
|
Retrieve a key handle for the specified key time index
- 参数
-
| Index | The index to retrieve |
- 返回
- A key handle that identifies the key at the specified index, regardless of re-ordering
◆ GetIndex()
| int32 FMovieSceneChannelData::GetIndex |
( |
FKeyHandle |
Handle | ) |
|
Attempt to retrieve the index of key from its handle
- 参数
-
| Handle | The handle to retrieve |
- 返回
- The index of the key, or INDEX_NONE
◆ GetKeys()
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 |
◆ GetKeyTimes()
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 |
◆ GetTimes()
Mutable access to this channel's key times.
- 注解
- : Warning: any usage must keep times sorted. Any reordering of times will not be reflected in the values array.
◆ GetTotalRange()
Compute the total time range of the channel data.
- 返回
- The range of this channel data
◆ MoveKeyInternal()
| int32 FMovieSceneChannelData::MoveKeyInternal |
( |
int32 |
KeyIndex, |
|
|
FFrameNumber |
InNewTime |
|
) |
| |
|
protected |
Move the key at index KeyIndex to a new time
- 返回
- The index of the key in its new position
◆ Offset()
| void FMovieSceneChannelData::Offset |
( |
FFrameNumber |
DeltaTime | ) |
|
Offset the channel data by a given delta time
- 参数
-
| DeltaTime | The time to offset by |
◆ Times
Pointer to an external array of sorted times.
Must be kept in sync with a corresponding value array.
该结构体的文档由以下文件生成: