TKeyFrameManipulator

Templated key frame manipulator that knows how to add, remove and (re)arrange key times.

Windows
MacOS
Linux

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

Name Description

Public function

TKeyFrameManipulator

(
    const TKeyFrameManipulator& Rhs
)

Public function

TKeyFrameManipulator

(
    TKeyFrameManipulator&& Rhs
)

Public function

TKeyFrameManipulator

(
    TArray< TimeType >* KeyTimesPa...,
    FKeyHandleLookupTable* Externa...
)

Construction from an externally owned array of times

Destructors

Name Description

Public function Virtual

~TKeyFrameManipulator()

Functions

Name Description

Public function

FKeyHandle

 

AddKey

(
    TimeTypeRef InTime
)

Add a new key time to the data structure

Protected function Const

int32

 

ComputeInsertIndex

(
    TimeTypeRef InTime,
    int32 StartAtIndex
)

Calculate the index at which to insert the given time such that the container remains sorted

Public function Const

TOptional< F...

 

FindKey

(
    const TFunctionRef< bool...
)

Attempt to find a key using a custom predicate

Protected function Const

int32

 

GetIndex

(
    FKeyHandle KeyHandle
)

Get the index that corresponds to the specified key handle

Protected function Const

FKeyHandle

 

GetKeyHandleFromIndex

(
    int32 Index
)

Get the handle that corresponds to the specified index

Public function Const

TOptional< T...

 

GetKeyTime

(
    FKeyHandle KeyHandle
)

Get the time that corresponds to the specified key handle

Protected function Const

TimeType

 

GetKeyTimeChecked

(
    int32 KeyIndex
)

Get the time of the specified key index. Index is assumed to be valid.

Protected function Const

FKeyHandle

 

InsertKeyImpl

(
    TimeTypeRef Time,
    int32 InsertIndex
)

Insert the specified time into our container at the specified index

Public function Const

TKeyTimeIter...

 

IterateKeys()

Iterate the times stored in the external data structure

Protected function

void

 

RelocateKeyImpl

(
    int32 OldIndex,
    int32 NewIndex
)

Move a key from one index to another

Public function

void

 

RemoveKey

(
    FKeyHandle KeyHandle
)

Remove a key that corresponds to the specified key handle

Public function

void

 

Reset()

Removes all keys.

Public function

void

 

SetKeyTime

(
    FKeyHandle KeyHandle,
    TimeTypeRef NewTime
)

Set the time for a key that corresponds to the specified key handle

Operators

Name Description

Public function

TKeyFrameMan...

 

operator=

(
    const TKeyFrameManipulator& Rhs
)

Public function

TKeyFrameMan...

 

operator=

(
    TKeyFrameManipulator&& Rhs
)

Typedefs

Name

Description

TimeTypeRef

Pass by value/ref parameter type.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss