#include <c4d_canimation.h>

Private Member Functions | |
| CKey () | |
| ~CKey (void) | |
| const CKey & | operator= (const CKey &key) |
Alloc/Free | |
| static CKey * | Alloc () |
| static void | Free (CKey *&key) |
Get/Set Time | |
| BaseTime | GetTime (void) const |
| void | SetTime (CCurve *seq, const BaseTime &t) |
| BaseTime | GetTimeLeft (void) const |
| void | SetTimeLeft (CCurve *seq, const BaseTime &t) |
| BaseTime | GetTimeRight (void) const |
| void | SetTimeRight (CCurve *seq, const BaseTime &t) |
Get/Set Value | |
| Float | GetValue (void) const |
| void | SetValue (CCurve *seq, Float v) |
| const GeData & | GetGeData (void) const |
| void | SetGeData (CCurve *seq, const GeData &d) |
| Float | GetValueLeft (void) const |
| void | SetValueLeft (CCurve *seq, Float v) |
| Float | GetValueRight (void) const |
| void | SetValueRight (CCurve *seq, Float v) |
Interpolation | |
| CINTERPOLATION | GetInterpolation (void) const |
| void | SetInterpolation (CCurve *seq, CINTERPOLATION inter) |
| ROTATIONINTERPOLATION_QUATERNION | GetQuatInterpolation (void) const |
| void | SetQuatInterpolation (CCurve *seq, ROTATIONINTERPOLATION_QUATERNION inter, Bool bUndo=true) |
Copy/Clone | |
| Bool | CopyDataTo (CCurve *destseq, CKey *dest, AliasTrans *trans) const |
| CKey * | GetClone (AliasTrans *trans) const |
Miscellaneous | |
| CTrack * | GetTrack (void) |
| CCurve * | GetCurve (void) |
| void | FlushData (void) |
AutoTangent Mode | |
| CAUTOMODE | GetAutomaticTangentMode (void) const |
| void | SetAutomaticTangentMode (CCurve *seq, CAUTOMODE autoMode) |
Tangent Helpers | |
| Bool | SetTimeLeftAdjustValue (CCurve *seq, const BaseTime &t) |
| Bool | SetTimeRightAdjustValue (CCurve *seq, const BaseTime &t) |
Key Preset Mode | |
| CKEYPRESET | GetKeyPreset (void) const |
| void | SetKeyPreset (CCurve *seq, CKEYPRESET preset) |
|
private |
|
private |
|
static |
|
static |
| BaseTime GetTime | ( | void | ) | const |
Gets the time of the key.
Sets the time of the key.
| [in] | seq | The curve the key belongs to. |
| [in] | t | The time to set. |
| BaseTime GetTimeLeft | ( | void | ) | const |
Gets the left time of the key.
Sets the left time of the key.
| [in] | seq | The curve the key belongs to. |
| [in] | t | The left time to set. |
| BaseTime GetTimeRight | ( | void | ) | const |
Gets the right time of the key.
Sets the right time of the key.
| [in] | seq | The curve the key belongs to. |
| [in] | t | The right time to set. |
| Float GetValue | ( | void | ) | const |
Gets the value of the key.
ptag/htag contain the point/tangent information. Sets the value of the key.
| [in] | seq | The curve the key belongs to. |
| [in] | v | The value to set. |
| const GeData& GetGeData | ( | void | ) | const |
Gets the data of the key.
Sets the data of the key.
| [in] | seq | The curve the key belongs to. |
| [in] | d | The new key data. |
| Float GetValueLeft | ( | void | ) | const |
Gets the left value of the key.
Sets the left value of the key.
| [in] | seq | The curve the key belongs to. |
| [in] | v | The left value to set. |
| Float GetValueRight | ( | void | ) | const |
Gets the right value of the key.
Sets the right value of the key.
| [in] | seq | The curve the key belongs to. |
| [in] | v | The right value to set. |
| CINTERPOLATION GetInterpolation | ( | void | ) | const |
Gets the interpolation type of the key.
| void SetInterpolation | ( | CCurve * | seq, |
| CINTERPOLATION | inter | ||
| ) |
Sets the interpolation type of the key.
| [in] | seq | The curve the key belongs to. |
| [in] | inter | The interpolation type to set: CINTERPOLATION |
| ROTATIONINTERPOLATION_QUATERNION GetQuatInterpolation | ( | void | ) | const |
Gets the quaternion interpolation type of the key.
| void SetQuatInterpolation | ( | CCurve * | seq, |
| ROTATIONINTERPOLATION_QUATERNION | inter, | ||
| Bool | bUndo = true |
||
| ) |
Sets the quaternion interpolation type of the key.
| [in] | seq | The curve the key belongs to. |
| [in] | inter | The interpolation type to set: ROTATIONINTERPOLATION_QUATERNION |
| [in] | bUndo | true to add the three rotation keys in the undo system, otherwise false. |
| Bool CopyDataTo | ( | CCurve * | destseq, |
| CKey * | dest, | ||
| AliasTrans * | trans | ||
| ) | const |
Copies the key data to dest.
| [in] | destseq | The curve the destination key belongs to. |
| [in] | dest | The destination key. |
| [in] | trans | An alias translator for the operation. Can be nullptr. The caller owns the pointed object. |
| CKey* GetClone | ( | AliasTrans * | trans | ) | const |
Gets a copy of the key.
| [in] | trans | An alias translator for the operation. Can be nullptr. The caller owns the pointed alias translator. |
| CTrack* GetTrack | ( | void | ) |
Gets the track of the key.
| CCurve* GetCurve | ( | void | ) |
Gets the curve of the key.
| void FlushData | ( | void | ) |
Flushes the key: empties and resets data.
| CAUTOMODE GetAutomaticTangentMode | ( | void | ) | const |
Sets the AutoTangent mode of the key.
| [in] | seq | The curve the key belongs to. |
| [in] | autoMode | The AutoTangent mode to set: CAUTOMODE |
Sets Time Left and adjusts Value so the angle stays the same.
| [in] | seq | The curve the key belongs to. |
| [in] | t | The new left time to set. |
FLT_MIN and Value is not Zero (angle cannot stay the same). Sets Time Right and adjusts Value so the angle stays the same.
| [in] | seq | The curve the key belongs to. |
| [in] | t | The new right time to set. |
FLT_MIN and Value is not Zero (angle cannot stay the same). | CKEYPRESET GetKeyPreset | ( | void | ) | const |
| void SetKeyPreset | ( | CCurve * | seq, |
| CKEYPRESET | preset | ||
| ) |
Sets the preset mode of the key.
| [in] | seq | The curve the key belongs to. |
| [in] | preset | The preset mode to set: CKEYPRESET |