| Package | com.asterisq.constellation.behaviors |
| Class | public class VelocityStatsBehavior |
| Inheritance | VelocityStatsBehavior Behavior flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
| averageVelocity : Point [read-only]
The average velocity of all node renderers.
| VelocityStatsBehavior | ||
![]() | constellation : IConstellation
The constellation instance this behavior belongs to.
| Behavior | |
![]() | enabled : Boolean
Indicates whether this behavior is currently enabled.
| Behavior | |
| maxVelocity : Point [read-only]
The velocity of the node renderer with the greatest velocity magnitude.
| VelocityStatsBehavior | ||
| minVelocity : Point [read-only]
The velocity of the node renderer with the smallest velocity magnitude.
| VelocityStatsBehavior | ||
![]() | nodeRendererFilterFunction : Function
The function which determines the node renderers affected by this behavior.
| Behavior | |
| totalVelocity : Point [read-only]
The total velocity of all node renderers.
| VelocityStatsBehavior | ||
| totalVelocityMagnitude : Number [read-only]
The total of all node renderers' velocity magnitudes.
| VelocityStatsBehavior | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new velocity stats behavior.
| VelocityStatsBehavior | ||
![]() |
affectsAcceleration():Boolean
Indicates whether this class affects node renderers' acceleration.
| Behavior | |
![]() |
affectsNodeRenderer(nr:INodeRenderer):Boolean
Determines whether this behavior affects the given node renderer.
| Behavior | |
![]() |
affectsPosition():Boolean
Indicates whether this class affects node renderers' position.
| Behavior | |
|
affectsVelocity():Boolean
Indicates whether this class affects node renderers' velocity.
| VelocityStatsBehavior | ||
![]() |
[static]
Creates an IBehavior instance and initializes it with the given XML data.
| Behavior | |
|
stepEnd():void
Method called at the end of a step.
| VelocityStatsBehavior | ||
|
stepStart():void
Method called at the beginning of a step.
| VelocityStatsBehavior | ||
![]() |
Modifies the given node renderer's acceleration.
| Behavior | |
![]() |
Modifies the given node renderer's position.
| Behavior | |
|
Modifies the given node renderer's velocity.
| VelocityStatsBehavior | ||
| averageVelocity | property |
averageVelocity:Point [read-only]The average velocity of all node renderers.
Implementation public function get averageVelocity():Point
| maxVelocity | property |
maxVelocity:Point [read-only]The velocity of the node renderer with the greatest velocity magnitude.
Implementation public function get maxVelocity():Point
| minVelocity | property |
minVelocity:Point [read-only]The velocity of the node renderer with the smallest velocity magnitude.
Implementation public function get minVelocity():Point
| totalVelocity | property |
totalVelocity:Point [read-only]The total velocity of all node renderers.
Implementation public function get totalVelocity():Point
| totalVelocityMagnitude | property |
totalVelocityMagnitude:Number [read-only]The total of all node renderers' velocity magnitudes.
Implementation public function get totalVelocityMagnitude():Number
| VelocityStatsBehavior | () | constructor |
public function VelocityStatsBehavior()Creates a new velocity stats behavior.
| affectsVelocity | () | method |
public override function affectsVelocity():BooleanIndicates whether this class affects node renderers' velocity. This function must return true if this behavior affects velocity.
ReturnsBoolean |
| stepEnd | () | method |
public override function stepEnd():voidMethod called at the end of a step.
| stepStart | () | method |
public override function stepStart():voidMethod called at the beginning of a step.
| updateVelocity | () | method |
public override function updateVelocity(nodeRenderer:INodeRenderer):INodeRenderer
Modifies the given node renderer's velocity. This method will never be
called if affectsVelocity() doesn't return true. This
method should be overridden to affect the given node renderer's velocity.
nodeRenderer:INodeRenderer |
INodeRenderer |