cocos2d-x  3.4
 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:

Public Member Functions

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

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
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
var _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


Constructor & Destructor Documentation

~Skeleton3D ( )

Member Function Documentation

void addBone ( Bone3D bone)

add bone

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

create Bone3D from NodeData

Bone3D* getBoneByIndex ( unsigned int  index) const

get bone

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

get total bone count

int getBoneIndex ( Bone3D bone) const

get bone index

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

get & set root bone

void removeAllBones ( )

remove all bones

void updateBoneMatrix ( )

refresh bone world matrix

Member Data Documentation

Vector<Bone3D*> _bones
Vector<Bone3D*> _rootBones

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