#include <AttributeCurve.h>
|
| | FAttributeCurve () |
| |
| | FAttributeCurve (UScriptStruct *InScriptStruct) |
| |
| ENGINE_API | FAttributeCurve (const FAttributeCurve &OtherCurve) |
| |
| virtual | ~FAttributeCurve () |
| |
| ENGINE_API bool | Serialize (FArchive &Ar) |
| |
| virtual int32 | GetNumKeys () const override final |
| |
| virtual FAttributeCurve * | Duplicate () const final |
| |
| virtual ENGINE_API void | SetKeyTime (FKeyHandle KeyHandle, float NewTime) override final |
| |
| virtual ENGINE_API float | GetKeyTime (FKeyHandle KeyHandle) const override final |
| |
| ENGINE_API void | SetScriptStruct (UScriptStruct *InScriptStruct) |
| |
| const UScriptStruct * | GetScriptStruct () const |
| |
| ENGINE_API bool | CanEvaluate () const |
| |
| template<typename AttributeType > |
| AttributeType | Evaluate (float Time) const |
| |
| ENGINE_API bool | HasAnyData () const |
| |
| ENGINE_API void | Reset () |
| |
| ENGINE_API TArray< FAttributeKey >::TConstIterator | GetKeyIterator () const |
| |
| template<typename AttributeType > |
| FKeyHandle | AddTypedKey (float InTime, const AttributeType &InValue, FKeyHandle InKeyHandle=FKeyHandle()) |
| |
| ENGINE_API void | DeleteKey (FKeyHandle KeyHandle) |
| |
| template<typename AttributeType > |
| FKeyHandle | UpdateOrAddTypedKey (float InTime, const AttributeType &InValue, float KeyTimeTolerance=UE_KINDA_SMALL_NUMBER) |
| |
| FKeyHandle | UpdateOrAddTypedKey (float InTime, const void *InValue, const UScriptStruct *ValueType, float KeyTimeTolerance=UE_KINDA_SMALL_NUMBER) |
| |
| ENGINE_API FAttributeKey & | GetKey (FKeyHandle KeyHandle) |
| |
| ENGINE_API const FAttributeKey & | GetKey (FKeyHandle KeyHandle) const |
| |
| ENGINE_API FKeyHandle | FindKey (float KeyTime, float KeyTimeTolerance=UE_KINDA_SMALL_NUMBER) const |
| |
| ENGINE_API FKeyHandle | FindKeyBeforeOrAt (float KeyTime) const |
| |
| ENGINE_API void | RemoveRedundantKeys () |
| |
| ENGINE_API void | SetKeys (TArrayView< const float > InTimes, TArrayView< const void * > InValues) |
| |
| template<typename AttributeType > |
| void | GetTypedKeys (TArray< const AttributeType * > &OutKeys) const |
| |
| ENGINE_API TArray< FAttributeKey > | GetCopyOfKeys () const |
| |
| ENGINE_API const TArray< FAttributeKey > & | GetConstRefOfKeys () const |
| |
| ENGINE_API void | ReadjustTimeRange (float NewMinTimeRange, float NewMaxTimeRange, bool bInsert, float OldStartTime, float OldEndTime) |
| |
| | FIndexedCurve () |
| |
| virtual | ~FIndexedCurve () |
| |
| ENGINE_API int32 | GetIndexSafe (FKeyHandle KeyHandle) const |
| |
| TArray< FKeyHandle >::TConstIterator | GetKeyHandleIterator () const |
| |
| ENGINE_API bool | IsKeyHandleValid (FKeyHandle KeyHandle) const |
| |
| FKeyHandle | GetFirstKeyHandle () const |
| |
| FKeyHandle | GetLastKeyHandle () const |
| |
| ENGINE_API FKeyHandle | GetNextKey (FKeyHandle KeyHandle) const |
| |
| ENGINE_API FKeyHandle | GetPreviousKey (FKeyHandle KeyHandle) const |
| |
| ENGINE_API void | ShiftCurve (float DeltaTime) |
| |
| ENGINE_API void | ShiftCurve (float DeltaTime, const TSet< FKeyHandle > &KeyHandles) |
| |
| ENGINE_API void | ScaleCurve (float ScaleOrigin, float ScaleFactor) |
| |
| ENGINE_API void | ScaleCurve (float ScaleOrigin, float ScaleFactor, const TSet< FKeyHandle > &KeyHandles) |
| |
◆ FAttributeCurve() [1/3]
| FAttributeCurve::FAttributeCurve |
( |
| ) |
|
|
inline |
◆ FAttributeCurve() [2/3]
| FAttributeCurve::FAttributeCurve |
( |
UScriptStruct * |
InScriptStruct | ) |
|
|
inline |
◆ FAttributeCurve() [3/3]
◆ ~FAttributeCurve()
| virtual FAttributeCurve::~FAttributeCurve |
( |
| ) |
|
|
inlinevirtual |
◆ AddKey()
Add a new raw memory key (should be appropriately sized) to the curve with the supplied Time and Value.
◆ AddTypedKey()
Add a new typed key to the curve with the supplied Time and Value.
◆ CanEvaluate()
| bool FAttributeCurve::CanEvaluate |
( |
| ) |
const |
Whether or not the curve can be evaluated, based upon having a valid type and any keys
◆ DeleteKey()
Remove the specified key from the curve.
◆ Duplicate()
◆ Evaluate()
| AttributeType FAttributeCurve::Evaluate |
( |
float |
Time | ) |
const |
|
inline |
Evaluate the curve keys into a temporary value container
◆ EvaluateToPtr()
Evaluate the curve keys into the provided memory (should be appropriatedly sized)
◆ FindKey()
Finds the key at KeyTime and returns its handle. If it can't find the key within the KeyTimeTolerance, it will return an invalid handle
◆ FindKeyBeforeOrAt()
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.
◆ GetConstRefOfKeys()
◆ GetCopyOfKeys()
Return copy of contained key-data
◆ GetKey() [1/2]
Functions for getting keys based on handles
◆ GetKey() [2/2]
◆ GetKeyIterator()
Const iterator for the keys, so the indices and handles stay valid
◆ GetKeyTime()
◆ GetNumKeys()
|
|
inlinefinaloverridevirtual |
◆ GetScriptStruct()
◆ GetTypedKeys()
| void FAttributeCurve::GetTypedKeys |
( |
TArray< const AttributeType * > & |
OutKeys | ) |
const |
|
inline |
Populates OutKeys with typed value-ptrs
◆ HasAnyData()
| bool FAttributeCurve::HasAnyData |
( |
| ) |
const |
Check whether this curve has any data or not
◆ ReadjustTimeRange()
| void FAttributeCurve::ReadjustTimeRange |
( |
float |
NewMinTimeRange, |
|
|
float |
NewMaxTimeRange, |
|
|
bool |
bInsert, |
|
|
float |
OldStartTime, |
|
|
float |
OldEndTime |
|
) |
| |
Used for adjusting the internal key-data when owning object its playlength changes
◆ RemoveRedundantKeys()
| void FAttributeCurve::RemoveRedundantKeys |
( |
| ) |
|
Tries to reduce the number of keys required for accurate evaluation (zero error threshold)
◆ Reset()
| void FAttributeCurve::Reset |
( |
| ) |
|
◆ Serialize()
◆ SetKeys()
◆ SetKeyTime()
◆ SetScriptStruct()
End FIndexedCurve overrides Sets the underlying type for the curve, only possible when not containing any keys (see Reset)
◆ UpdateOrAddKey()
Finds the key at InTime, and updates its typed value. If it can't find the key within the KeyTimeTolerance, it adds one at that time
◆ UpdateOrAddTypedKey() [1/2]
Finds the key at InTime, and updates its typed value. If it can't find the key within the KeyTimeTolerance, it adds one at that time
◆ UpdateOrAddTypedKey() [2/2]
Finds the key at InTime, and updates its typed value. If it can't find the key within the KeyTimeTolerance, it adds one at that time
◆ UAnimSequence
◆ UE::Anim::Attributes
◆ bShouldInterpolate
| bool FAttributeCurve::bShouldInterpolate |
|
protected |
Whether or not to interpolate between keys of ScripStruct type
◆ Keys
The keys, ordered by time
◆ Operator
Operator instanced used for interpolating between keys
◆ ScriptStruct
◆ ScriptStructPath
The documentation for this struct was generated from the following files: