Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Curves
Inheritance Hierarchy
- FIndexedCurve
- FRealCurve
- FSimpleCurve
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Curves/SimpleCurve.h |
Include | #include "Curves/SimpleCurve.h" |
Syntax
struct FSimpleCurve : public FRealCurve
Remarks
A rich, editable float curve
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TEnumAsByte< ERichCurveInterpMode > | InterpMode | Interpolation mode between this key and the next |
![]() |
TArray< FSimpleCurveKey > | Keys | Sorted array of keys |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FSimpleCurve () |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const TArray< FSimpleCurveKey > & | Gets a const reference of the keys, so indices and handles can't be meddled with | |
![]() ![]() |
TArray< FSimpleCurveKey > | Gets a copy of the keys, so indices and handles can't be meddled with | |
![]() ![]() |
FSimpleCurveKey | GetFirstKey () |
Quick accessors for the first and last keys |
![]() |
FSimpleCurveKey * | GetFirstMatchingKey
(
const TArray< FKeyHandle >& KeyHandles |
Get the first key that matches any of the given key handles. |
![]() |
FSimpleCurveKey & | GetKey
(
FKeyHandle KeyHandle |
Functions for getting keys based on handles |
![]() ![]() |
FSimpleCurveKey | GetKey
(
FKeyHandle KeyHandle |
Functions for getting keys based on handles |
![]() ![]() |
ERichCurveInterpMode | Get the interp mode used for keys in this curve | |
![]() ![]() |
TArray< FSimpleCurveKey >::TConstIterator | Const iterator for the keys, so the indices and handles stay valid | |
![]() ![]() |
FSimpleCurveKey | GetLastKey () |
|
![]() |
void | SetKeyInterpMode
(
ERichCurveInterpMode NewInterpMode |
|
![]() |
void | SetKeys
(
const TArray< FSimpleCurveKey >& InKeys |
Sets the keys with the keys.Expects that the keys are already sorted. |
Overridden from FRealCurve
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FKeyHandle | AddKey
(
float InTime, |
Add a new key to the curve with the supplied Time and Value. Returns the handle of the new key. |
![]() ![]() |
void | BakeCurve
(
float SampleRate, |
|
![]() ![]() |
void | BakeCurve
(
float SampleRate |
Bake curve given the sample rate |
![]() ![]() |
void | DeleteKey
(
FKeyHandle KeyHandle |
Remove the specified key from the curve. |
![]() ![]() ![]() |
float | Eval
(
float InTime, |
Evaluate this curve at the specified time |
![]() ![]() ![]() |
int32 | GetKeyIndex
(
float KeyTime, |
|
![]() ![]() ![]() |
ERichCurveInterpMode | GetKeyInterpMode
(
FKeyHandle KeyHandle |
Get the interp mode of the specified key |
![]() ![]() ![]() |
TPair< float, float > | GetKeyTimeValuePair
(
FKeyHandle KeyHandle |
Returns a |
![]() ![]() ![]() |
float | GetKeyValue
(
FKeyHandle KeyHandle |
Returns the value of the specified key |
![]() ![]() ![]() |
void | GetTimeRange
(
float& MinTime, |
Get range of input time values. |
![]() ![]() ![]() |
void | GetValueRange
(
float& MinValue, |
Get range of output values. |
![]() ![]() |
void | ReadjustTimeRange
(
float NewMinTimeRange, |
Resize curve length to the [MinTimeRange, MaxTimeRange] |
![]() ![]() ![]() |
void | RemapTimeValue
(
float& InTime, |
Remap InTime based on pre and post infinity extrapolation values |
![]() ![]() |
void | RemoveRedundantKeys
(
float Tolerance, |
Remove redundant keys, comparing against Tolerance |
![]() ![]() |
void | RemoveRedundantKeys
(
float Tolerance, |
|
![]() ![]() |
void | Reset () |
Clear all keys. |
![]() ![]() |
void | SetKeyInterpMode
(
FKeyHandle, |
Set the interp mode used for keys in this curve |
![]() ![]() |
void | SetKeyValue
(
FKeyHandle KeyHandle, |
Set the value of the specified key |
![]() ![]() |
FKeyHandle | UpdateOrAddKey
(
float InTime, |
Finds the key at InTime, and updates its value. |
Overridden from FIndexedCurve
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
FIndexedCurve * | Duplicate () |
Allocates a duplicate of the curve |
![]() ![]() ![]() |
float | GetKeyTime
(
FKeyHandle KeyHandle |
Get the time for the Key with the specified index. |
![]() ![]() ![]() |
int32 | GetNumKeys () |
Get number of keys in curve. |
![]() ![]() |
void | SetKeyTime
(
FKeyHandle KeyHandle, |
Move a key to a new time. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | operator==
(
const FSimpleCurve& Curve |
Determine if two SimpleCurves are the same |