engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FRichCurve结构体 参考

A rich, editable float curve 更多...

#include <RichCurve.h>

+ 类 FRichCurve 继承关系图:

Public 成员函数

virtual 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. 更多...
 
void AutoSetTangents (float Tension=0.f)
 Auto set tangents for any 'auto' keys in curve
 
virtual void BakeCurve (float SampleRate) final override
 Bake curve given the sample rate
 
void CompressCurve (struct FCompressedRichCurve &OutCurve, float ErrorThreshold=0.0001f, float SampleRate=120.0f) const
 Compresses a rich curve for efficient runtime storage and evaluation
 
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 rich curve at the specified time
 
const TArray< FRichCurveKey > & GetConstRefOfKeys () const
 Gets a const reference of the keys, so indices and handles can't be meddled with
 
TArray< FRichCurveKey > GetCopyOfKeys () const
 Gets a copy of the keys, so indices and handles can't be meddled with
 
FRichCurveKey GetFirstKey () const
 Quick accessors for the first and last keys
 
FRichCurveKey * GetFirstMatchingKey (const TArray< FKeyHandle > &KeyHandles)
 Get the first key that matches any of the given key handles.
 
FRichCurveKey & GetKey (FKeyHandle KeyHandle)
 Functions for getting keys based on handles
 
virtual ERichCurveInterpMode GetKeyInterpMode (FKeyHandle KeyHandle) const final override
 Get the interp mode of the specified key
 
TArray< FRichCurveKey >::TConstIterator GetKeyIterator () const
 Const iterator for the keys, so the indices and handles stay valid
 
ERichCurveTangentMode GetKeyTangentMode (FKeyHandle KeyHandle) const
 Get the tangent mode of the specified key
 
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 IsConstant (float Tolerance=SMALL_NUMBER) const
 Returns whether the curve is constant or not
 
bool IsEmpty () const
 Returns whether the curve is empty or not
 
bool operator== (const FRichCurve &Curve) const
 Determine if two RichCurves 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 KeyHandle, ERichCurveInterpMode NewInterpMode) final override
 Set the interp mode of the specified key
 
void SetKeys (const TArray< FRichCurveKey > &InKeys)
 Sets the keys with the keys. 更多...
 
void SetKeyTangentMode (FKeyHandle KeyHandle, ERichCurveTangentMode NewTangentMode, bool bAutoSetTangents=true)
 Set the tangent mode of the specified key
 
void SetKeyTangentWeightMode (FKeyHandle KeyHandle, ERichCurveTangentWeightMode NewTangentWeightMode, bool bAutoSetTangents=true)
 Set the tangent weight mode of the specified key
 
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 属性

TArray< FRichCurveKey > 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

成员函数说明

◆ AddKey()

virtual FKeyHandle FRichCurve::AddKey ( float  InTime,
float  InValue,
const bool  bUnwindRotation = false,
FKeyHandle  KeyHandle = FKeyHandle() 
)
finaloverridevirtual

Add a new key to the curve with the supplied Time and Value.

Returns the handle of the new key.

参数
bUnwindRotationWhen 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
KeyHandleOptionally can specify what handle this new key should have, otherwise, it'll make a new one

重载 FRealCurve .

◆ DeleteKey()

void FRichCurve::DeleteKey ( FKeyHandle  KeyHandle)
finaloverridevirtual

Remove the specified key from the curve.

参数
KeyHandleThe handle of the key to remove.
参见
AddKey, SetKeys

重载 FRealCurve .

◆ GetTimeRange()

virtual void FRichCurve::GetTimeRange ( float &  MinTime,
float &  MaxTime 
) const
finaloverridevirtual

Get range of input time values.

Outside this region curve continues constantly the start/end values.

重载 FRealCurve .

◆ SetKeys()

void FRichCurve::SetKeys ( const TArray< FRichCurveKey > &  InKeys)

Sets the keys with the keys.

Expects that the keys are already sorted.

参见
AddKey, DeleteKey

◆ UpdateOrAddKey()

virtual FKeyHandle FRichCurve::UpdateOrAddKey ( float  InTime,
float  InValue,
const bool  bUnwindRotation = false,
float  KeyTimeTolerance = KINDA_SMALL_NUMBER 
)
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 .


该结构体的文档由以下文件生成: