Packageaway3d.animators.data
Classpublic class SkeletonPose
InheritanceSkeletonPose Inheritance NamedAssetBase Inheritance flash.events.EventDispatcher
Implements IAsset

A collection of pose objects, determining the pose for an entire skeleton. The jointPoses vector object corresponds to a skeleton's joints vector object, however, there is no reference to a skeleton's instance, since several skeletons can be influenced by the same pose (eg: animation clips are added to any animator with a valid skeleton)

See also

away3d.animators.data.Skeleton
away3d.animators.data.JointPose


Public Properties
 PropertyDefined By
 InheritedassetFullPath : Array
[read-only]
NamedAssetBase
 InheritedassetNamespace : String
[read-only]
NamedAssetBase
  assetType : String
[read-only]
SkeletonPose
  jointPoses : Vector.<JointPose>
A flat list of pose objects that comprise the skeleton pose.
SkeletonPose
 Inheritedname : String
NamedAssetBase
  numJointPoses : uint
[read-only] The total number of joint poses in the skeleton pose.
SkeletonPose
 InheritedoriginalName : String
[read-only] The original name used for this asset in the resource (e.g.
NamedAssetBase
Public Methods
 MethodDefined By
  
Creates a new SkeletonPose object.
SkeletonPose
 Inherited
assetPathEquals(name:String, ns:String):Boolean
NamedAssetBase
  
Creates a copy of the SkeletonPose object, with a dulpicate of its component joint poses.
SkeletonPose
  
dispose():void
Cleans up resources used by this asset.
SkeletonPose
  
jointPoseFromName(jointName:String):JointPose
Returns the joint pose object with the given joint name, otherwise returns a null object.
SkeletonPose
  
jointPoseIndexFromName(jointName:String):int
Returns the pose index, given the joint name.
SkeletonPose
 Inherited
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void
NamedAssetBase
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NAMESPACE : String = default
[static]
NamedAssetBase
Property Detail
assetTypeproperty
assetType:String  [read-only]


Implementation
    public function get assetType():String
jointPosesproperty 
public var jointPoses:Vector.<JointPose>

A flat list of pose objects that comprise the skeleton pose. The pose indices correspond to the target skeleton's joint indices.

See also

numJointPosesproperty 
numJointPoses:uint  [read-only]

The total number of joint poses in the skeleton pose.


Implementation
    public function get numJointPoses():uint
Constructor Detail
SkeletonPose()Constructor
public function SkeletonPose()

Creates a new SkeletonPose object.

Method Detail
clone()method
public function clone():SkeletonPose

Creates a copy of the SkeletonPose object, with a dulpicate of its component joint poses.

Returns
SkeletonPose — SkeletonPose
dispose()method 
public function dispose():void

Cleans up resources used by this asset.

jointPoseFromName()method 
public function jointPoseFromName(jointName:String):JointPose

Returns the joint pose object with the given joint name, otherwise returns a null object.

Parameters

jointName:String — The name of the joint object whose pose is to be found.

Returns
JointPose — The pose object with the given joint name.
jointPoseIndexFromName()method 
public function jointPoseIndexFromName(jointName:String):int

Returns the pose index, given the joint name. -1 is returned if the joint name is not found in the pose.

Parameters

jointName:String — name of the joint object whose pose is to be found.

Returns
int — The index of the pose object in the jointPoses vector.

See also