Packageaway3d.animators
Classpublic class AnimationSetBase
InheritanceAnimationSetBase Inheritance NamedAssetBase Inheritance flash.events.EventDispatcher
Implements IAsset
Subclasses ParticleAnimationSet, SkeletonAnimationSet, UVAnimationSet, VertexAnimationSet

Provides an abstract base class for data set classes that hold animation data for use in animator classes.

See also

away3d.animators.AnimatorBase


Public Properties
 PropertyDefined By
  animationNames : Vector.<String>
[read-only] Returns a vector of animation state objects that make up the contents of the animation data set.
AnimationSetBase
  animations : Vector.<AnimationNodeBase>
[read-only] Returns a vector of animation state objects that make up the contents of the animation data set.
AnimationSetBase
 InheritedassetFullPath : Array
[read-only]
NamedAssetBase
 InheritedassetNamespace : String
[read-only]
NamedAssetBase
  assetType : String
[read-only]
AnimationSetBase
 Inheritedname : String
NamedAssetBase
 InheritedoriginalName : String
[read-only] The original name used for this asset in the resource (e.g.
NamedAssetBase
  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.
AnimationSetBase
Public Methods
 MethodDefined By
  
Adds an animation state object to the aniamtion data set under the given name.
AnimationSetBase
 Inherited
assetPathEquals(name:String, ns:String):Boolean
NamedAssetBase
  
AnimationSetBase
  
dispose():void
Cleans up any resources used by the current object.
AnimationSetBase
  
Retrieves the animation state object registered in the animation data set under the given name.
AnimationSetBase
  
hasAnimation(name:String):Boolean
Check to determine whether a state is registered in the animation set under the given name.
AnimationSetBase
 Inherited
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void
NamedAssetBase
Protected Methods
 MethodDefined By
  
findTempReg(exclude:Vector.<String>, excludeAnother:String = null):String
Retrieves a temporary GPU register that's still free.
AnimationSetBase
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NAMESPACE : String = default
[static]
NamedAssetBase
Property Detail
animationNamesproperty
animationNames:Vector.<String>  [read-only]

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


Implementation
    public function get animationNames():Vector.<String>
animationsproperty 
animations:Vector.<AnimationNodeBase>  [read-only]

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


Implementation
    public function get animations():Vector.<AnimationNodeBase>
assetTypeproperty 
assetType:String  [read-only]


Implementation
    public function get assetType():String
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
addAnimation()method
public function addAnimation(node:AnimationNodeBase):void

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

Parameters

node:AnimationNodeBase — The name under which the animation state object will be stored.

cancelGPUCompatibility()method 
public function cancelGPUCompatibility():void

dispose()method 
public function dispose():void

Cleans up any resources used by the current object.

findTempReg()method 
protected function findTempReg(exclude:Vector.<String>, excludeAnother:String = null):String

Retrieves a temporary GPU register that's still free.

Parameters

exclude:Vector.<String> — An array of non-free temporary registers.
 
excludeAnother:String (default = null) — An additional register that's not free.

Returns
String — A temporary register that can be used.
getAnimation()method 
public function getAnimation(name:String):AnimationNodeBase

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

Parameters

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

Returns
AnimationNodeBase
hasAnimation()method 
public function hasAnimation(name:String):Boolean

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

Parameters

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

Returns
Boolean