Class Index | File Index

Classes


Class CAAT.Module.Skeleton.Skeleton


Defined in: Skeleton.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<private>  
__init(skeletonDataFromFile)
<private>  
__setSkeleton(skeletonDataFromFile)
 
addAnimation(name, animation)
 
 
addBone(boneInfo)
 
addRotationKeyframe(name, keyframeInfo)
 
addScaleKeyframe(name, keyframeInfo)
 
addTranslationKeyframe(name, keyframeInfo)
 
calculate(time, animationTime)
 
endKeyframes(name, boneId)
 
 
 
 
 
 
 
 
paint(actorMatrix, ctx)
 
 
Class Detail
CAAT.Module.Skeleton.Skeleton()
Method Detail
<private> __init(skeletonDataFromFile)
Parameters:
skeletonDataFromFile

<private> __setSkeleton(skeletonDataFromFile)
Parameters:
skeletonDataFromFile

addAnimation(name, animation)
Parameters:
name
animation

addAnimationFromFile(name, url)
Parameters:
name
url

addBone(boneInfo)
Parameters:
boneInfo

addRotationKeyframe(name, keyframeInfo)
Parameters:
name
keyframeInfo

addScaleKeyframe(name, keyframeInfo)
Parameters:
name
keyframeInfo

addTranslationKeyframe(name, keyframeInfo)
Parameters:
name
keyframeInfo

calculate(time, animationTime)
Parameters:
time
animationTime

endKeyframes(name, boneId)
Parameters:
name
boneId

getAnimationDataByName(name)
Parameters:
name

getBoneById(id)
Parameters:
id

getBoneByIndex(index)
Parameters:
index

getCurrentAnimationData()

getNumBones()

getRoot()

getSkeletonDataFromFile()

paint(actorMatrix, ctx)
Parameters:
actorMatrix
ctx

setAnimation(name)
Parameters:
name

setSkeletonFromFile(url)
Parameters:
url

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