CCArmature如何获取大小

我试过用getContentSize,
size = armature->getContentSize(); 但得到的size是(0,0),这是错的

请问下应该怎么获取CCArmature的大小

rect = CCRectApplyAffineTransform(armature->boundingBox(), armature->nodeToParentTransform());

— Begin quote from ____

引用第1楼踢死猫于2013-10-23 13:11发表的 :
rect = CCRectApplyAffineTransform(armature->boundingBox(), armature->nodeToParentTransform()); http://www.cocoachina.com/bbs/job.php?action=topost&tid=162661&pid=842557

— End quote

感谢!我都看了下,但不确定是不是理解对了:
1,armature->boundingBox(): 就是算出所有骨骼的左右上下边界,origin点是相对自己锚点的左下角那个点
2,armature->nodeToParentTransform()和CCRectApplyAffineTransform 能说下是干啥的吗?看了代码没看明白。
3,CCRectApplyAffineTransform(armature->boundingBox(), armature->nodeToParentTransform(),根据测试效果,整句下来貌似是在父节点里面的左右上下边界,origin是父节点里面的坐标?

先谢过了!

armature->nodeToParentTransform() 获取 父空间中的 矩阵
CCRectApplyAffineTransform 将 rect 根据指定矩阵 做 转换