Curve of bone's position, rotation or scale. More...
Inherits Ref.
Public Member Functions | |
| void | evaluate (float time, float *dst, EvaluateType type) const |
| Evalute value of time Time to be estimated Estimated value of that time EvaluateType. | |
| void | setEvaluateFun (std::function< void(float time, float *dst)> fun) |
| Set evaluate function, allow the user use own function. More... | |
| float | getStartTime () const |
| Get start time The start time. | |
| float | getEndTime () const |
| Get the end time. More... | |
| var | getEndTime () |
| Get the end time. More... | |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| local | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| local | getReferenceCount () |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
| Destructor. | |
Static Public Member Functions | |
| static AnimationCurve * | create (float *keytime, float *value, int count) |
| Create animation curve. More... | |
| var | create ( var keytime, var value, var count) |
| Create animation curve. More... | |
Protected Member Functions | |
| AnimationCurve () | |
| Constructor. | |
| AnimationCurve () | |
| Constructor. | |
| virtual | ~AnimationCurve () |
| Destructor. | |
| int | determineIndex (float time) const |
| Determine index by time. More... | |
| var | determineIndex ( var time) |
| Determine index by time. More... | |
Additional Inherited Members | |
Public Attributes inherited from Ref | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| local | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
| local | _luaID |
| Lua reference id. | |
| void * | _scriptObject |
| scriptObject, support for swift | |
| local | _scriptObject |
| scriptObject, support for swift | |
| bool | _rooted |
| When true, it means that the object was already rooted. | |
| local | _rooted |
| When true, it means that the object was already rooted. | |
| bool | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
| local | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
Curve of bone's position, rotation or scale.
|
static |
Create animation curve.
Keytime the key time value. The value. The count of key frames array.
|
static |
Create animation curve.
Keytime the key time value. The value. The count of key frames array.
| void setEvaluateFun | ( | std::function< void(float time, float *dst)> | fun | ) |
Set evaluate function, allow the user use own function.
The callback function
| var setEvaluateFun | ( | var | fun | ) |
Set evaluate function, allow the user use own function.
The callback function
| float getEndTime | ( | ) | const |
Get the end time.
The end time.
| var getEndTime | ( | ) |
Get the end time.
The end time.
|
protected |
Determine index by time.
The specified time The index.
|
protected |
Determine index by time.
The specified time The index.