Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Curves
Inheritance Hierarchy
- IKeyFrameManipulator
- TKeyFrameManipulator
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Curves/IKeyFrameManipulator.h |
| Include | #include "Curves/IKeyFrameManipulator.h" |
Syntax
template<typename TimeType>
class TKeyFrameManipulator : private IKeyFrameManipulator< TimeType >
Remarks
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.
Constructors
| Type | Name | Description | |
|---|---|---|---|
TKeyFrameManipulator
(
const TKeyFrameManipulator& Rhs |
|||
TKeyFrameManipulator
(
TKeyFrameManipulator&& Rhs |
|||
TKeyFrameManipulator
(
TArray< TimeType >* KeyTimesParam, |
Construction from an externally owned array of times |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FKeyHandle | AddKey
(
TimeTypeRef InTime |
Add a new key time to the data structure | |
| int32 | ComputeInsertIndex
(
TimeTypeRef InTime, |
Calculate the index at which to insert the given time such that the container remains sorted | |
| TOptional< FKeyHandle > | FindKey
(
const TFunctionRef< bool(TimeTypeRef)>& InPredicate |
Attempt to find a key using a custom predicate | |
| int32 | GetIndex
(
FKeyHandle KeyHandle |
Get the index that corresponds to the specified key handle | |
| FKeyHandle | GetKeyHandleFromIndex
(
int32 Index |
Get the handle that corresponds to the specified index | |
| TOptional< TimeType > | GetKeyTime
(
FKeyHandle KeyHandle |
Get the time that corresponds to the specified key handle | |
| TimeType | GetKeyTimeChecked
(
int32 KeyIndex |
Get the time of the specified key index. | |
| FKeyHandle | InsertKeyImpl
(
TimeTypeRef Time, |
Insert the specified time into our container at the specified index | |
| TKeyTimeIterator< TimeType > | IterateKeys () |
Iterate the times stored in the external data structure | |
| void | RelocateKeyImpl
(
int32 OldIndex, |
Move a key from one index to another | |
| void | RemoveKey
(
FKeyHandle KeyHandle |
Remove a key that corresponds to the specified key handle | |
| void | Reset () |
Removes all keys. | |
| void | SetKeyTime
(
FKeyHandle KeyHandle, |
Set the time for a key that corresponds to the specified key handle |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TKeyFrameManipulator & | operator=
(
const TKeyFrameManipulator& Rhs |
||
| TKeyFrameManipulator & | operator=
(
TKeyFrameManipulator&& Rhs |
Typedefs
| Name | Description |
|---|---|
| TimeTypeRef | Pass by value/ref parameter type. |