![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IndexedCurve.h>
Inheritance diagram for FIndexedCurve:Public Member Functions | |
| FIndexedCurve () | |
| virtual | ~FIndexedCurve () |
| ENGINE_API int32 | GetIndexSafe (FKeyHandle KeyHandle) const |
| TArray< FKeyHandle >::TConstIterator | GetKeyHandleIterator () const |
| ENGINE_API bool | IsKeyHandleValid (FKeyHandle KeyHandle) const |
| FKeyHandle | GetFirstKeyHandle () const |
| FKeyHandle | GetLastKeyHandle () const |
| ENGINE_API FKeyHandle | GetNextKey (FKeyHandle KeyHandle) const |
| ENGINE_API FKeyHandle | GetPreviousKey (FKeyHandle KeyHandle) const |
| ENGINE_API void | ShiftCurve (float DeltaTime) |
| ENGINE_API void | ShiftCurve (float DeltaTime, const TSet< FKeyHandle > &KeyHandles) |
| ENGINE_API void | ScaleCurve (float ScaleOrigin, float ScaleFactor) |
| ENGINE_API void | ScaleCurve (float ScaleOrigin, float ScaleFactor, const TSet< FKeyHandle > &KeyHandles) |
Public Attributes | |
| virtual int32 | GetNumKeys () const PURE_VIRTUAL(FIndexedCurve |
| virtual void virtual SetKeyTime(FKeyHandle KeyHandle, float NewTime) PURE_VIRTUAL(FIndexedCurve float | GetKeyTime (FKeyHandle KeyHandle) const PURE_VIRTUAL(FIndexedCurve |
| virtual FIndexedCurve * | Duplicate () const PURE_VIRTUAL(FIndexedCurve |
Protected Member Functions | |
| void | EnsureAllIndicesHaveHandles () const |
| void | EnsureIndexHasAHandle (int32 KeyIndex) const |
| const int32 * | FindIndex (FKeyHandle KeyHandle) const |
| ENGINE_API int32 | GetIndex (FKeyHandle KeyHandle) const |
| ENGINE_API FKeyHandle | GetKeyHandle (int32 KeyIndex) const |
Protected Attributes | |
| FKeyHandleMap | KeyHandlesToIndices |
A curve base class which enables key handles to index lookups.
|
inline |
Default constructor.
|
inlinevirtual |
|
inlineprotected |
Makes sure our handles are all valid and correct.
|
inlineprotected |
Gets the index of a handle .
|
inline |
Gets the key handle for the first key in the curve
|
protected |
Gets the index of a handle.
| int32 FIndexedCurve::GetIndexSafe | ( | FKeyHandle | KeyHandle | ) | const |
Gets the index of a handle, checks if the key handle is valid first.
|
protected |
Internal tool to get a handle from an index.
|
inline |
Const iterator for the handles.
|
inline |
Gets the key handle for the last key in the curve
| FKeyHandle FIndexedCurve::GetNextKey | ( | FKeyHandle | KeyHandle | ) | const |
Get the next key given the key handle
| FKeyHandle FIndexedCurve::GetPreviousKey | ( | FKeyHandle | KeyHandle | ) | const |
Get the previous key given the key handle
| bool FIndexedCurve::IsKeyHandleValid | ( | FKeyHandle | KeyHandle | ) | const |
Checks to see if the key handle is valid for this curve.
Scales all keys about an origin, preserving order
| void FIndexedCurve::ScaleCurve | ( | float | ScaleOrigin, |
| float | ScaleFactor, | ||
| const TSet< FKeyHandle > & | KeyHandles | ||
| ) |
Shifts all keys forwards or backwards in time by an even amount, preserving order
| void FIndexedCurve::ShiftCurve | ( | float | DeltaTime, |
| const TSet< FKeyHandle > & | KeyHandles | ||
| ) |
| virtual FIndexedCurve* FIndexedCurve::Duplicate() const PURE_VIRTUAL(FIndexedCurve |
Allocates a duplicate of the curve
| virtual void virtual SetKeyTime (FKeyHandle KeyHandle, float NewTime) PURE_VIRTUAL(FIndexedCurve float FIndexedCurve::GetKeyTime(FKeyHandle KeyHandle) const PURE_VIRTUAL(FIndexedCurve |
Move a key to a new time. This may change the index of the key, so the new key index is returned. Get the time for the Key with the specified index.
| virtual int32 FIndexedCurve::GetNumKeys() const PURE_VIRTUAL(FIndexedCurve |
Get number of keys in curve.
|
mutableprotected |
Map of which key handles go to which indices.