cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Animation3D Class Reference

static animation data, shared More...

#include <CCAnimation3D.h>

Inheritance diagram for Animation3D:
Ref

Classes

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

Public Member Functions

float getDuration () const
 get duration More...
 
CurvegetBoneCurveByName (const std::string &name) const
 get bone curve More...
 
var getBoneCurveByName ( var name)
 get bone curve More...
 
local getBoneCurveByName ( local name)
 get bone curve More...
 
virtual ~Animation3D ()
bool init (const Animation3DData &data)
 init Animation3D from bundle data More...
 
var init ( var data)
 init Animation3D from bundle data More...
 
local init ( local data)
 init Animation3D from bundle data 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 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="")
var getOrCreate ( var filename)
local getOrCreate ( local filename)

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: Animation3D()

Protected Attributes

std::unordered_map
< std::string, Curve * > 
_boneCurves
float _duration
var _duration
local _duration
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 

Friends

class Bundle3D

Additional Inherited Members

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

Detailed Description

static animation data, shared

Constructor & Destructor Documentation

virtual ~Animation3D ( )
virtual
var ~Animation3D ( )
virtual
local ~Animation3D ( )
virtual

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.

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

get bone curve

var getBoneCurveByName ( var  name)

get bone curve

local getBoneCurveByName ( local  name)

get bone curve

float getDuration ( ) const
inline

get duration

var getDuration ( )
inline

get duration

local getDuration ( )
inline

get duration

static Animation3D* getOrCreate ( const std::string &  filename,
const std::string &  animationName = "" 
)
inlinestatic
var getOrCreate ( var  filename,
var  animationName = "" 
)
inlinestatic
local getOrCreate ( local  filename,
local  animationName = "" 
)
inlinestatic
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

Friends And Related Function Documentation

friend class Bundle3D
friend
var Bundle3D
friend
local Bundle3D
friend

Member Data Documentation

var __pad0__
local __pad0__
std::unordered_map<std::string,
Curve*> _boneCurves
protected
var _boneCurves
protected
local _boneCurves
protected
float _duration
protected
var _duration
protected
local _duration
protected

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