A rich, editable float curve 更多...
#include <RealCurve.h>
类 FRealCurve 继承关系图:Public 成员函数 | |
| 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 属性 | |
| 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
|
virtual |
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 |
被 FRichCurve , 以及 FSimpleCurve 重载.
|
virtual |
Remove the specified key from the curve.
| KeyHandle | The handle of the key to remove. |
被 FRichCurve , 以及 FSimpleCurve 重载.
|
virtual |
Get range of input time values.
Outside this region curve continues constantly the start/end values.
被 FRichCurve , 以及 FSimpleCurve 重载.
|
virtual |
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
被 FRichCurve , 以及 FSimpleCurve 重载.