2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Armature
|
2014-03-26 14:03:04 +08:00
|
|
|
-- @extend Node,BlendProtocol
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module ccs
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Get a bone with the specified name<br>
|
|
|
|
-- param name The bone's name you want to get
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] getBone
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string name
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return Bone#Bone ret (return value: ccs.Bone)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Change a bone's parent with the specified parent name.<br>
|
|
|
|
-- param bone The bone you want to change parent<br>
|
|
|
|
-- param parentName The new parent's name.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] changeBoneParent
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccs.Bone bone
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string parentName
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] setAnimation
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #ccs.ArmatureAnimation animation
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] getBoneAtPoint
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float x
|
|
|
|
-- @param #float y
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return Bone#Bone ret (return value: ccs.Bone)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] getArmatureTransformDirty
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] setVersion
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float version
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Set contentsize and Calculate anchor point.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] updateOffsetPoint
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] getParentBone
|
|
|
|
-- @param self
|
|
|
|
-- @return Bone#Bone ret (return value: ccs.Bone)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Remove a bone with the specified name. If recursion it will also remove child Bone recursionly.<br>
|
|
|
|
-- param bone The bone you want to remove<br>
|
|
|
|
-- param recursion Determine whether remove the bone's child recursion.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] removeBone
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccs.Bone bone
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool recursion
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] getBatchNode
|
|
|
|
-- @param self
|
|
|
|
-- @return BatchNode#BatchNode ret (return value: ccs.BatchNode)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, string
|
|
|
|
-- @overload self
|
|
|
|
-- @overload self, string, ccs.Bone
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] init
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string name
|
|
|
|
-- @param #ccs.Bone parentBone
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return bool#bool ret (retunr value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] setParentBone
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #ccs.Bone parentBone
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] drawContour
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] setBatchNode
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #ccs.BatchNode batchNode
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-06-18 11:44:06 +08:00
|
|
|
-- @function [parent=#Armature] setArmatureData
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #ccs.ArmatureData armatureData
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Add a Bone to this Armature,<br>
|
|
|
|
-- param bone The Bone you want to add to Armature<br>
|
|
|
|
-- param parentName The parent Bone's name you want to add to . If it's nullptr, then set Armature to its parent
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] addBone
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccs.Bone bone
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string parentName
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] getArmatureData
|
|
|
|
-- @param self
|
|
|
|
-- @return ArmatureData#ArmatureData ret (return value: ccs.ArmatureData)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] getVersion
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] getAnimation
|
|
|
|
-- @param self
|
|
|
|
-- @return ArmatureAnimation#ArmatureAnimation ret (return value: ccs.ArmatureAnimation)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Get Armature's bone dictionary<br>
|
|
|
|
-- return Armature's bone dictionary
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] getBoneDic
|
|
|
|
-- @param self
|
|
|
|
-- @return map_table#map_table ret (return value: map_table)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, string
|
|
|
|
-- @overload self
|
|
|
|
-- @overload self, string, ccs.Bone
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string name
|
|
|
|
-- @param #ccs.Bone parentBone
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return Armature#Armature ret (retunr value: ccs.Armature)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Armature] setAnchorPoint
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #vec2_table point
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Armature] draw
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Renderer renderer
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #mat4_table transform
|
|
|
|
-- @param #unsigned int flags
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Armature] getAnchorPointInPoints
|
|
|
|
-- @param self
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Armature] update
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float dt
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Armature] getNodeToParentTransform
|
|
|
|
-- @param self
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @return mat4_table#mat4_table ret (return value: mat4_table)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- This boundingBox will calculate all bones' boundingBox every time
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Armature] getBoundingBox
|
|
|
|
-- @param self
|
|
|
|
-- @return rect_table#rect_table ret (return value: rect_table)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- js ctor
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Armature] Armature
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
return nil
|