cocos2d-x  3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
AnimationCurve< componentSize > Class Template Reference

curve of bone's position, rotation or scale More...

#include <CCAnimationCurve.h>

Inheritance diagram for AnimationCurve< componentSize >:
Ref

Public Member Functions

void evaluate (float time, float *dst, EvaluateType type) const
 evalute value of time More...
 
var evaluate ( var time, var dst, var type)
 evalute value of time More...
 
local evaluate ( local time, local dst, local type)
 evalute value of time More...
 
void setEvaluateFun (std::function< void(float time, float *dst)> fun)
 set evaluate function, allow the user use own function More...
 
local setEvaluateFun ( local time, local fun)
 set evaluate function, allow the user use own function More...
 
float getStartTime () const
 get start time More...
 
float getEndTime () const
 get end time More...
 
local getEndTime ()
 get end time More...
 
virtual ~AnimationCurve ()
var ~AnimationCurve ()
local ~AnimationCurve ()
int determineIndex (float time) const
 Determine index by time. More...
 
var determineIndex ( var time)
 Determine index by time. More...
 
local determineIndex ( local time)
 Determine index by time. More...
 
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()

Static Public Member Functions

static AnimationCurvecreate (float *keytime, float *value, int count)
 create animation curve More...
 
var create ( var keytime, var value, var count)
 create animation curve More...
 
local create ( local keytime, local value, local count)
 create animation curve More...
 

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: AnimationCurve()
local __pad0__: AnimationCurve()

Protected Attributes

float * _value
float * _keytime
var _keytime
local _keytime
int _count
var _count
local _count
int _componentSizeByte
var _componentSizeByte
local _componentSizeByte
std::function< void(float time,
float *dst)> 
_evaluateFun
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 

Additional Inherited Members

- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 

Detailed Description

template<int componentSize>
class cocos2d::AnimationCurve< componentSize >

curve of bone's position, rotation or scale

Constructor & Destructor Documentation

virtual ~AnimationCurve ( )
virtual
var ~AnimationCurve ( )
virtual
local ~AnimationCurve ( )
virtual

Member Function Documentation

static AnimationCurve* create ( float *  keytime,
float *  value,
int  count 
)
static

create animation curve

var create ( var  keytime,
var  value,
var  count 
)
static

create animation curve

local create ( local  keytime,
local  value,
local  count 
)
static

create animation curve

int determineIndex ( float  time) const

Determine index by time.

var determineIndex ( var  time)

Determine index by time.

local determineIndex ( local  time)

Determine index by time.

void evaluate ( float  time,
float *  dst,
EvaluateType  type 
) const

evalute value of time

Parameters
timeTime to be estimated
dstEstimated value of that time
typeEvaluateType
var evaluate ( var  time,
var  dst,
var  type 
)

evalute value of time

Parameters
timeTime to be estimated
dstEstimated value of that time
typeEvaluateType
local evaluate ( local  time,
local  dst,
local  type 
)

evalute value of time

Parameters
timeTime to be estimated
dstEstimated value of that time
typeEvaluateType
float getEndTime ( ) const

get end time

var getEndTime ( )

get end time

local getEndTime ( )

get end time

float getStartTime ( ) const

get start time

var getStartTime ( )

get start time

local getStartTime ( )

get start time

void setEvaluateFun ( std::function< void(float time, float *dst)>  fun)

set evaluate function, allow the user use own function

var setEvaluateFun ( var  fun)

set evaluate function, allow the user use own function

local setEvaluateFun ( local  fun)

set evaluate function, allow the user use own function

Member Data Documentation

var __pad0__
local __pad0__
int _componentSizeByte
protected
var _componentSizeByte
protected
local _componentSizeByte
protected
int _count
protected
var _count
protected
local _count
protected
std::function<void(float time,
float* dst)> _evaluateFun
protected
var _evaluateFun
protected
local _evaluateFun
protected
float* _keytime
protected
var _keytime
protected
local _keytime
protected
float* _value
protected
var _value
protected
local _value
protected

The documentation for this class was generated from the following file: