#include <kfcurve.h>
Definition at line 512 of file kfcurve.h.
Public Member Functions |
|
KFCurveKey () | |
KFBX_FCURVE_INLINE void | Set (KTime pTime, kFCurveDouble pValue, kFCurveInterpolation pInterpolation=KFCURVE_INTERPOLATION_CUBIC, kFCurveTangeantMode pTangentMode=KFCURVE_TANGEANT_AUTO, kFCurveDouble pData0=0.0, kFCurveDouble pData1=0.0, kFCurveTangeantWeightMode pTangentWeightMode=KFCURVE_WEIGHTED_NONE, kFCurveDouble pWeight0=KFCURVE_DEFAULT_WEIGHT, kFCurveDouble pWeight1=KFCURVE_DEFAULT_WEIGHT, kFCurveDouble pVelocity0=KFCURVE_DEFAULT_VELOCITY, kFCurveDouble pVelocity1=KFCURVE_DEFAULT_VELOCITY) |
Set a key. |
|
KFBX_FCURVE_INLINE void | SetTCB (KTime pTime, kFCurveDouble pValue, float pData0=0.0f, float pData1=0.0f, float pData2=0.0f) |
Set a key with cubic interpolation, TCB
tangent mode. |
|
KFBX_FCURVE_INLINE void | Set (KFCurveKey &pSource) |
Key assignment. |
|
KFBX_FCURVE_INLINE kFCurveInterpolation |
GetInterpolation () const |
Get key interpolation type. |
|
KFBX_FCURVE_INLINE void | SetInterpolation (kFCurveInterpolation pInterpolation) |
Set key interpolation type. |
|
KFBX_FCURVE_INLINE kFCurveConstantMode |
GetConstantMode () const |
Get key constant mode. |
|
KFBX_FCURVE_INLINE kFCurveTangeantMode |
GetTangeantMode (bool pIncludeOverrides=false) const |
Get key tangent mode. |
|
KFBX_FCURVE_INLINE kFCurveTangeantWeightMode |
GetTangeantWeightMode () const |
Get key tangent weight mode. |
|
KFBX_FCURVE_INLINE kFCurveTangeantVelocityMode |
GetTangeantVelocityMode () const |
Get key tangent velocity mode. |
|
KFBX_FCURVE_INLINE void | SetConstantMode (kFCurveConstantMode pMode) |
Set key constant mode. |
|
KFBX_FCURVE_INLINE void | SetTangeantMode (kFCurveTangeantMode pTangent, bool pIgnoreAutoTimeIndepedentConversion=false) |
Set key tangent mode. |
|
KFBX_FCURVE_INLINE void | SetTangeantWeightMode (kFCurveTangeantWeightMode pTangentWeightMode, kFCurveTangeantWeightMode pMask=KFCURVE_WEIGHTED_ALL) |
Set key tangent weight mode as double value
(cubic interpolation, non TCB tangent mode). |
|
KFBX_FCURVE_INLINE void | SetTangeantVelocityMode (kFCurveTangeantVelocityMode pTangentVelocityMode, kFCurveTangeantVelocityMode pMask=KFCURVE_VELOCITY_ALL) |
Set key tangent velocity mode as double
value (cubic interpolation, non TCB tangent mode). |
|
KFBX_FCURVE_INLINE void | SetTangentWeightAndAdjustTangent (EKFCurveDataIndex pIndex, kFCurveDouble pWeight) |
Adjust the actual tangent of the key so that
the tangent control point (tangent extremity) stays closer to where
it should be. |
|
KFBX_FCURVE_INLINE kFCurveDouble | GetDataDouble (EKFCurveDataIndex pIndex) const |
Get key data as double value (cubic
interpolation, non TCB tangent mode). |
|
KFBX_FCURVE_INLINE void | SetDataDouble (EKFCurveDataIndex pIndex, kFCurveDouble pValue) |
Set data as double value (cubic
interpolation, non TCB tangent mode). |
|
KFBX_FCURVE_INLINE float | GetDataFloat (EKFCurveDataIndex pIndex) const |
Get key data as float value (cubic
interpolation, TCB tangent mode). |
|
KFBX_FCURVE_INLINE void | SetDataFloat (EKFCurveDataIndex pIndex, float pValue) |
Set data as float value (cubic
interpolation, TCB tangent mode). |
|
KFBX_FCURVE_INLINE float * | GetDataPtr () const |
Get key data as a pointer Warning: not
supported in 'double' mode. |
|
KFBX_FCURVE_INLINE kFCurveDouble | GetValue () const |
Get key value. |
|
KFBX_FCURVE_INLINE void | SetValue (kFCurveDouble pValue) |
Set key value. |
|
KFBX_FCURVE_INLINE void | IncValue (kFCurveDouble pValue) |
Increment key value. |
|
KFBX_FCURVE_INLINE void | MultValue (kFCurveDouble pValue) |
Multiply key value. |
|
KFBX_FCURVE_INLINE KTime | GetTime () const |
Get key time. |
|
KFBX_FCURVE_INLINE void | SetTime (KTime pTime) |
Set key time. |
|
KFBX_FCURVE_INLINE void | IncTime (KTime pTime) |
Increment key time. |
|
KFBX_FCURVE_INLINE void | SetSelected (bool pSelected) |
Set if key is currently selected. |
|
KFBX_FCURVE_INLINE bool | GetSelected () const |
Return if key is currently selected.
|
|
KFBX_FCURVE_INLINE void | SetMarkedForManipulation (bool pMark) |
Set if key is currently marked for
manipulation. |
|
KFBX_FCURVE_INLINE bool | GetMarkedForManipulation () const |
Return if key is currently marked for
manipulation. |
|
KFBX_FCURVE_INLINE void | SetTangeantVisibility (kFCurveTangeantVisibility pVisibility) |
Set tangent visibility mode. |
|
KFBX_FCURVE_INLINE kFCurveTangeantVisibility |
GetTangeantVisibility () const |
Return tangent visibility mode. |
|
KFBX_FCURVE_INLINE void | SetBreak (bool pVal) |
Set/Unset Break tangent Only valid for User
and Auto keys. |
|
KFBX_FCURVE_INLINE bool | GetBreak () const |
Get if tangent is break Only valid for User
and Auto keys. |
|
KFBX_FCURVE_INLINE void | Init () |
Initialize key. |
KFCurveKey | ( | ) | [inline] |
KFBX_FCURVE_INLINE void Set | ( | KTime | pTime, | |
kFCurveDouble | pValue, | |||
kFCurveInterpolation | pInterpolation =
KFCURVE_INTERPOLATION_CUBIC , |
|||
kFCurveTangeantMode | pTangentMode =
KFCURVE_TANGEANT_AUTO , |
|||
kFCurveDouble | pData0 = 0.0 , |
|||
kFCurveDouble | pData1 = 0.0 , |
|||
kFCurveTangeantWeightMode | pTangentWeightMode =
KFCURVE_WEIGHTED_NONE , |
|||
kFCurveDouble | pWeight0 =
KFCURVE_DEFAULT_WEIGHT , |
|||
kFCurveDouble | pWeight1 =
KFCURVE_DEFAULT_WEIGHT , |
|||
kFCurveDouble | pVelocity0 =
KFCURVE_DEFAULT_VELOCITY , |
|||
kFCurveDouble | pVelocity1 =
KFCURVE_DEFAULT_VELOCITY |
|||
) |
Set a key.
Use SetTCB() to set a key with cubic interpolation and TCB tangent type.
pTime | Key time. | |
pValue | Key value. | |
pInterpolation | Key interpolation type. Interpolation types are: KFCURVE_INTERPOLATION_CONSTANT, KFCURVE_INTERPOLATION_LINEAR, KFCURVE_INTERPOLATION_CUBIC | |
pTangentMode | Key tangent mode (meaningful for cubic interpolation only). Tangent modes are: KFCURVE_TANGEANT_AUTO, KFCURVE_TANGEANT_USER, KFCURVE_TANGEANT_BREAK | |
pData0 | Right slope. | |
pData1 | Next left slope. | |
pTangentWeightMode | Weight mode if used KFCURVE_WEIGHTED_NONE KFCURVE_WEIGHTED_RIGHT KFCURVE_WEIGHTED_NEXT_LEFT KFCURVE_WEIGHTED_ALL | |
pWeight0 | Right slope weight. | |
pWeight1 | Next left slope weight. | |
pVelocity0 | Right velocity. | |
pVelocity1 | Next left velocity. |
Definition at line 2485 of file kfcurve.h.
References K_ASSERT, KFCURVE_INTERPOLATION_CUBIC, KFCURVE_TANGEANT_SHOW_NONE, KFCURVE_TANGEANT_TCB, KFCURVEKEY_NEXT_LEFT_SLOPE, KFCURVEKEY_NEXT_LEFT_VELOCITY, KFCURVEKEY_NEXT_LEFT_WEIGHT, KFCURVEKEY_RIGHT_SLOPE, KFCURVEKEY_RIGHT_VELOCITY, KFCURVEKEY_RIGHT_WEIGHT, SetDataDouble(), SetInterpolation(), SetTangeantMode(), SetTangeantVisibility(), SetTangeantWeightMode(), SetTime(), and SetValue().
KFBX_FCURVE_INLINE void SetTCB | ( | KTime | pTime, | |
kFCurveDouble | pValue, | |||
float | pData0 = 0.0f , |
|||
float | pData1 = 0.0f , |
|||
float | pData2 = 0.0f |
|||
) |
Set a key with cubic interpolation, TCB tangent mode.
pTime | Key time. | |
pValue | Key value. | |
pData0 | Tension. | |
pData1 | Continuity. | |
pData2 | Bias. |
Definition at line 2528 of file kfcurve.h.
References KFCURVE_INTERPOLATION_CUBIC, KFCURVE_TANGEANT_SHOW_NONE, KFCURVE_TANGEANT_TCB, KFCURVEKEY_TCB_BIAS, KFCURVEKEY_TCB_CONTINUITY, KFCURVEKEY_TCB_TENSION, SetDataFloat(), SetInterpolation(), SetTangeantMode(), SetTangeantVisibility(), SetTime(), and SetValue().
KFBX_FCURVE_INLINE void Set | ( | KFCurveKey & | pSource | ) |
KFBX_FCURVE_INLINE kFCurveInterpolation GetInterpolation | ( | ) | const |
Get key interpolation type.
Interpolation types are: KFCURVE_INTERPOLATION_CONSTANT, KFCURVE_INTERPOLATION_LINEAR, KFCURVE_INTERPOLATION_CUBIC
Definition at line 2551 of file kfcurve.h.
References KFCURVE_INTERPOLATION_ALL.
Referenced by GetBreak(), SetBreak(), SetConstantMode(), and SetTangeantMode().
KFBX_FCURVE_INLINE void SetInterpolation | ( | kFCurveInterpolation | pInterpolation | ) |
Set key interpolation type.
pInterpolation | Key interpolation type. Interpolation types are: KFCURVE_INTERPOLATION_CONSTANT, KFCURVE_INTERPOLATION_LINEAR, KFCURVE_INTERPOLATION_CUBIC |
Definition at line 2579 of file kfcurve.h.
References K_ASSERT_MSG, KFCURVE_INTERPOLATION_ALL, KFCURVE_INTERPOLATION_CONSTANT, KFCURVE_INTERPOLATION_CUBIC, KFCURVE_INTERPOLATION_LINEAR, KFCURVE_VELOCITY_NONE, KFCURVE_WEIGHTED_NONE, KFCURVEKEY_NEXT_LEFT_VELOCITY, KFCURVEKEY_NEXT_LEFT_WEIGHT, KFCURVEKEY_RIGHT_VELOCITY, KFCURVEKEY_RIGHT_WEIGHT, SetDataDouble(), SetTangeantVelocityMode(), and SetTangeantWeightMode().
Referenced by Set(), KPriFCurveKeyAttr::Set(), and SetTCB().
KFBX_FCURVE_INLINE kFCurveConstantMode GetConstantMode | ( | ) | const |
Get key constant mode.
Warning: This method is meaningful for constant interpolation only. Using this method for non constant interpolated key will return unpredicted value. Constant modes are: KFCURVE_CONSTANT_STANDARD KFCURVE_CONSTANT_NEXT
Definition at line 2605 of file kfcurve.h.
References KFCURVE_CONSTANT_ALL.
KFBX_FCURVE_INLINE kFCurveTangeantMode GetTangeantMode | ( | bool | pIncludeOverrides =
false |
) | const |
Get key tangent mode.
pIncludeOverrides | Warning: This method is meaningful for cubic interpolation only. Using this method for non cubic interpolated key will return unpredicted value. Tangent modes are: KFCURVE_TANGEANT_AUTO, KFCURVE_TANGEANT_AUTO_BREAK KFCURVE_TANGEANT_TCB, KFCURVE_TANGEANT_USER, KFCURVE_TANGEANT_BREAK |
Definition at line 2622 of file kfcurve.h.
References KFCURVE_TANGEANT_ALL, and KFCURVE_TANGEANT_TYPE_MASK.
Referenced by GetBreak(), and SetBreak().
KFBX_FCURVE_INLINE kFCurveTangeantWeightMode GetTangeantWeightMode | ( | ) | const |
Get key tangent weight mode.
Warning: This method is meaningful for cubic interpolation only. Tangent weight modes are: KFCURVE_WEIGHTED_NONE, KFCURVE_WEIGHTED_RIGHT, KFCURVE_WEIGHTED_NEXT_LEFT, KFCURVE_WEIGHTED_ALL
Definition at line 2685 of file kfcurve.h.
References KFCURVE_WEIGHTED_ALL.
KFBX_FCURVE_INLINE kFCurveTangeantVelocityMode GetTangeantVelocityMode | ( | ) | const |
Get key tangent velocity mode.
Warning: This method is meaningful for cubic interpolation only. Tangent weight modes are: KFCURVE_VELOCITY_NONE, KFCURVE_VELOCITY_RIGHT, KFCURVE_VELOCITY_NEXT_LEFT, KFCURVE_VELOCITY_ALL
Definition at line 2708 of file kfcurve.h.
References KFCURVE_VELOCITY_ALL.
KFBX_FCURVE_INLINE void SetConstantMode | ( | kFCurveConstantMode | pMode | ) |
Set key constant mode.
Warning: This method is meaningful for constant interpolation only.
pMode | Key constant mode. Constant modes are: KFCURVE_CONSTANT_STANDARD KFCURVE_CONSTANT_NEXT |
Definition at line 2643 of file kfcurve.h.
References GetInterpolation(), K_ASSERT_MSG, KFCURVE_CONSTANT_ALL, KFCURVE_CONSTANT_NEXT, KFCURVE_CONSTANT_STANDARD, and KFCURVE_INTERPOLATION_CONSTANT.
KFBX_FCURVE_INLINE void SetTangeantMode | ( | kFCurveTangeantMode | pTangent, | |
bool | pIgnoreAutoTimeIndepedentConversion
= false |
|||
) |
Set key tangent mode.
Warning: This method is meaningful for cubic interpolation only.
pTangent | Key tangent mode. Tangent modes are: KFCURVE_TANGEANT_AUTO, KFCURVE_TANGEANT_AUTO_BREAK KFCURVE_TANGEANT_TCB, KFCURVE_TANGEANT_USER, KFCURVE_TANGEANT_BREAK | |
pIgnoreAutoTimeIndepedentConversion | true ignore the auto time independent conversion flag. |
Definition at line 2666 of file kfcurve.h.
References GetInterpolation(), K_ASSERT_MSG, KFCURVE_CONSTANT_ALL, KFCURVE_GENERIC_TIME_INDEPENDENT, KFCURVE_INTERPOLATION_CONSTANT, KFCURVE_INTERPOLATION_CUBIC, KFCURVE_TANGEANT_ALL, and KFCURVE_TANGEANT_AUTO.
Referenced by Set(), KPriFCurveKeyAttr::Set(), and SetTCB().
KFBX_FCURVE_INLINE void SetTangeantWeightMode | ( | kFCurveTangeantWeightMode | pTangentWeightMode, | |
kFCurveTangeantWeightMode | pMask =
KFCURVE_WEIGHTED_ALL |
|||
) |
Set key tangent weight mode as double value (cubic interpolation, non TCB tangent mode).
Warning: This method is meaningful for cubic interpolation only.
pTangentWeightMode | Weight mode KFCURVE_WEIGHTED_NONE KFCURVE_WEIGHTED_RIGHT KFCURVE_WEIGHTED_NEXT_LEFT KFCURVE_WEIGHTED_ALL | |
pMask | Used to select the affected tangents KFCURVE_WEIGHTED_RIGHT KFCURVE_WEIGHTED_NEXT_LEFT KFCURVE_WEIGHTED_ALL |
Definition at line 2696 of file kfcurve.h.
References KFCURVE_WEIGHTED_ALL.
Referenced by Set(), KPriFCurveKeyAttr::Set(), and SetInterpolation().
KFBX_FCURVE_INLINE void SetTangeantVelocityMode | ( | kFCurveTangeantVelocityMode | pTangentVelocityMode, | |
kFCurveTangeantVelocityMode | pMask =
KFCURVE_VELOCITY_ALL |
|||
) |
Set key tangent velocity mode as double value (cubic interpolation, non TCB tangent mode).
Warning: This method is meaningful for cubic interpolation only.
pTangentVelocityMode | Weight mode KFCURVE_VELOCITY_NONE KFCURVE_VELOCITY_RIGHT KFCURVE_VELOCITY_NEXT_LEFT KFCURVE_VELOCITY_ALL | |
pMask | Used to select the affected tangents KFCURVE_VELOCITY_RIGHT KFCURVE_VELOCITY_NEXT_LEFT KFCURVE_VELOCITY_ALL |
Definition at line 2737 of file kfcurve.h.
References KFCURVE_VELOCITY_ALL.
Referenced by SetInterpolation().
KFBX_FCURVE_INLINE void SetTangentWeightAndAdjustTangent | ( | EKFCurveDataIndex | pIndex, | |
kFCurveDouble | pWeight | |||
) |
Adjust the actual tangent of the key so that the tangent control point (tangent extremity) stays closer to where it should be.
This is required because the weight value gets imprecise when it is small (it is stored as a fixed point value). This method must be called when setting the weight coming from a source where the precision is the same. It must be called after the tangent value has been set. Warning: Do not use this call repetitively (from an interactive editor for example) because this function will create imprecision on the tangent value.
pIndex | FCurveDataIndex KFCURVEKEY_RIGHT_SLOPE KFCURVEKEY_NEXT_LEFT_SLOPE KFCURVEKEY_WEIGHTS KFCURVEKEY_RIGHT_WEIGHT KFCURVEKEY_NEXT_LEFT_WEIGHT KFCURVEKEY_VELOCITY KFCURVEKEY_RIGHT_VELOCITY KFCURVEKEY_NEXT_LEFT_VELOCITY KFCURVEKEY_TCB_TENSION KFCURVEKEY_TCB_CONTINUITY KFCURVEKEY_TCB_BIAS KFCURVEKEY_RIGHT_AUTO KFCURVEKEY_NEXT_LEFT_AUTO | |
pWeight | New tangent weight value. |
Definition at line 2722 of file kfcurve.h.
References TangentWeightAndAdjustTangent().
KFBX_FCURVE_INLINE kFCurveDouble GetDataDouble | ( | EKFCurveDataIndex | pIndex | ) | const |
Get key data as double value (cubic interpolation, non TCB tangent mode).
Warning: Using this method for other than cubic interpolated key (linear, constant) will return unpredicted values. Warning: Slope data is inconsistent for automatic tangent mode. Use KFCurve::EvaluateLeftDerivative() and KFCurve::EvaluateRightDerivative() to find slope values. Warning: Using this method for TCB tangent mode key will return unpredicted values. Use KFCurve::GetDataFloat() instead.
pIndex | Data index, either KFCURVEKEY_RIGHT_SLOPE, KFCURVEKEY_NEXT_LEFT_SLOPE. KFCURVEKEY_NEXT_RIGHT_WEIGHT. KFCURVEKEY_NEXT_LEFT_WEIGHT |
Definition at line 2789 of file kfcurve.h.
References KFCURVEKEY_WEIGHTS.
KFBX_FCURVE_INLINE void SetDataDouble | ( | EKFCurveDataIndex | pIndex, | |
kFCurveDouble | pValue | |||
) |
Set data as double value (cubic interpolation, non TCB tangent mode).
Warning: Using this method for other than cubic interpolated key (linear, constant) is irrelevant. Warning: Slope data is inconsistent for automatic tangent mode. Therefore, it is irrelevant to use this method on automatic tangent mode keys. Warning: Using this method for a TCB tangent mode key will result in unpredictable curve behavior for this key. Use KFCurve::SetDataFloat() instead.
pIndex | Data index, either KFCURVEKEY_RIGHT_SLOPE, KFCURVEKEY_NEXT_LEFT_SLOPE. KFCURVEKEY_NEXT_RIGHT_WEIGHT. KFCURVEKEY_NEXT_LEFT_WEIGHT | |
pValue | The data value to set (a slope or a weight). |
Definition at line 2830 of file kfcurve.h.
References KFCURVEKEY_NEXT_LEFT_WEIGHT, KFCURVEKEY_RIGHT_WEIGHT, and KFCURVEKEY_WEIGHTS.
Referenced by Set(), KPriFCurveKeyAttr::Set(), and SetInterpolation().
KFBX_FCURVE_INLINE float GetDataFloat | ( | EKFCurveDataIndex | pIndex | ) | const |
Get key data as float value (cubic interpolation, TCB tangent mode).
Warning: Using this method for any key but a cubic interpolated, in TCB tangent mode, will return unpredicted values.
pIndex | Data index, either KFCURVEKEY_TCB_TENSION, KFCURVEKEY_TCB_CONTINUITY or KFCURVEKEY_TCB_BIAS. |
KFBX_FCURVE_INLINE void SetDataFloat | ( | EKFCurveDataIndex | pIndex, | |
float | pValue | |||
) |
Set data as float value (cubic interpolation, TCB tangent mode).
Warning: Using this method for any key but a cubic interpolated, in TCB tangent mode, will return unpredicted values.
pIndex | Data index, either KFCURVEKEY_TCB_TENSION, KFCURVEKEY_TCB_CONTINUITY or KFCURVEKEY_TCB_BIAS. | |
pValue | The data value to set. |
Definition at line 2870 of file kfcurve.h.
Referenced by SetTCB().
KFBX_FCURVE_INLINE float * GetDataPtr | ( | ) | const |
KFBX_FCURVE_INLINE kFCurveDouble GetValue | ( | ) | const |
KFBX_FCURVE_INLINE void SetValue | ( | kFCurveDouble | pValue | ) |
Set key value.
pValue | Key value to set. |
Definition at line 2901 of file kfcurve.h.
Referenced by Set(), KPriFCurveKey::Set(), and SetTCB().
KFBX_FCURVE_INLINE void IncValue | ( | kFCurveDouble | pValue | ) |
KFBX_FCURVE_INLINE void MultValue | ( | kFCurveDouble | pValue | ) |
KFBX_FCURVE_INLINE KTime GetTime | ( | ) | const |
Get key time.
Definition at line 2931 of file kfcurve.h.
Referenced by KFbxAnimCurveKFCurveKey::GetTime().
KFBX_FCURVE_INLINE void SetTime | ( | KTime | pTime | ) |
Set key time.
pTime | Key time (time at which this key is occurring). |
Definition at line 2944 of file kfcurve.h.
References K_ASSERT_MSG, KTIME_INFINITE, and KTIME_MINUS_INFINITE.
Referenced by Set(), KPriFCurveKey::Set(), and SetTCB().
KFBX_FCURVE_INLINE void IncTime | ( | KTime | pTime | ) |
KFBX_FCURVE_INLINE void SetSelected | ( | bool | pSelected | ) |
Set if key is currently selected.
pSelected | Selection flag. |
Definition at line 2968 of file kfcurve.h.
References KFCURVE_SELECT_ALL, and KFCURVE_SELECT_POINT.
KFBX_FCURVE_INLINE bool GetSelected | ( | ) | const |
Return if key is currently selected.
Definition at line 2978 of file kfcurve.h.
References KFCURVE_SELECT_POINT.
KFBX_FCURVE_INLINE void SetMarkedForManipulation | ( | bool | pMark | ) |
Set if key is currently marked for manipulation.
pMark | Mark flag. |
Definition at line 2988 of file kfcurve.h.
References KFCURVE_MARKED_ALL, and KFCURVE_MARKED_FOR_MANIP.
KFBX_FCURVE_INLINE bool GetMarkedForManipulation | ( | ) | const |
Return if key is currently marked for manipulation.
Definition at line 2998 of file kfcurve.h.
References KFCURVE_MARKED_FOR_MANIP.
KFBX_FCURVE_INLINE void SetTangeantVisibility | ( | kFCurveTangeantVisibility | pVisibility | ) |
Set tangent visibility mode.
Warning: This method is meaningful for cubic interpolation only.
pVisibility | Tangent visibility mode. Tangent visibility modes are: KFCURVE_TANGEANT_SHOW_NONE KFCURVE_TANGEANT_SHOW_LEFT KFCURVE_TANGEANT_SHOW_RIGHT |
Definition at line 2753 of file kfcurve.h.
References K_ASSERT_MSG, KFCURVE_TANGEANT_SHOW_BOTH, KFCURVE_TANGEANT_SHOW_LEFT, KFCURVE_TANGEANT_SHOW_NONE, and KFCURVE_TANGEANT_SHOW_RIGHT.
Referenced by Set(), KPriFCurveKeyAttr::Set(), and SetTCB().
KFBX_FCURVE_INLINE kFCurveTangeantVisibility GetTangeantVisibility | ( | ) | const |
Return tangent visibility mode.
Warning: This method is meaningful for cubic interpolation only.
Definition at line 2768 of file kfcurve.h.
References KFCURVE_TANGEANT_SHOW_BOTH.
KFBX_FCURVE_INLINE void SetBreak | ( | bool | pVal | ) |
Set/Unset Break tangent Only valid for User and Auto keys.
pVal | The break flag. |
Definition at line 3032 of file kfcurve.h.
References GetInterpolation(), GetTangeantMode(), K_ASSERT_MSG, KFCURVE_GENERIC_BREAK, KFCURVE_INTERPOLATION_CUBIC, KFCURVE_TANGEANT_AUTO, KFCURVE_TANGEANT_AUTO_BREAK, KFCURVE_TANGEANT_BREAK, and KFCURVE_TANGEANT_USER.
KFBX_FCURVE_INLINE bool GetBreak | ( | ) | const |
Get if tangent is break Only valid for User and Auto keys.
Definition at line 3062 of file kfcurve.h.
References GetInterpolation(), GetTangeantMode(), K_ASSERT_MSG, KFCURVE_GENERIC_BREAK, KFCURVE_INTERPOLATION_CUBIC, KFCURVE_TANGEANT_AUTO, KFCURVE_TANGEANT_AUTO_BREAK, KFCURVE_TANGEANT_BREAK, and KFCURVE_TANGEANT_USER.
KFBX_FCURVE_INLINE void Init | ( | ) |