Packageaway3d.animators.nodes
Classpublic class ParticleNodeBase
InheritanceParticleNodeBase Inheritance AnimationNodeBase Inheritance NamedAssetBase Inheritance flash.events.EventDispatcher
Subclasses ParticleAccelerationNode, ParticleBezierCurveNode, ParticleBillboardNode, ParticleColorNode, ParticleFollowNode, ParticleOrbitNode, ParticleOscillatorNode, ParticlePositionNode, ParticleRotateToHeadingNode, ParticleRotationalVelocityNode, ParticleScaleNode, ParticleSpriteSheetNode, ParticleTimeNode, ParticleUVNode, ParticleVelocityNode

Provides an abstract base class for particle animation nodes.



Public Properties
 PropertyDefined By
 InheritedassetFullPath : Array
[read-only]
NamedAssetBase
 InheritedassetNamespace : String
[read-only]
NamedAssetBase
 InheritedassetType : String
[read-only]
AnimationNodeBase
  dataLength : int
[read-only] Returns the length of the data used by the node when in LOCAL_STATIC mode.
ParticleNodeBase
  mode : uint
[read-only] Returns the property mode of the particle animation node.
ParticleNodeBase
 Inheritedname : String
NamedAssetBase
  oneData : Vector.<Number>
[read-only] Returns the generated data vector of the node after one particle pass during the generation of all local static data of the particle animation set.
ParticleNodeBase
 InheritedoriginalName : String
[read-only] The original name used for this asset in the resource (e.g.
NamedAssetBase
  priority : int
[read-only] Returns the priority of the particle animation node, used to order the agal generated in a particle animation set.
ParticleNodeBase
 InheritedstateClass : Class
[read-only]
AnimationNodeBase
Protected Properties
 PropertyDefined By
  _dataLength : uint = 3
ParticleNodeBase
  _mode : uint
ParticleNodeBase
  _oneData : Vector.<Number>
ParticleNodeBase
 Inherited_stateClass : Class
AnimationNodeBase
Public Methods
 MethodDefined By
  
ParticleNodeBase(name:String, mode:uint, dataLength:uint, priority:int = 1)
Creates a new ParticleNodeBase object.
ParticleNodeBase
 Inherited
assetPathEquals(name:String, ns:String):Boolean
NamedAssetBase
 Inherited
dispose():void
Cleans up resources used by this asset.
AnimationNodeBase
  
getAGALFragmentCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String
Returns the AGAL code of the particle animation node for use in the fragment shader.
ParticleNodeBase
  
getAGALUVCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String
Returns the AGAL code of the particle animation node for use in the fragment shader when UV coordinates are required.
ParticleNodeBase
  
getAGALVertexCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String
Returns the AGAL code of the particle animation node for use in the vertex shader.
ParticleNodeBase
 Inherited
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void
NamedAssetBase
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NAMESPACE : String = default
[static]
NamedAssetBase
Property Detail
_dataLengthproperty
protected var _dataLength:uint = 3

_modeproperty 
protected var _mode:uint

_oneDataproperty 
protected var _oneData:Vector.<Number>

dataLengthproperty 
dataLength:int  [read-only]

Returns the length of the data used by the node when in LOCAL_STATIC mode. Used to generate the local static data of the particle animation set.


Implementation
    public function get dataLength():int

See also

dataOffsetproperty 
arcane var dataOffset:uint

modeproperty 
mode:uint  [read-only]

Returns the property mode of the particle animation node. Typically set in the node constructor


Implementation
    public function get mode():uint

See also

oneDataproperty 
oneData:Vector.<Number>  [read-only]

Returns the generated data vector of the node after one particle pass during the generation of all local static data of the particle animation set.


Implementation
    public function get oneData():Vector.<Number>

See also

priorityproperty 
priority:int  [read-only]

Returns the priority of the particle animation node, used to order the agal generated in a particle animation set. Set automatically on instantiation.


Implementation
    public function get priority():int

See also

Constructor Detail
ParticleNodeBase()Constructor
public function ParticleNodeBase(name:String, mode:uint, dataLength:uint, priority:int = 1)

Creates a new ParticleNodeBase object.

Parameters
name:String — Defines the generic name of the particle animation node.
 
mode:uint — Defines whether the mode of operation acts on local properties of a particle or global properties of the node.
 
dataLength:uint — Defines the length of the data used by the node when in LOCAL_STATIC mode.
 
priority:int (default = 1) — priority the priority of the particle animation node, used to order the agal generated in a particle animation set. Defaults to 1.
Method Detail
generatePropertyOfOneParticle()method
arcane function generatePropertyOfOneParticle(param:ParticleProperties):void

Called internally by the particle animation set when assigning the set of static properties originally defined by the initParticleFunc of the set.

Parameters

param:ParticleProperties

See also

getAGALFragmentCode()method 
public function getAGALFragmentCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String

Returns the AGAL code of the particle animation node for use in the fragment shader.

Parameters

pass:MaterialPassBase
 
animationRegisterCache:AnimationRegisterCache

Returns
String
getAGALUVCode()method 
public function getAGALUVCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String

Returns the AGAL code of the particle animation node for use in the fragment shader when UV coordinates are required.

Parameters

pass:MaterialPassBase
 
animationRegisterCache:AnimationRegisterCache

Returns
String
getAGALVertexCode()method 
public function getAGALVertexCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String

Returns the AGAL code of the particle animation node for use in the vertex shader.

Parameters

pass:MaterialPassBase
 
animationRegisterCache:AnimationRegisterCache

Returns
String
processAnimationSetting()method 
arcane function processAnimationSetting(particleAnimationSet:ParticleAnimationSet):void

Called internally by the particle animation set when determining the requirements of the particle animation node AGAL.

Parameters

particleAnimationSet:ParticleAnimationSet