Packageaway3d.animators
Interfacepublic interface IAnimationSet
Implementors SkeletonAnimationSet, UVAnimationSet, VertexAnimationSet

Provides an interface for data set classes that hold animation data for use in animator classes.

See also

away3d.animators.IAnimator


Public Properties
 PropertyDefined By
  states : Vector.<IAnimationState>
[read-only] Returns a vector of animation state objects that make up the contents of the animation data set.
IAnimationSet
  usesCPU : Boolean
[read-only] Indicates whether the properties of the animation data contained within the set combined with the vertex registers aslready in use on shading materials allows the animation data to utilise GPU calls.
IAnimationSet
Public Methods
 MethodDefined By
  
addState(stateName:String, animationState:IAnimationState):void
Adds an animation state object to the aniamtion data set under the given name.
IAnimationSet
  
getState(stateName:String):IAnimationState
Retrieves the animation state object registered in the animation data set under the given name.
IAnimationSet
  
hasState(stateName:String):Boolean
Check to determine whether a state is registered in the animation set under the given name.
IAnimationSet
Property Detail
statesproperty
states:Vector.<IAnimationState>  [read-only]

Returns a vector of animation state objects that make up the contents of the animation data set.


Implementation
    public function get states():Vector.<IAnimationState>
usesCPUproperty 
usesCPU:Boolean  [read-only]

Indicates whether the properties of the animation data contained within the set combined with the vertex registers aslready in use on shading materials allows the animation data to utilise GPU calls.


Implementation
    public function get usesCPU():Boolean
Method Detail
addState()method
public function addState(stateName:String, animationState:IAnimationState):void

Adds an animation state object to the aniamtion data set under the given name.

Parameters

stateName:String — The name under which the animation state object will be stored.
 
animationState:IAnimationState — The animation state object to be staored in the set.

getState()method 
public function getState(stateName:String):IAnimationState

Retrieves the animation state object registered in the animation data set under the given name.

Parameters

stateName:String — The name of the animation state object to be retrieved.

Returns
IAnimationState
hasState()method 
public function hasState(stateName:String):Boolean

Check to determine whether a state is registered in the animation set under the given name.

Parameters

stateName:String — The name of the animation state object to be checked.

Returns
Boolean