An integral curve, which holds the key time and the key value 更多...
#include <IntegralCurve.h>
类 FIntegralCurve 继承关系图:Public 成员函数 | |
| FKeyHandle | AddKey (float InTime, int32 InValue, FKeyHandle KeyHandle=FKeyHandle()) |
| Add a new key to the curve with the supplied Time and Value. 更多... | |
| void | ClearDefaultValue () |
| Removes the default value for this curve. | |
| void | DeleteKey (FKeyHandle KeyHandle) |
| Remove the specified key from the curve. | |
| virtual FIndexedCurve * | Duplicate () const final |
| Allocates a duplicate of the curve | |
| int32 | Evaluate (float Time, int32 InDefaultValue=0) const |
| Evaluates the value of an array of keys at a time | |
| FKeyHandle | FindKeyBeforeOrAt (float KeyTime) const |
| Gets the handle for the last key which is at or before the time requested. 更多... | |
| FIntegralCurve () | |
| Default constructor. | |
| int32 | GetDefaultValue () const |
| Get the default value for the curve | |
| FIntegralKey & | GetKey (FKeyHandle KeyHandle) |
| Functions for getting keys based on handles | |
| TArray< FIntegralKey >::TConstIterator | GetKeyIterator () const |
| Const iterator for the keys, so the indices and handles stay valid | |
| virtual float | GetKeyTime (FKeyHandle KeyHandle) const override final |
| Get the time for the Key with the specified index. | |
| int32 | GetKeyValue (FKeyHandle KeyHandle) const |
| Get the value for the Key with the specified index. | |
| virtual int32 | GetNumKeys () const override final |
| Get number of keys in curve. | |
| bool | GetUseDefaultValueBeforeFirstKey () const |
| Gets whether or not the default value should be used for evaluation for time values before the first key. | |
| bool | HasAnyData () const |
| Check whether this curve has any data or not | |
| void | RemoveRedundantKeys () |
| Tries to reduce the number of keys required for accurate evaluation (zero error threshold) | |
| void | SetDefaultValue (int32 InDefaultValue) |
| Set the default value for the curve | |
| virtual void | SetKeyTime (FKeyHandle KeyHandle, float NewTime) override final |
| Move a key to a new time. | |
| void | SetKeyValue (FKeyHandle KeyHandle, int32 NewValue) |
| Set the value of the key with the specified index. | |
| void | SetUseDefaultValueBeforeFirstKey (bool InbUseDefaultValueBeforeFirstKey) |
| Sets whether or not the default value should be used for evaluation for time values before the first key. | |
| FKeyHandle | UpdateOrAddKey (float InTime, int32 Value, float KeyTimeTolerance=KINDA_SMALL_NUMBER) |
| Finds the key at InTime, and updates its value. 更多... | |
| virtual | ~FIntegralCurve () |
| Virtual destructor. | |
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 | |
额外继承的成员函数 | |
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. | |
An integral curve, which holds the key time and the key value
| FKeyHandle FIntegralCurve::AddKey | ( | float | InTime, |
| int32 | InValue, | ||
| FKeyHandle | KeyHandle = FKeyHandle() |
||
| ) |
Add a new key to the curve with the supplied Time and Value.
| KeyHandle | Optionally can specify what handle this new key should have, otherwise, it'll make a new one |
| FKeyHandle FIntegralCurve::FindKeyBeforeOrAt | ( | float | KeyTime | ) | const |
Gets the handle for the last key which is at or before the time requested.
If there are no keys at or before the requested time, an invalid handle is returned.
| FKeyHandle FIntegralCurve::UpdateOrAddKey | ( | float | InTime, |
| int32 | Value, | ||
| float | KeyTimeTolerance = KINDA_SMALL_NUMBER |
||
| ) |
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