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

Skeleton. More...

#include <CCSkeleton3D.h>

Inheritance diagram for Skeleton3D:
Ref

Public Member Functions

ssize_t getBoneCount () const
 get total bone count More...
 
var getBoneCount ()
 get total bone count More...
 
local getBoneCount ()
 get total bone count More...
 
Bone3DgetBoneByIndex (unsigned int index) const
 get bone More...
 
Bone3DgetBoneByName (const std::string &id) const
var getBoneByName ( var id)
local getBoneByName ( local id)
ssize_t getRootCount () const
 get & set root bone More...
 
var getRootCount ()
 get & set root bone More...
 
local getRootCount ()
 get & set root bone More...
 
Bone3DgetRootBone (int index) const
local getRootBone ( local index)
int getBoneIndex (Bone3D *bone) const
 get bone index More...
 
var getBoneIndex ( var bone)
 get bone index More...
 
local getBoneIndex ( local bone)
 get bone index More...
 
void updateBoneMatrix ()
 refresh bone world matrix More...
 
var updateBoneMatrix ()
 refresh bone world matrix More...
 
local updateBoneMatrix ()
 refresh bone world matrix More...
 
 ~Skeleton3D ()
 ~Skeleton3D ()
 ~Skeleton3D ()
void removeAllBones ()
 remove all bones More...
 
var removeAllBones ()
 remove all bones More...
 
local removeAllBones ()
 remove all bones More...
 
void addBone (Bone3D *bone)
 add bone More...
 
var addBone ( var bone)
 add bone More...
 
local addBone ( local bone)
 add bone More...
 
Bone3DcreateBone3D (const NodeData &nodedata)
 create Bone3D from NodeData More...
 
var createBone3D ( var nodedata)
 create Bone3D from NodeData More...
 
local createBone3D ( local nodedata)
 create Bone3D from NodeData 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 ()
 Destructor. More...
 

Static Public Member Functions

static Skeleton3Dcreate (const std::vector< NodeData * > &skeletondata)

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: Skeleton3D()

Protected Attributes

Vector< Bone3D * > _bones
Vector< Bone3D * > _rootBones
var _rootBones
local _rootBones
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Additional Inherited Members

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

Detailed Description

Skeleton.

Constructor & Destructor Documentation

~Skeleton3D ( )
var ~Skeleton3D ( )
local ~Skeleton3D ( )

Member Function Documentation

void addBone ( Bone3D bone)

add bone

var addBone ( var  bone)

add bone

local addBone ( local  bone)

add bone

static Skeleton3D* create ( const std::vector< NodeData * > &  skeletondata)
static
var create ( var  skeletondata)
static
local create ( local  skeletondata)
static
Bone3D* createBone3D ( const NodeData nodedata)

create Bone3D from NodeData

var createBone3D ( var  nodedata)

create Bone3D from NodeData

local createBone3D ( local  nodedata)

create Bone3D from NodeData

Bone3D* getBoneByIndex ( unsigned int  index) const

get bone

var getBoneByIndex ( var  index)

get bone

local getBoneByIndex ( local  index)

get bone

Bone3D* getBoneByName ( const std::string &  id) const
var getBoneByName ( var  id)
local getBoneByName ( local  id)
ssize_t getBoneCount ( ) const

get total bone count

var getBoneCount ( )

get total bone count

local getBoneCount ( )

get total bone count

int getBoneIndex ( Bone3D bone) const

get bone index

var getBoneIndex ( var  bone)

get bone index

local getBoneIndex ( local  bone)

get bone index

Bone3D* getRootBone ( int  index) const
var getRootBone ( var  index)
local getRootBone ( local  index)
ssize_t getRootCount ( ) const

get & set root bone

var getRootCount ( )

get & set root bone

local getRootCount ( )

get & set root bone

void removeAllBones ( )

remove all bones

var removeAllBones ( )

remove all bones

local removeAllBones ( )

remove all bones

void updateBoneMatrix ( )

refresh bone world matrix

var updateBoneMatrix ( )

refresh bone world matrix

local updateBoneMatrix ( )

refresh bone world matrix

Member Data Documentation

var __pad0__
local __pad0__
Vector<Bone3D*> _bones
protected
var _bones
protected
local _bones
protected
Vector<Bone3D*> _rootBones
protected
var _rootBones
protected
local _rootBones
protected

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