A rich, editable float curve 更多...
#include <SimpleCurve.h>
类 FSimpleCurve 继承关系图:Public 成员函数 | |
| FKeyHandle | AddKey (float InTime, float InValue, const bool bUnwindRotation=false, FKeyHandle KeyHandle=FKeyHandle()) final override |
| Add a new key to the curve with the supplied Time and Value. 更多... | |
| virtual void | BakeCurve (float SampleRate) final override |
| Bake curve given the sample rate | |
| virtual void | DeleteKey (FKeyHandle KeyHandle) final override |
| Remove the specified key from the curve. 更多... | |
| virtual FIndexedCurve * | Duplicate () const final |
| Allocates a duplicate of the curve | |
| virtual float | Eval (float InTime, float InDefaultValue=0.0f) const final override |
| Evaluate this curve at the specified time | |
| const TArray< FSimpleCurveKey > & | GetConstRefOfKeys () const |
| Gets a const reference of the keys, so indices and handles can't be meddled with | |
| TArray< FSimpleCurveKey > | GetCopyOfKeys () const |
| Gets a copy of the keys, so indices and handles can't be meddled with | |
| FSimpleCurveKey | GetFirstKey () const |
| 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 | |
| ERichCurveInterpMode | GetKeyInterpMode () const |
| Get the interp mode used for keys in this curve | |
| virtual ERichCurveInterpMode | GetKeyInterpMode (FKeyHandle KeyHandle) const final override |
| Get the interp mode of the specified key | |
| TArray< FSimpleCurveKey >::TConstIterator | GetKeyIterator () const |
| Const iterator for the keys, so the indices and handles stay valid | |
| virtual float | GetKeyTime (FKeyHandle KeyHandle) const final override |
| Get the time for the Key with the specified index. | |
| virtual TPair< float, float > | GetKeyTimeValuePair (FKeyHandle KeyHandle) const final override |
| Returns a <Time, Value> pair for the specified key | |
| virtual float | GetKeyValue (FKeyHandle KeyHandle) const final override |
| Returns the value of the specified key | |
| virtual int32 | GetNumKeys () const final override |
| Get number of keys in curve. | |
| virtual void | GetTimeRange (float &MinTime, float &MaxTime) const final override |
| Get range of input time values. 更多... | |
| virtual void | GetValueRange (float &MinValue, float &MaxValue) const final override |
| Get range of output values. | |
| bool | operator== (const FSimpleCurve &Curve) const |
| Determine if two SimpleCurves are the same | |
| virtual void | ReadjustTimeRange (float NewMinTimeRange, float NewMaxTimeRange, bool bInsert, float OldStartTime, float OldEndTime) final override |
| Resize curve length to the [MinTimeRange, MaxTimeRange] | |
| virtual void | RemapTimeValue (float &InTime, float &CycleValueOffset) const final override |
| Remap InTime based on pre and post infinity extrapolation values | |
| virtual void | RemoveRedundantKeys (float Tolerance) final override |
| Remove redundant keys, comparing against Tolerance | |
| virtual void | Reset () final override |
| Clear all keys. | |
| virtual void | SetKeyInterpMode (FKeyHandle, ERichCurveInterpMode NewInterpMode) final override |
| Set the interp mode used for keys in this curve | |
| void | SetKeys (const TArray< FSimpleCurveKey > &InKeys) |
| Sets the keys with the keys. 更多... | |
| virtual void | SetKeyTime (FKeyHandle KeyHandle, float NewTime) final override |
| Move a key to a new time. | |
| virtual void | SetKeyValue (FKeyHandle KeyHandle, float NewValue, bool bAutoSetTangents=true) final override |
| Set the value of the specified key | |
| virtual FKeyHandle | UpdateOrAddKey (float InTime, float InValue, const bool bUnwindRotation=false, float KeyTimeTolerance=KINDA_SMALL_NUMBER) final override |
| Finds the key at InTime, and updates its value. 更多... | |
Public 成员函数 继承自 FRealCurve | |
| virtual FKeyHandle | AddKey (float InTime, float InValue, const bool bUnwindRotation=false, FKeyHandle KeyHandle=FKeyHandle()) |
| Add a new key to the curve with the supplied Time and Value. 更多... | |
| virtual void | BakeCurve (float SampleRate) |
| Bake curve given the sample rate | |
| void | ClearDefaultValue () |
| Removes the default value for this curve. | |
| virtual void | DeleteKey (FKeyHandle KeyHandle) |
| Remove the specified key from the curve. 更多... | |
| virtual float | Eval (float InTime, float InDefaultValue=0.0f) const |
| Evaluate this curve at the specified time | |
| FKeyHandle | FindKey (float KeyTime, float KeyTimeTolerance=KINDA_SMALL_NUMBER) const |
| Finds a key a the specified time | |
| float | GetDefaultValue () const |
| Get the default value for the curve | |
| virtual TPair< float, float > | GetKeyTimeValuePair (FKeyHandle KeyHandle) const |
| Returns a <Time, Value> pair for the specified key | |
| virtual float | GetKeyValue (FKeyHandle KeyHandle) const |
| Returns the value of the specified key | |
| virtual void | GetTimeRange (float &MinTime, float &MaxTime) const |
| Get range of input time values. 更多... | |
| virtual void | GetValueRange (float &MinValue, float &MaxValue) const |
| Get range of output values. | |
| bool | HasAnyData () const |
| Check whether this curve has any data or not | |
| bool | KeyExistsAtTime (float KeyTime, float KeyTimeTolerance=KINDA_SMALL_NUMBER) const |
| True if a key exists already, false otherwise | |
| virtual void | ReadjustTimeRange (float NewMinTimeRange, float NewMaxTimeRange, bool bInsert, float OldStartTime, float OldEndTime) |
| Resize curve length to the [MinTimeRange, MaxTimeRange] | |
| virtual void | RemapTimeValue (float &InTime, float &CycleValueOffset) const |
| Remap InTime based on pre and post infinity extrapolation values | |
| virtual void | RemoveRedundantKeys (float Tolerance) |
| Remove redundant keys, comparing against Tolerance | |
| virtual void | Reset () |
| Clear all keys. | |
| void | SetDefaultValue (float InDefaultValue) |
| Set the default value of the curve | |
| virtual void | SetKeyValue (FKeyHandle KeyHandle, float NewValue, bool bAutoSetTangents=true) |
| Set the value of the specified key | |
| virtual FKeyHandle | UpdateOrAddKey (float InTime, float InValue, const bool bUnwindRotation=false, float KeyTimeTolerance=KINDA_SMALL_NUMBER) |
| Finds the key at InTime, and updates its value. 更多... | |
Public 成员函数 继承自 FIndexedCurve | |
| virtual FIndexedCurve * | Duplicate () const |
| Allocates a duplicate of the curve | |
| FIndexedCurve () | |
| Default constructor. | |
| FKeyHandle | GetFirstKeyHandle () const |
| Gets the key handle for the first key in the curve | |
| int32 | GetIndexSafe (FKeyHandle KeyHandle) const |
| Gets the index of a handle, checks if the key handle is valid first. | |
| TArray< FKeyHandle >::TConstIterator | GetKeyHandleIterator () const |
| Const iterator for the handles. | |
| virtual float | GetKeyTime (FKeyHandle KeyHandle) const |
| Get the time for the Key with the specified index. | |
| FKeyHandle | GetLastKeyHandle () const |
| Gets the key handle for the last key in the curve | |
| FKeyHandle | GetNextKey (FKeyHandle KeyHandle) const |
| Get the next key given the key handle | |
| virtual int32 | GetNumKeys () const |
| Get number of keys in curve. | |
| FKeyHandle | GetPreviousKey (FKeyHandle KeyHandle) const |
| Get the previous key given the key handle | |
| bool | IsKeyHandleValid (FKeyHandle KeyHandle) const |
| Checks to see if the key handle is valid for this curve. | |
| void | ScaleCurve (float ScaleOrigin, float ScaleFactor) |
| Scales all keys about an origin, preserving order | |
| virtual void | SetKeyTime (FKeyHandle KeyHandle, float NewTime) |
| Move a key to a new time. 更多... | |
| void | ShiftCurve (float DeltaTime) |
| Shifts all keys forwards or backwards in time by an even amount, preserving order | |
Public 属性 | |
| TEnumAsByte< ERichCurveInterpMode > | InterpMode |
| Interpolation mode between this key and the next | |
| TArray< FSimpleCurveKey > | Keys |
| Sorted array of keys | |
Public 属性 继承自 FRealCurve | |
| float | DefaultValue |
| Default value | |
| TEnumAsByte< ERichCurveExtrapolation > | PostInfinityExtrap |
| Post-infinity extrapolation state | |
| TEnumAsByte< ERichCurveExtrapolation > | PreInfinityExtrap |
| Pre-infinity extrapolation state | |
额外继承的成员函数 | |
Protected 成员函数 继承自 FIndexedCurve | |
| void | EnsureAllIndicesHaveHandles () const |
| Makes sure our handles are all valid and correct. | |
| const int32 * | FindIndex (FKeyHandle KeyHandle) const |
| Gets the index of a handle . | |
| int32 | GetIndex (FKeyHandle KeyHandle) const |
| Gets the index of a handle. | |
| FKeyHandle | GetKeyHandle (int32 KeyIndex) const |
| Internal tool to get a handle from an index. | |
Protected 属性 继承自 FIndexedCurve | |
| FKeyHandleMap | KeyHandlesToIndices |
| Map of which key handles go to which indices. | |
A rich, editable float curve
|
finaloverridevirtual |
Add a new key to the curve with the supplied Time and Value.
Returns the handle of the new key.
| bUnwindRotation | When true, the value will be treated like a rotation value in degrees, and will automatically be unwound to prevent flipping 360 degrees from the previous key |
| KeyHandle | Optionally can specify what handle this new key should have, otherwise, it'll make a new one |
重载 FRealCurve .
|
finaloverridevirtual |
Remove the specified key from the curve.
| KeyHandle | The handle of the key to remove. |
重载 FRealCurve .
|
finaloverridevirtual |
Get range of input time values.
Outside this region curve continues constantly the start/end values.
重载 FRealCurve .
| void FSimpleCurve::SetKeys | ( | const TArray< FSimpleCurveKey > & | InKeys | ) |
|
finaloverridevirtual |
Finds the key at InTime, and updates its value.
If it can't find the key within the KeyTimeTolerance, it adds one at that time
重载 FRealCurve .