Cocos2d-x  v3.17
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Animation3D Class Reference

static animation data, shared More...

Inherits Ref.

Classes

class  Curve
 animation curve, translation, rotation, and scale More...
 

Public Member Functions

float getDuration () const
 get duration
 
CurvegetBoneCurveByName (const std::string &name) const
 get bone curve More...
 
var getBoneCurveByName ( var name)
 get bone curve More...
 
const std::unordered_map
< std::string, Curve * > & 
getBoneCurves () const
 get the bone Curves set
 
local getBoneCurves ()
 get the bone Curves set
 
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
local 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...
 
local getReferenceCount ()
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 Destructor. More...
 

Static Public Member Functions

static Animation3Dcreate (const std::string &filename, const std::string &animationName="")
 read all animation or only the animation with given animationName? animationName == "" read the first. More...
 
static Animation3DgetOrCreate (const std::string &filename, const std::string &animationName="")
 the cache method to create or get an Animation3D object
 
local getOrCreate ( local filename)
 the cache method to create or get an Animation3D object
 

Protected Member Functions

bool init (const Animation3DData &data)
 init Animation3D from bundle data
 
var init ( var data)
 init Animation3D from bundle data
 
local init ( local data)
 init Animation3D from bundle data
 
bool initWithFile (const std::string &filename, const std::string &animationName)
 init Animation3D with file name and animation name
 
local initWithFile ( local filename, local animationName)
 init Animation3D with file name and animation name
 

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.
 

Detailed Description

static animation data, shared

Member Function Documentation

static Animation3D* create ( const std::string &  filename,
const std::string &  animationName = "" 
)
static

read all animation or only the animation with given animationName? animationName == "" read the first.

var create ( var  filename,
var  animationName = "" 
)
static

read all animation or only the animation with given animationName? animationName == "" read the first.

local create ( local  filename,
local  animationName = "" 
)
static

read all animation or only the animation with given animationName? animationName == "" read the first.

Curve* getBoneCurveByName ( const std::string &  name) const

get bone curve

var getBoneCurveByName ( var  name)

get bone curve


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