Class Index | File Index

Classes


Class CAAT.Module.Skeleton.Bone


Defined in: Bone.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
 
 
 
 
 
 
 
 
Bone rotation angle
 
Bone size.
 
 
x
Bone x position relative parent
 
y
Bone y position relative parent
Method Summary
Method Attributes Method Name and Description
<private>  
<private>  
<private>  
__init(id)
<private>  
__noValue(keyframes)
<private>  
__setInterpolator(behavior, curve)
<private>  
<private>  
__setParent(parent)
 
addBone(bone)
 
addRotationKeyframe(name, angleStart, angleEnd, timeStart, timeEnd, curve)
 
addScaleKeyframe(name, scaleX, endScaleX, scaleY, endScaleY, timeStart, timeEnd, curve)
 
addTranslationKeyframe(name, startX, startY, endX, endY, timeStart, timeEnd, curve)
 
apply(time, animationTime)
 
 
 
 
paint(actorMatrix, ctx)
 
 
 
 
setRotateTransform(angle, anchorX, anchorY)
default anchor values are for spine tool.
 
setScaleTransform(sx, sy, anchorX, anchorY)
 
 
Class Detail
CAAT.Module.Skeleton.Bone()
Field Detail
{Array.} children

{object} keyframesByAnimation

{CAAT.Behavior.ContainerBehavior} keyframesRotate

{CAAT.Behavior.ContainerBehavior} keyframesScale

{CAAT.Behavior.ContainerBehavior} keyframesTranslate

{CAAT.PathUtil.Path} keyframesTranslatePath

{CAAT.Math.Matrix} matrix

{CAAT.Skeleton.Bone} parent

rotationAngle
Bone rotation angle

{number} size
Bone size.

{CAAT.Math.Matrix} wmatrix

{number} x
Bone x position relative parent

y
Bone y position relative parent
Method Detail
<private> __createAnimation(name)
Parameters:
name

<private> __getAnimation(name)
Parameters:
name

<private> __init(id)
Parameters:
id

<private> __noValue(keyframes)
Parameters:
keyframes

<private> __setInterpolator(behavior, curve)
Parameters:
behavior
curve

<private> __setModelViewMatrix()

<private> {*} __setParent(parent)
Parameters:
parent
{CAAT.Skeleton.Bone}
Returns:
{*}

addBone(bone)
Parameters:
bone

addRotationKeyframe(name, angleStart, angleEnd, timeStart, timeEnd, curve)
Parameters:
name
{string} keyframe animation name
angleStart
{number} rotation start angle
angleEnd
{number} rotation end angle
timeStart
{number} keyframe start time
timeEnd
{number} keyframe end time
curve
{Array.=} 4 numbers definint a quadric bezier info. two first points assumed to be 0,0.

addScaleKeyframe(name, scaleX, endScaleX, scaleY, endScaleY, timeStart, timeEnd, curve)
Parameters:
name
scaleX
endScaleX
scaleY
endScaleY
timeStart
timeEnd
curve

addTranslationKeyframe(name, startX, startY, endX, endY, timeStart, timeEnd, curve)
Parameters:
name
startX
startY
endX
endY
timeStart
timeEnd
curve

apply(time, animationTime)
Parameters:
time
{number}
animationTime

endRotationKeyframes(name)
Parameters:
name

endScaleKeyframes(name)
Parameters:
name

endTranslationKeyframes(name)
Parameters:
name

paint(actorMatrix, ctx)
Parameters:
actorMatrix
ctx

setAnimation(name)
Parameters:
name

setBehaviorApplicationTime(t)
Parameters:
t

setPosition(x, y)
Parameters:
x
y

{*} setRotateTransform(angle, anchorX, anchorY)
default anchor values are for spine tool.
Parameters:
angle
{number}
anchorX
{number=}
anchorY
{number=}
Returns:
{*}

{*} setScaleTransform(sx, sy, anchorX, anchorY)
Parameters:
sx
{number}
sy
{number}
anchorX
{number=} anchorX: .5 by default
anchorY
{number=} anchorY. .5 by default
Returns:
{*}

setSize(s)
Parameters:
s

transformContext(ctx)
Parameters:
ctx

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 01 2013 04:59:19 GMT-0700 (PDT)