Navigation
API > API/Runtime > API/Runtime/Engine
A curve base class which enables key handles to index lookups.
| Name | FIndexedCurve |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/Curves/IndexedCurve.h |
| Include Path | #include "Curves/IndexedCurve.h" |
Syntax
USTRUCT ()
struct FIndexedCurve
Derived Classes
FIndexedCurve derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FIndexedCurve() |
Default constructor. | Curves/IndexedCurve.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FIndexedCurve() |
Curves/IndexedCurve.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FIndexedCurve * Duplicate() |
Allocates a duplicate of the curve | Curves/IndexedCurve.h | |
FKeyHandle GetFirstKeyHandle() |
Gets the key handle for the first key in the curve | Curves/IndexedCurve.h | |
int32 GetIndexSafe
(
FKeyHandle KeyHandle |
Gets the index of a handle, checks if the key handle is valid first. | Curves/IndexedCurve.h | |
TArray< FKeyHandle >::TConstIterator GetKeyHandleIterator() |
Const iterator for the handles. | Curves/IndexedCurve.h | |
virtual float GetKeyTime
(
FKeyHandle KeyHandle |
Get the time for the Key with the specified index. | Curves/IndexedCurve.h | |
FKeyHandle GetLastKeyHandle() |
Gets the key handle for the last key in the curve | Curves/IndexedCurve.h | |
FKeyHandle GetNextKey
(
FKeyHandle KeyHandle |
Get the next key given the key handle | Curves/IndexedCurve.h | |
virtual int32 GetNumKeys() |
Get number of keys in curve. | Curves/IndexedCurve.h | |
FKeyHandle GetPreviousKey
(
FKeyHandle KeyHandle |
Get the previous key given the key handle | Curves/IndexedCurve.h | |
bool IsKeyHandleValid
(
FKeyHandle KeyHandle |
Checks to see if the key handle is valid for this curve. | Curves/IndexedCurve.h | |
void ScaleCurve
(
float ScaleOrigin, |
Scales all keys about an origin, preserving order | Curves/IndexedCurve.h | |
void ScaleCurve
(
float ScaleOrigin, |
Curves/IndexedCurve.h | ||
virtual void SetKeyTime
(
FKeyHandle KeyHandle, |
Move a key to a new time. This may change the index of the key, so the new key index is returned. | Curves/IndexedCurve.h | |
void ShiftCurve
(
float DeltaTime |
Shifts all keys forwards or backwards in time by an even amount, preserving order | Curves/IndexedCurve.h | |
void ShiftCurve
(
float DeltaTime, |
Curves/IndexedCurve.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void EnsureAllIndicesHaveHandles() |
Makes sure our handles are all valid and correct. | Curves/IndexedCurve.h | |
void EnsureIndexHasAHandle
(
int32 KeyIndex |
Curves/IndexedCurve.h | ||
const int32 * FindIndex
(
FKeyHandle KeyHandle |
Gets the index of a handle . | Curves/IndexedCurve.h | |
int32 GetIndex
(
FKeyHandle KeyHandle |
Gets the index of a handle. | Curves/IndexedCurve.h | |
FKeyHandle GetKeyHandle
(
int32 KeyIndex |
Internal tool to get a handle from an index. | Curves/IndexedCurve.h |